-->
Page 1 of 3

eBreathalyzer : ESP8266 controlled BAC sensor MQ-3

PostPosted: Sat Sep 12, 2015 8:38 am
by freedom2000
Hi all,

Again a small IoT device showing clearly all the power of ESP8266 chip and B4A.

It's just a MQ-3 gas sensor UDP connected to my Android.
A little calibration, a nice gauge and that's it

See it in action !



JP

Re: eBreathalyzer : ESP8266 controlled BAC sensor MQ-3

PostPosted: Sat Sep 12, 2015 9:38 am
by danbicks
JP,

This is awesome, well done you :)

I have b4a but never seem to manage create apps for it. I have a home lighting system I am working on pretty please any chance of sharing the android b4a code, would give me a great start point as this also uses UDP for control of my unit based on an ESP8266-12 and mosfets for the switching.

You have done well to get the ESP adc to return a smooth value like this, do I take it only UDP is running and no connection to a home router.

Awesome project mate. Well done :)

Dans

Re: eBreathalyzer : ESP8266 controlled BAC sensor MQ-3

PostPosted: Sat Sep 12, 2015 10:43 am
by freedom2000
Hi Dans,

Yes I can share parts of the B4A code without any problem.

But please ask this question in B4A forum here : http://www.esp8266.com/viewtopic.php?f=15&t=5496

Regarding the ADC, I average several readings into the ESP
then Android App request this average value
Android App performs another average and latchs the max value.

UDP Protocol is running in real time triggered @5 Hz

On first connection, ESP exposes Access Point
then the phone can connect, broadcasts UDP message and gets ESP IP address
App can send your router SSID password to ESP
ESP next time will boot in STA mode and try to connect to your router. If it fails it will jump to AP again.

JP

Re: eBreathalyzer : ESP8266 controlled BAC sensor MQ-3

PostPosted: Sat Sep 12, 2015 10:55 am
by danbicks
JP,

That is awesome buddy, fantastic work. Really look forward to getting my head back in to b4a .

I will post a message on the forum, many thanks for your help, and superb work!

Dans