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

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

United Kingdom
#10  

Quote:

0~5V analog output voltage, the higher the concentration the higher the voltage

The gas sensor would work on the ADC port, the same way any analogue sensor works on an ADC port. I'll post an example when I have more time (need to leave in 2 minutes).

The Temp sensor would need to use the UART functions, the result would need to be parsed. The result is both temperature and humidity at the same time. I plan to look at porting this over to ARC soon, until then you could check the arduino library and see if you can figure it out.

United Kingdom
#11  

Any news on the 5v regulators will be available in the store?

#12  

Yep. I am using the smoke detector in the opening thread. Using like @ruch said. The analog voltage reader. One thing thoug . The smoke kinda has to be blow in its direction for it to really work. And it gets kinda hot depending in the sensitivity you set on it.

I added one to the chest of my wall-e ...he sits on my desk...and when I smoke he comments.

United Kingdom
#13  

Thanks for your reply hoolagen1. Great to hear somebody else is using one too. Just to be clear, do I still need a regulator to use the 5v smoke detector sensor through an analog port when powering the EZ-B with a 7.4v battery? Also, would you be willing to share any code/script you are using to help get me started? I really wouldn't know where to start. confused

Thanks.

#14  

You don't need a regulator for the analog ports... The power pin on the analog ports is 3.3v... It's the digital ports you need to use the reg because the power pin is = to battery voltage...

United Kingdom
#15  

That's made things clearer. Thanks Richard. :)

#16  

@SteveG be aware you may have the opposite problem.... The analog ports on the EZB4 output only 3.3v... while this should be enough, some sensors need a full 5v to function properly.... Maybe @hoolagen1 can let us know which ezb he is using as the ezb3 analog ports are 5V not 3.3v...