I am experiencing a strange effect when the ESP32 is connected to the PC via USB. My device is receiving data via 433MHz, the receiver is connected to a GPIO with the RMT analyzing the signal. When the ESP32 is running standalone, powered via 5V, the reception is excellent. But as soon as I will connect the USB cable to the computer, the signal gets noisy and disturbed. I am using a shielded USB cable with a ferrite ring, so I would expect the cable is not transmitting much.
What else can be the cause?
"Noisy" USB connection?
-
- Posts: 9727
- Joined: Thu Nov 26, 2015 4:08 am
Re: "Noisy" USB connection?
Maybe some kind of ground loop? Are you also powering the ESP32 from the 5V power supply when you plug it into USB?
Re: "Noisy" USB connection?
Yes, the 5V supply stays connected all the time. All grounds on the main board are connected - is there a separate loop perhaps on the DevkitC board acting as an antenna?
Re: "Noisy" USB connection?
Things get odder and odder...
I did several things to improve the supply trains - put in capacitors between 3.3v and GND, added a second GND connection to the DevkitC board, removed socket connections and soldered the modules directly to the board etc. Nothing changed the behaviour much, but when I apply my multimeter probes to measure the 3.3V supply, out of a sudden it works. I then thoroughly checked all solder joints to find a weak one, but to no avail.
The 5V supply is able to deliver up to 2A, so that should not cause 3.3V dropouts. The ESP32 brownout detection never struck, by the way, although active.
One thing I could imagine is the 433MHz receiver gets influenced by the metal mass of the probe wires (and the USB cable, of cause), but that would be difficult to find I am afraid.
I did several things to improve the supply trains - put in capacitors between 3.3v and GND, added a second GND connection to the DevkitC board, removed socket connections and soldered the modules directly to the board etc. Nothing changed the behaviour much, but when I apply my multimeter probes to measure the 3.3V supply, out of a sudden it works. I then thoroughly checked all solder joints to find a weak one, but to no avail.
The 5V supply is able to deliver up to 2A, so that should not cause 3.3V dropouts. The ESP32 brownout detection never struck, by the way, although active.
One thing I could imagine is the 433MHz receiver gets influenced by the metal mass of the probe wires (and the USB cable, of cause), but that would be difficult to find I am afraid.
Re: "Noisy" USB connection?
Another development: receiving 433MHz signals has completely ceased working now. The RMT reports status 0 - all fine -, but no signals are seen anymore.
To sort out faulty components, I used different receiver modules, different GPIOs to connect and even moved the receiver to the 5V train with a level shifter in between the receiver and the ESP32.
The last thing I had added was a Nextion display, powered by 5V as well and talking over the said level shifter with a HardwareSerial configured to GPIO16 and GPIO17, using UART2. The display is up and running and the ESP is talking to it, so I reckon it could not be the cause.
WTF could be happening here?
To sort out faulty components, I used different receiver modules, different GPIOs to connect and even moved the receiver to the 5V train with a level shifter in between the receiver and the ESP32.
The last thing I had added was a Nextion display, powered by 5V as well and talking over the said level shifter with a HardwareSerial configured to GPIO16 and GPIO17, using UART2. The display is up and running and the ESP is talking to it, so I reckon it could not be the cause.
WTF could be happening here?
Re: "Noisy" USB connection?
"There are three mutually exclusive ways to provide power to the board (DevKitC & Pico-Kit):
+ Micro USB port, default power supply
+ 5V / GND header pins
+ 3V3 / GND header pins
The power supply must be provided using one and only one of the options above, otherwise the board and/or the power supply source can be damaged."
https://docs.espressif.com/projects/esp ... ly-options
+ Micro USB port, default power supply
+ 5V / GND header pins
+ 3V3 / GND header pins
The power supply must be provided using one and only one of the options above, otherwise the board and/or the power supply source can be damaged."
https://docs.espressif.com/projects/esp ... ly-options
--
Paul.
Paul.
Re: "Noisy" USB connection?
Ough! Missed that bit!
I thought that the ESP would do it like the Arduino boards and choose whatever power supply was most stable.
Unfortunately even with just one power supply connected the issue is prevailing. In the meantime I found a receiver module that at least is generating data, but the sought signal is not to be found still. I may have blown the others, although I would not know how. Argh.
I thought that the ESP would do it like the Arduino boards and choose whatever power supply was most stable.
Unfortunately even with just one power supply connected the issue is prevailing. In the meantime I found a receiver module that at least is generating data, but the sought signal is not to be found still. I may have blown the others, although I would not know how. Argh.
Who is online
Users browsing this forum: Bing [Bot] and 53 guests