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

Unleash your robot's full potential with the cutting-edge features and intuitive programming offered by Synthiam ARC Pro.

#17  

using ezb3 direct plug into the board. 5v to all plugs

United Kingdom
#18  

Hi guys.

I'm bumping this thread as I have purchased and received the two sensors I mentioned, and would like to ask for some assistance as I need additional help to get started installing them.

Rich mentioned that the smoke detection sensor would work using the analog (ADC) ports. But is there a specific way I need to wire it up to the pins on the ADC port? GND goes to ground, Vcc goes to Red, but not sure about the other two wires. Smoke sensor picture below.

User-inserted image

As for the temperature sensor, Rich also mentioned that this would work through the UART port. Again, how should I wire this up? Temp sensor picture below.

User-inserted image

I so far have not used the ADC or UART ports on my EZ-B yet, so any advice to help me wire these up correctly would be appreciated.

Many thanks.:)

#19  

Steve G, it looks like the smoke sensor has an Analog output pin and also a Digital output pin so it can be wired to either type port.

The temp sensor does not have a UART output. There are pwr (+) and (-) and a signal lead. Uses an analog port.

#20  

DOUT= digital out AOUT= Analog out VCC = voltage in (don't use more than 5V to test it) GRD= is self explanatory

Plug it in to an analog (AOUT) port, bring up the ADC control and see what happens to the value as you blow smoke over it...

If it is a digital sensor, I am afraid I would need the sensor and the data sheet in order to get it working for you... Receiving data with the ezb is not that straight forward as sending it.... So lets hope it works using the analog port...

United Kingdom
#21  

Thanks @Robot-Doc.

Smoke sensor. Just got it. "Aout" is analog and "Dout" is digital. So using only one of these wires, this would go to either the ADC or digital signal pin?

And on the temp sensor, the "s" is signal? Sounds obvious but I just want to be sure before I fry anything as they didn't come with any paperwork.

#22  

Use.. ADC on an analog pin... If you use digital you'll have to figure out how to receive an unknown data format (since we don't have data sheet for it) over one of the UART ports.

@Doc... the digital output my guess would be TTL?

United Kingdom
#23  

@Richard.

Just writing a reply to Doc when you replied. Thanks for the info. I did get 5v regulators but obviously won't need to use them if using the analog ports. I'll give it a try tomorrow if I get a chance and let you know what happens, if anything.

#24  

Analog port power pin is 3.3V... The temp sensor might need 5V, however... S = white pin, - to black pin and + to the red pin.... If it works it will only give an analog value that probably won't have any meaning as far as temperature is concerned... If you lucky the value will increase or decrease according to the temperature... Not sure how you would convert that value to represent C or F....