ecto / duino

:bulb: Arduino framework for node.js
958 stars 214 forks source link

conect onewire sensor #50

Open maverik23 opened 10 years ago

maverik23 commented 10 years ago

anyone know how to connect a DS1820 sensor OneWire to receive temperature data?

rixon commented 10 years ago

Yeah, there's lots of documentation on this. Check out these:

These show using an interface board. You don't need an interface, though. On my Duemilanove, I run four OneWire sensors off a single port (2). I'm running three wires so I can run reliably on a 10 foot long bus, and the pull-up to the data line. You can run without the power wire, and use a common frame as a ground to get true one wire operation.

maverik23 commented 10 years ago

I have already connected the sensor to another arduino sketch. right now I'm using duino with heimcontrol.js. where I have to modify the sketch to receive data from this sensor.

I have connected the sensor to pin 11. and I modified the code but does not work

/*