-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[request] support for DS18B20 temp sensor #4
Comments
Do you have some programming skills? It shouldn't be hard to extend the sketch with DS18B20 support. If you submit a pull request for this. I will do the coffeescript part for pimatic. |
I have a bit of experience with Arduino code. I found the standard OneWire (http://playground.arduino.cc/Learning/OneWire) library.
I wish I could help, but I'm not familiar with HEX values, bits and other raw code. |
Hi, I've just built the new functionality for this sensor. There's a pull request waiting :) Cheers, |
Hi, The DST command only read a first temperature on the 1-wire bus. I suggest send the sensor number (0, 1, 2...) like that: Example Otherwise, the use of pins is confusing because the OneWire sensor needs to be connected to digital pin 2 and the digital pin 2 is also used as receiverPin (default), see https://github.com/pimatic/pimatic-homeduino/blob/development/pins-nano.png in https://github.com/pimatic/pimatic-homeduino. Ideal solution would be to send the bus on command and so could be used more than one bus (I use really two because the number of sensors and the long distance is a limit to use a 1-wire). In this case the example will be: Regards... |
Hi, Thanks for your feedback. Configurable pins in the command requires quite some changes. I might do Including the sensor number is easier, but I don't know if they're always What do you think? Cheers, On wo 18 feb. 2015 at 00:15 tomansi [email protected] wrote:
|
Hi, thanks for your kind reply. I think you can make many improvements and make them as different possibilities. 1.- Simple solution
Request the value of each sensor by sensor number. (ie. DST number_sensor) Disadvantages: When new sensors are included or change any of them, we need to manually update the file config.json. 2.- One more step. It's a robust solution. 3.- Add others 1-wire bus. Finally, I worry about the pins used. I quote what I said above: Otherwise, the use of pins is confusing because the OneWire sensor needs to be connected to digital pin 2 and the digital pin 2 is also used as receiverPin (default), see https://github.com/pimatic/pimatic-homeduino/blob/development/pins-nano.png in https://github.com/pimatic/pimatic-homeduino. To avoid confusion, I propose that the pin 2 is not used for 1-wire. (12 could be). Kind regards! |
Hi tomansi, Thanks for your detailed reply. I'll give it a try tonight. Changing the It's also fine by me if you contribute code to the repository directly. @pimatic: Maybe we can get a branch with write access to do this? Cheers, On Wed Feb 18 2015 at 12:51:13 PM tomansi [email protected] wrote:
|
I forgot to mention that I can not find where to set the interval data read. pimatic-homeduino
and may also set other attributes of the class (precision 9, 12 bits ...) see example (include processing to correct a value):
(edited to add) |
Hi Ronald, I have some skills in arduino but I haven't coded anything in js But I would work for this project because I think is excellent. My first propose file change is about locales (es.json is a year old, only I am writing about DS18B20 post. I will answer asap. Kind regards! 2015-02-18 13:16 GMT+01:00 Ronald [email protected]:
|
Hi guys, I've been reading along. Good to see progress in supporting DS18B20 sensors in homeduino! How far is the development doing now? |
Hi,
First of all, the homeduino plugin is working great for sending and receiving 433Mhz! Thank you.
I'd like to add more stuff to my pimatic installation, including a DS18B20 temp sensor. I see DHT11/22 sensors are included in the Homeduino support. Also, I noticed a DS18B20 plugin for pimatic. I wonder why there's a separate plugin?
I would love to connect my temp sensor to the arduino to keep it simple.
Thanks.
The text was updated successfully, but these errors were encountered: