0

I'm currently trying to transmit data from one ESP32 to another with 433MHz modules. I also need to read some sensor readings from an Hall sensor.

When the ESP32 that sends is not connected the values are stable and good. If, however, it is connected, it is a nightmare.

Averaging about 1000 values makes it decent, but this also makes it slow and annoying to work with.

At first I added a capacitor over the 5V to GND (100nF), then I did the same with 3.3V to GND, and then again with the analog read pin to GND, but nothing smoothed the signal at all.

Here is the serial output with connected communication and disconnected communication:

enter image description here

Please help me fix this problem. I tried so many times, and I couldn't find anything related to serial output and bad analog read on the internet. I'm using pin 34.

Here's the analog read code:

delay(100);
Hallsensoranalog.update();
hallvalue = Hallsensoranalog.getValue();
Serial.println(hallvalue);

I even added a 100ms delay (this needs to be removed as I need a fast analog read) for giving the ADC extra time, but this doesn't help a lot.

I need to use these modules, I don't want to use the internal WiFi ESP-NOW or Bluetooth.

Best Regards,

Felix.

3
  • Please proof read your question and correct spelling and grammar errors. It's very difficult to read and understand what your issue is. Please also show your schematic so that someone might have a better idea of what you are referring to. – jwh20 Dec 18 '20 at 11:52
  • 1
    on an esp32 bench PSU project, i found that averaging didn't help nearly as much as taking 3 readings and keeping only the middle value. You can average those medians if needed. Remove the serial part when googling; there's lots of info about tweaking the esp32's ADC. – dandavis Dec 18 '20 at 18:16
  • What Hall sensor are you using? What library are you using to read from the Hall sensor? Are there other things connected to the ESP32? Is the Hall sensor close to the 433MHz modules? How is everything connected? What is the rest of you code? – ocrdu Dec 22 '20 at 2:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.