Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify analog plugin for piezo disc #1898

Closed
Sammii203 opened this issue Oct 13, 2018 · 6 comments
Closed

Modify analog plugin for piezo disc #1898

Sammii203 opened this issue Oct 13, 2018 · 6 comments

Comments

@Sammii203
Copy link

Summarize of the problem/feature request

I can't get values of piezo disc with "Analog input - internal" plugin.

Expected behavior

  • Give the "highest" value between two poll of the analog plugin
    Add checkbox in "data acquisition" section on the configuration of "Analog input - internal" for specify if we want the highest value between two pools.
  • Change data interval acquisition in milliseconds instead of seconds

Actual behavior

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.

Steps to reproduce

I explain my problem in this post

System configuration

Hardware : Adafruit HUZZAH ESP8266 breakout
ESP Easy version: ESP_Easy_mega-20181006_normal_ESP8266_4096.bin
ESP Easy settings/screenshots:
espeasy

@TD-er
Copy link
Member

TD-er commented Oct 13, 2018

I am not sure how we can do this on the analog pin.
Sampling of the analog input isn't fast enough to do this.

Maybe @ShardanX can explain it better?

@Sammii203
Copy link
Author

I don't understand; it's firmware or hardware problem ?
It seems to be feasible If I read this article

@Grovkillen
Copy link
Member

I believe they use the computer for the real time reading? Or why are they having it connected?

@uzi18
Copy link
Contributor

uzi18 commented Oct 14, 2018

Did you connect MAE540 like in the article (with 1MOhm resistor)?
Code for blynk only reads analog input, convert and send it to blynk, it's simple job.
ESPEasy is more busy here.

@TD-er
Copy link
Member

TD-er commented Oct 14, 2018

The linked article uses a Piezo sensor with mass, which means there is some weight glued to it.
This weight does:

  • Act as some kind of threshold for vibrations, a minimal force is required to make it vibrate
  • Act as a filter, only lower frequencies will be giving enough output signal.
  • Cause multiple vibration periods, giving the ESP more time to record the higher amplitude value.

Without such a weight, you have to sample at quite a large sample rate, or include some sample-and-hold circuit to keep the higher output values long enough for the ESP to sample it.

When using just a piezo element, you also have to protect the input of the ESP, since a piezo element can generate quite large voltages of over 50V.

@tonhuisman
Copy link
Contributor

This issue is probably no longer relevant, and can be closed.

@TD-er TD-er closed this as completed Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants