United Kingdom
Asked — Edited
Resolved Resolved by Dunning-Kruger!

Temperature And Smoke Detection Senors With Ez-B V4

User-inserted image

Hi guys.

I need a little advice on some additional sensors I was thinking of adding to my bot, and as I am still waiting for my dev kit and extras to arrive, I am unable to test what I am thinking of doing so I'm hoping someone can point me in the right direction.

I had an idea of adding a smoke detection sensor and maybe a temperature sensor as well. The idea being that if I ask the bot what the current temperature is, or if the bot detects smoke or Co2 fumes, the bot would respond with verbally with a pre-recorded MP3 file of the Cepstral voice I have, or one better, have my bot tell me what room the smoke or gas is detected in. Here are a couple of links to what I am thinking of adding.

Smoke detection sensor

Temperature sensor

Would these sensors be compatible with the EZ-B v4 and 7.4 LiPo battery? I see that the temperature sensor is compatible with Arduino so I am hoping that both of these sensors will play nice with the v4. Also, has anyone tried something similar to what I am thinking of doing? As always, any help or advice anyone can offer would be greatly appreciated.

Cheers,

Steve.;)


ARC Pro

Upgrade to ARC Pro

Your robot can be more than a simple automated machine with the power of ARC Pro!

#25  

@Richard R, possibly the Digital out is TTL should be easy to monitor using the EZB terminal.

United Kingdom
#26  

Well after going to the end of the Internet and back, I found data sheets for both sensors.

The first one is for the smoke sensor which had a sample of Arduino code (Richard, I know your familiar with Arduino), and the data sheet below.

Smoke sensor Data sheet.

And I fouund a data sheet for a temp sensor which looks a little different to what I have, but has the same specs. Also my temp sensor works from 3.3v to 5v so I should be golden there.

Temp sensor Data sheet.

Steve.:)

#27  

The smoke sensor is an easy one... It's analog... Connect it to an analog port and read the values in the ADC control as smoke hits it... The value will either increase or decrease depending on the concentration of smoke... From here you can determine at what point that you want the sensor to alert you of smoke... However, remember the Analog ports on the ezb only put out 3.3V so if the sensor requires 5v it may not work unless you can get external 5v power for it.

The temp and humidity sensor is another story.... It will take someone who knows a lot about the EZB4 UART... I managed to receive 8bit data from a Roomba but that's it so far... The temp and humidity sensor (from the data sheet) requires I think 40bit.... DJ and possibly Rich are probably the only 2 who can help you here.... sorry

United Kingdom
#28  

Hey, no problem Richard. Thanks for looking in to it and getting back to me. It's much appreciated:). So in regards to the temp sensor, it won't work via analog? Rich did mention it could be UART.

And with the smoke sensor, would there be a lot of difference if I used a digital port? I ask because if I find that voltage is an issue via analog, I do have 5v regulators I can use with the "Dout" pin. Just not sure what to do with the scripting side of things.

United Kingdom
#29  

It is uart. Im away at the moment and no idea when im back home but its on the top of the list of things to port from arduino to ez-b.

#30  

For the smoke detector, the data sheet is not for the board, just for the sensor, so it doesn't tell us what is coming out the digital port. Digital is likely to be UART as well unless it is very simple like the Ping Sonar, but that would surprise me. It will be much easier to use as an analog sensor where the behavior is well understood. ie, you plug it in and read the value. The initial value either goes up or down in the presence of smoke.

Alan

#31  

The smoke detector does work with analog.... I just tested one with an Arduino.... As I said, if you're going to go digital you'll have to mess with the UART and data receive.... Again as mentioned, I have only been able to receive 8bit data from the UART port (255 max values)... I have been trying to get 2byte data (High byte, low byte) from my iRobot Create for sometime now... no luck....

It has been mentioned here (by a member who is/was trying to read feedback data from his dynamixel servos) that there may be issues still with the UART receive...

United Kingdom
#32  

Thanks guys, and happy new year to you all.:)

Haven't had a chance to try anything out yet, but will do tomorrow. I had a thought in regards to both sensors and their 5v power requirements. Could I run the ground and Vcc from a digital port through a 5v regulator, and the signal wire from an ADC signal pin to keep the sensors running on analog, or would that not work?