Hi,
I love the ESPeasy project. Thanks a lot.
Currently I have a application with a hx711 board + 4 weighting Sensor.
For my iPhone I made an iOS application that ask for values every 500mseconds (Json).
Works stable and fine so far.
Is is somehow possible to update the sensor mor often than 1 per second?
This would make my application more accurate.
Thanks
Frank
Sensorupdate faster than 1 second?
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Sensorupdate faster than 1 second?
You would need to compile that yourself then. Currently only once per second for the official builds.
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Sensorupdate faster than 1 second?
You should also look in the timing stats page to see how long it takes to perform a reading.
I doubt it is possible to do it at a higher frequency.
I doubt it is possible to do it at a higher frequency.
Re: Sensorupdate faster than 1 second?
Thanks a lot for you fast support.
Timing looks good - as I understand-
Read HX711 2ms
Loop: 229ms
I will now try to find the relevant lines in the code a compile a new one.
Thanks
Frank
Timing looks good - as I understand-
Read HX711 2ms
Loop: 229ms
I will now try to find the relevant lines in the code a compile a new one.
Thanks
Frank
Re: Sensorupdate faster than 1 second?
You can also test with the rules to trigger multiple taskrun calls.
As a hack you can cause some sub-second delay by calling the LongPulse_ms command (see: https://espeasy.readthedocs.io/en/lates ... -available )
This will block for as long as set.
As a hack you can cause some sub-second delay by calling the LongPulse_ms command (see: https://espeasy.readthedocs.io/en/lates ... -available )
This will block for as long as set.
Re: Sensorupdate faster than 1 second?
Thanks a lot.
Setting an output pin with
Longpulse_ms
Connected via wire to an input pin, and trigger an action by a change
Works for me.
Maybe there is a software solution, but I am happy for now.
Frank
Setting an output pin with
Longpulse_ms
Connected via wire to an input pin, and trigger an action by a change
Works for me.
Maybe there is a software solution, but I am happy for now.
Frank
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: Sensorupdate faster than 1 second?
Smart Frank !
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 20 guests