random movement of servo connected to GPIO 34 #10382
-
hello to all here, i am hobbying here on my holiday, and have managed to get many steps further over these days thanks to all the help here. I have two servo's (20kg) connected to my wemos esp32 s2 mini board. the servo's are of the same make..
besides that i have also connected, 2x vibration sensor sw-240, 2x drv8825 stepper driver, 2x TCST2103 optical end switch and a ttp223 touch sensor connected to that board. besides the boot.py, i have no code running, nor have had ever installed, just used the repl through data cable. I posted the boot.py code here below, just in case, but i do not feel there could be an issue there.. Never the less there is a cause..
point 2 and 3 is something i need to deal with myself ofcourse, but if there is an issue concerning point 1 i do not feel i have enough knowledge to decide a yes or no on this. pin specs according to the esp32 s2 mini datasheet. Has anyone any thoughts on this? Kind great, Matthieu the boot.py code
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Some pins are used for different purposes during boot. Search "strapping pins". I can tell you which ones to avoid on the ESP32-WROOM but they might not apply to your variant. |
Beta Was this translation helpful? Give feedback.
-
On boot all pins are high impedance. This may cause unpredictable behaviour. You need to configure as outputs the pins connected to the servos. |
Beta Was this translation helpful? Give feedback.
On boot all pins are high impedance. This may cause unpredictable behaviour. You need to configure as outputs the pins connected to the servos.