more typos

This commit is contained in:
2025-02-19 13:00:30 +01:00
parent 83e63ccba5
commit 2b16ea154f

View File

@@ -290,7 +290,7 @@ Im going to start off with 2 sliding potentiometers and a espC3 for throttle and
### Wiring the controller
To read the Pot meter values we need to read the resistance from the potslider. So we need analog read. When looking at the datasheet I can see that I can use pins from 0 to 5.
To read the Pot meter values we need to read the resistance from the potslider. So we need analog read. When looking at the data sheet I can see that I can use pins from 0 to 5.
![alt text](image-21.jpg)
@@ -649,14 +649,14 @@ A weird thing I found out is that my esp32C3 Supermini doesn't work wirelessly t
<video controls src="../../../Assignments/week_4_programming/IMG_8197(1).mp4" title="Title" type="video/mp4"></video>
I've delved a bit deeper into it and then I found online that with the first batches of espC3 supermini's have issues with the antenna. When I was debugging it I noticed that connecting the ground to the antenne fixed it when I tried it with a pin. But when soldered on it didn't work anymore and then only thing that worked was my finger.
I've delved a bit deeper into it and then I found online that with the first batches of espC3 supermini's have issues with the antenna. When I was debugging it I noticed that connecting the ground to the antenna fixed it when I tried it with a pin. But when soldered on it didn't work anymore and then only thing that worked was my finger.
![alt text](IMG_8200.jpg)
Result of bridging ground and the antenna. Sadly didn't work. After that I grabbed the Xiao espC3 and connected it. It almost worked like a drop in replacement I only needed to change the Potpin. After that it worked flawlessly.
![alt text](image-28.jpg)
Now I can start intergrating the code into the drone driver.
Now I can start integrating the code into the drone driver.
The first thing I did is add the correct libraries at the top of the file. So it looks like this now
@@ -684,14 +684,14 @@ In the PWM receive function I added an additional case so my PWM values actually
![alt text](image-32.jpg)
At the end of the program I added the ESPNow Initialisation function and the callback function for when the data is received.
At the end of the program I added the ESPNow Initialization function and the callback function for when the data is received.
![alt text](image-33.jpg)
When I compile it now it should work. Except that it doesn't work.
![alt text](image-34.jpg)
From looking at the errors it looked like the PWMServo library wasn't compatible with the ESP32. When looking around on google from PWMservo libraries for the ESP32 I found the correct library on [this](https://randomnerdtutorials.com/esp32-servo-motor-web-server-arduino-ide/) website. When I added that I needed to edit the class creation to the correct library and then it finaly compiles!
From looking at the errors it looked like the PWMServo library wasn't compatible with the ESP32. When looking around on google from PWMservo libraries for the ESP32 I found the correct library on [this](https://randomnerdtutorials.com/esp32-servo-motor-web-server-arduino-ide/) website. When I added that I needed to edit the class creation to the correct library and then it finally compiles!
From:
![alt text](image-35.jpg)
@@ -713,7 +713,7 @@ Now I can see everything that the microcontroller is doing. I saw that it used p
![alt text](image-38.jpg)
Now I can finally test. When adding debug print statements for my sensor I found out it wasn't responding. Then I looked at the pins of the sensor and found out when I re-seated it I acciddentally killed it.
Now I can finally test. When adding debug print statements for my sensor I found out it wasn't responding. Then I looked at the pins of the sensor and found out when I re-seated it I accidentally killed it.
I had it like this:
![alt text](IMG_8212.jpg)