A place to put your YouTube video that is ESP8266 related.

User avatar
By freedom2000
#28904 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
Last edited by freedom2000 on Sat Sep 12, 2015 11:04 am, edited 1 time in total.
User avatar
By danbicks
#28909 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
User avatar
By freedom2000
#28915 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