Community Question

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. ;)
Richard R
Commented January 2015
Good luck with the UART.... I still haven't been able to get to work with receiving data greater than 8bit... You going to need to use the GetByte and GetByteAt commands as well... There is a UART example in ez builder, why don't you start with that first...
Steve G
Commented January 2015
@Richard.

I
just tried the peripheral example. No joy. I tried every configuration, port 0, port 1, port 2, and used RX and TX. The byte rate never changed. :(
Richard R
Commented January 2015
Another option...which I have not tried so I have no idea if it will even work... Is to use the EZB4 Serial terminal control and the GetControlValue( ) command to see if you can read the sensor data sent from the temp sensor... Again, no idea if this will work and I am not even sure if the sensor itself needs a send command instruction from the ezb in order for it to spit back data...

or... get an arduino example code for the temp sensor and port it to ezb scripting....
Richard R
Commented January 2015
.... Well, you might be SOL unless DJ and maybe Rich can help you then with this....
Steve G
Commented January 2015
It does sound like I have bitten off a little more than I can chew right now using UART. I will see if I can find an Arduino example and port it, but I don't think my scripting skills are up to the task just yet.
Question
AvatarSteve G
Asked on Tuesday, September 23, 2014