This commit is contained in:
2025-04-23 13:27:51 +02:00
parent f5c2e0d7a6
commit 16b569c49d

View File

@@ -505,6 +505,10 @@ So the main MCU would do all the thinking and readings from the sensors and the
So now I could send commands to the motors over Serial and see the motors spin in realtime. The command is structured like this. `1,500` Where 1 is the motor number and 500 is the speed of the motor. So like this I could control every motor separately.
## Using an ESPC6
Since we couldn't use the Arduino for any logic stuff we needed something else to talk to the arduino that's where the ESP came in to play. I only attached the Esp Tx to the Rx of the arduino because these 2 mcu's work on different logic levels and I was concerned that the arduino may fry the the ESP if it send anything back.
//TODO: add more docs
## Getting ultrasonic sensors to work (Again)
On the last day I tried to connect everything together. I first started out with one ultrasonic sensor but I noticed I wasn't getting any data from it. So I started debugging and only running the code necessary to get the sensor running but that also didn't work