How to use some sensors with IOIO-OTG board?

396 views
Skip to first unread message

정병진

unread,
Jul 17, 2013, 1:59:28 AM7/17/13
to ioio-...@googlegroups.com
I have a IOIO-OTG board and DS18B20(temperature sensor), PulseSensor.

* DS18B20 : http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
* PulseSensor : http://pulsesensor.myshopify.com/pages/pulse-sensor-amped-arduino-v1dot1

Each sensor have only 3 lines. (Vcc, GND, DQ)
How to get sensor value?
When I reference Arduino Code, it write/read bytes to only 1 pin.
When I open digital input and digital out with 1 pin, IOIO has a exception.

For getting temperature value from DS18B20, I should execute follow commands.
reset()
write(0xcc)
write(0x44)
reset()
write(0xcc)
write(0xbe)
read()
read()

Please, suggest how to use these sensors with some example.

Ytai Ben-Tsvi

unread,
Jul 18, 2013, 1:17:54 AM7/18/13
to ioio-...@googlegroups.com
The IOIO doesn't currently support Dallas 1-Wire interface AFAIK.
Adding such support probably requires custom firmware.
There are most likely equivalent sensors to these ones with an I2C interface.



--
You received this message because you are subscribed to the Google Groups "ioio-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioio-users+...@googlegroups.com.
To post to this group, send email to ioio-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ioio-users.
For more options, visit https://groups.google.com/groups/opt_out.



Santiago Alfaro

unread,
Jul 18, 2013, 10:48:57 AM7/18/13
to ioio-...@googlegroups.com
I haven't used that sensor and according to Ytai you might not be able to.

But I did get really good results with these sensors and wrote a little demo here. It is my first time trying to write demos as I learn all this stuff but I would love it if you find it useful.

정병진

unread,
Jul 18, 2013, 11:51:03 AM7/18/13
to ioio-...@googlegroups.com
Thanks Ytai :)
I bought new temperature sensor(TMP36) today.
How about this analog sensor for using with IOIO?
Maybe I think that I can get this sensor value with AnalogInput.read() function and some calculation.
Is it right?


2013년 7월 18일 목요일 오후 2시 17분 54초 UTC+9, Ytai 님의 말:

Ytai Ben-Tsvi

unread,
Jul 18, 2013, 11:56:07 AM7/18/13
to ioio-...@googlegroups.com
This should work fine.

mohammed said

unread,
Jan 30, 2014, 8:47:41 AM1/30/14
to ioio-...@googlegroups.com

hi 정병진 i was trying to use this sensor " PulseSensor : http://pulsesensor.myshopify.com/pages/pulse-sensor-amped-arduino-v1dot1" with ioio-otg i couldn't make it work so if you have any code for it please replay it here
Reply all
Reply to author
Forward
0 new messages