Hello everyone,
I have a project where I am sending data from 5 sensors (2 hardware serial, 2 software serial and 1 i2c communication) via esp32 devkit v1 to my website/database. Im powering sensors via external 5V/2A PSU. While esp32 is connected via usb cable to pc (commong ground via external PSU and esp32 board is connected) everything is working fine. Then Im trying to switch and power esp via external PSU via Vin pin and one of the sensors that use software serial communicaiton starts sending erradic values that make no sense. Same thing happens when I power ESP32 via different external PSU or via usb port on esp when ends of cables go to PSU instead other end of usb that goes to pc. I am not sure what the problem is but it seems like something between board and PSU. I have tired different PSU and same problem occurs as well as different esp32 board. When I was using multimeter to check voltages or when I would unplug and then plug USB cable from esp port sometimes it would randomly start working properly. I dont know what the problem is, anyone has any ideas? Really not sure what to do or test anymore cause voltages seem stable on esp32, on esp32 and on sensors.
Serial communication of a sensor doesent work depending on PSU
Re: Serial communication of a sensor doesent work depending on PSU
UPDATE:
I have figured out that once power goes off and then back on in that case sensor starts its erradic behavior, but once I reset ESP through EN pin everything continues to work normal. SO basically upon first power on or any other time power goes off then on through Vin or USB cable that is connected to PSU erradic behavior starts, but once I reset esp32 it continues to work normally. Any ideas?
I have figured out that once power goes off and then back on in that case sensor starts its erradic behavior, but once I reset ESP through EN pin everything continues to work normal. SO basically upon first power on or any other time power goes off then on through Vin or USB cable that is connected to PSU erradic behavior starts, but once I reset esp32 it continues to work normally. Any ideas?
Who is online
Users browsing this forum: Bing [Bot] and 35 guests