mirror of
https://gitlab.waag.org/make/fablab/interns/2025/sam.git
synced 2025-08-03 20:04:56 +00:00
more typos
This commit is contained in:
@@ -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.
|
||||
|
||||

|
||||
|
||||
@@ -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.
|
||||
|
||||

|
||||
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.
|
||||
|
||||

|
||||
|
||||
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
|
||||
|
||||

|
||||
|
||||
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.
|
||||
|
||||

|
||||
|
||||
When I compile it now it should work. Except that it doesn't work.
|
||||
|
||||

|
||||
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:
|
||||

|
||||
@@ -713,7 +713,7 @@ Now I can see everything that the microcontroller is doing. I saw that it used p
|
||||
|
||||

|
||||
|
||||
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:
|
||||

|
||||
|
Reference in New Issue
Block a user