ESP32 gets zero readings needs reupload to get normal readings #2543
Unanswered
FaitAccompli
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We're currently using
node-serialport
to read data from our esp32 that prints data on the serial monitor at 500 sps.For context, we're gathering current readings from appliances using a current sensor. We're trying to detect the state of the appliances whether they are ON or OFF every 30 seconds. On Arduino's serial plotter, we can clearly see the changes in readings whenever we turn specific appliances ON or OFF and it never goes to zero unless all appliances are off. Basically, the arduino code works fine.
We used
node-serialport
because we're planning to feed the data we collected from serial and feed it to our model and later on display it on a locally hosted web application. However, if we turn certain appliances on or off, the readings eventually go to zero regardless of the state of the appliances connected. I checked issues that might be related to mine #2100 #1854 and #1042, it seems that the fix was to sethupcl
tofalse
However, this doesn't fix the issue for me. I suspect that something is being sent to ESP32 to cause a reset or abnormalities in the readings. A reupload fixes the issue but running the node application again causes it to go zero eventually.
I also used PuTTy to store the data I'm getting from arduino to make sure that the arduino code is working as expected.
Here's a screenshot of the control flags when using
serialport.get
If there's anything else, I can share more details.
For debugging, wasn't really able to get much info, I'm not sure if the
Beta Was this translation helpful? Give feedback.
All reactions