Re: DS18B20 with eLua + Mizar32

Posted by gduarte on
URL: http://elua-development.15.s1.nabble.com/DS18B20-with-eLua-Mizar32-tp7578012p7578014.html

Hi!

The question is just how to send and get data, , what interface I have to use to send and receive data from the sensor. The rest, like decoding data, CRC, I'll implement myself.

Cheers


2013/5/21 Bogdan Marinescu <[hidden email]>
Hi,


On Tue, May 21, 2013 at 8:52 PM, Gabriel Duarte <[hidden email]> wrote:
Hello,

I recently bought a DS18B20 temperature sensor, but I got no idea how to connect it to Mizar32 and grab data from eLua. This is the datasheet:

http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf

Which interface I have to use, UART, some PWM pin??

Any help is appreciated ;)

Neither, you'd have to use 1-Wire (https://en.wikipedia.org/wiki/1-Wire). We don't have support in eLua  for that yet, although it should be relatively easy to implement.

Best,
Bogdan


Cheers

--
Gabriel Duarte
Linux User #471185
Rio de Janeiro / RJ
http://genericdev.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Mizar32" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Mizar32" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Gabriel Duarte
Linux User #471185
Rio de Janeiro / RJ
http://genericdev.wordpress.com/

_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev