ESPEasy + ESP8266 + Piezo disc problem

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
sammii
New user
Posts: 3
Joined: 13 Oct 2018, 10:29

ESPEasy + ESP8266 + Piezo disc problem

#1 Post by sammii » 13 Oct 2018, 12:17

Hello,

I have a problem with my application : ESP Esay with ESP8266 and Piezo disc.
My Config :
  • Adafruit HUZZAH ESP8266 breakout
    ESP_Easy_mega-20181006_normal_ESP8266_4096.bin
    Piezo disc
    1 Mega Ohm
Photo for my application :
photo.png
photo.png (750.63 KiB) Viewed 3836 times
My piezo disc is connected to the A0 and GND of the ESP8266

Config for ESPEasy
ESPEasy.png
ESPEasy.png (215.8 KiB) Viewed 3836 times
I have a problem, because Piezo don't detect all pressures and knocks near it.
And without pressure or knocks, values are always between 10 and 20.


Same tests with Arduino work well :
  • Same application, just replace the ESP8266 and ESPEasy by Arduino and code.
    Detection OK of all pressures and knocks.
    I would like same results like this video : https://www.youtube.com/watch?v=sqHJ9tDC9IM, but with ESPEasy... :D
Do you have an idea to solve my problem ?


Best Regards.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESPEasy + ESP8266 + Piezo disc problem

#2 Post by grovkillen » 13 Oct 2018, 12:30

If you measure the voltage over the piezo you see that your levels are close to zero right? Since you're not feeding it with any power it'll never register any levels? And since the ESP Easy core is only polling the analog once per second maximum you will be lucky to have the levels captured at all. It's a nice idea though and the fact that ESP Easy aren't cut out for it in its current state shouldn't put you down.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

sammii
New user
Posts: 3
Joined: 13 Oct 2018, 10:29

Re: ESPEasy + ESP8266 + Piezo disc problem

#3 Post by sammii » 13 Oct 2018, 12:57

Thanks for your response.
If I understand, currently, there is no solution with ESPEasy ?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESPEasy + ESP8266 + Piezo disc problem

#4 Post by grovkillen » 13 Oct 2018, 13:07

No the way the firmware is running you cannot poll fast enough to get those analog signals. It would require the polling to be done 100-500 times per second. Currently one poll per second is done for the analog plug-in. But you can open a feature request that ask for the analog plug-in to get "highest" value since last poll. Then the plug-in would be to be remade for checking values more often. So please open a new issue on GitHub and link to this thread.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:


User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESPEasy + ESP8266 + Piezo disc problem

#6 Post by grovkillen » 13 Oct 2018, 19:45

Thanks for that. Not sure if the ESP is up for millisecond polling but together with some external circuitry it might be possible.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 27 guests