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:
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.