Compare commits

...

7 Commits

Author SHA1 Message Date
d007b2de8f docs 2025-03-26 12:05:16 +01:00
1b580320e9 group 2025-03-26 12:03:48 +01:00
bbf72a1bdf added images 2025-03-26 12:00:35 +01:00
5e6f5a62a5 typo 2025-03-26 11:22:24 +01:00
7504e037f7 more input devices docs 2025-03-26 11:18:21 +01:00
56f9e57501 board houses 2025-03-26 11:12:13 +01:00
85ab692586 docs about drone control board 2025-03-26 11:04:13 +01:00
7 changed files with 30 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -9,7 +9,17 @@ The more we pushed the potentiometer the higher the voltage became. So the volta
![alt text](image-6.jpg)
Later on Henk connected a ds18b20 to a signal analyzer and tried reading the protocol.
![alt text](image-18.jpg)
Communication of oneWire Humidity sensor
Later on Henk connected a ds18b20 to a signal analyzer and tried reading the protocol. Afterwards we did it ourselves to see the communication between a mcu and a ultrasonic sensor.
![alt text](image-19.jpg)
Here you can see the trigger and the echo pin being pulled to high.
Here is an example of the RX pin being used when sending data to the MCU. We hooked up the logic analyzer to the Rx pin of the arduino to see if we can see the communication
![alt text](image-20.jpg)
We also used a doppler sensor but it worked half of the time. We hooked it up to a led because a pin of the doppler radio goes to high when it detects something but the detection worked really weirdly. It could be because of everyone's presence in the room.
## Potentiometer/Joysticks
For this week I want to get proper readings from my joysticks. I got them from aliexpress and couldn't find any datasheets on them. So I gotta test them out myself. With 3.3 volts I got good measurements when sliding the joystick to the lest and bad measurements when going to the right. When fully to the right it was hanging around 2400 and sometimes jittering to 2700. With a controller for a drone I don't want any jittering so I need to figure out how to make them completely stable. On my first board I had a lot of errors. When I was soldering the multiplexer the first time I accidentally rotated it 180 degrees. So I asked Henk for help de-soldering it.
@@ -26,7 +36,8 @@ When fully to the right it won't drop to 0 but when to the left it goes to 4095
So now I wanna test on a arduino to see if it works right on 5 volts. If it does I need to figure something out to either get 5v on the esp of another way of communicating between another mcu and esp. I can't use the VIN of the esp because I want to use batteries. When using batteries there isn't going to be 5v supplied on the VIN. Or maybe I should use a power bank. Then I do have 5v out.
![alt text](IMG_9347.JPEG)
Setup with joystick and arduino.
![alt text](image-10.jpg)
![alt text](image-11.jpg)
@@ -49,19 +60,32 @@ During debugging I first removed the multiplexer and created a bypass to attempt
Then I still struggled the entire day debugging and then I gave up and went home. In the morning Henk used the rubber ducky method and I found the problem and fixed it like this.
Before
![alt text](IMG_9351.JPEG)
![alt text](IMG_9351.jpg)
After
![alt text](IMG_9355.jpg)
It looks super messy but what I have done is. I broke one trace and created the same configuration as in the correct schematic. I connected the resistors wrongly and that caused all the power to go to ground instead of dividing the voltage to the analog pin and the ground.
Now that this works I can work on the final design of the board and send it to a board house.
![alt text](image-16.jpg)
This is my final design that I am going to send to the board house. I don't need any bridge resistors because I can do 2 layers with vias.
![alt text](image-17.jpg)
I needed to submit my board 2 additional times because the first board was still faulty. The second board I forgot to export the solder masks and with the third one It got confirmed and accepted!
Something else I found out is that if you order 5 boards you get a big discount on the shipping so that saved about 10 dollars.
## Voltage divider
This week I learned how voltage dividers worked and I also struggled a lot with them. A voltage divider is better for splitting voltage instead of creating a voltage drop using a single resistor. Because you don't have to know how much current is flowing. Instead you can divide the voltage between 2 lanes.
This week I learned how voltage dividers worked and I also struggled a lot with them. A voltage divider is better for splitting voltage instead of creating a voltage drop using a single resistor. Because you don't have to know how much current is flowing. Instead you can divide the voltage between 2 lanes. This way you can receive an 5v analog signal on a esp without frying it.
![alt text](image321.png)
I found a lot of helpfull explanation on [this website](https://www.khanacademy.org/science/electrical-engineering/ee-circuit-analysis-topic/ee-resistor-circuits/a/ee-voltage-divider).
![alt text](image321.jpg)
I found a lot of helpful explanation on [this website](https://www.khanacademy.org/science/electrical-engineering/ee-circuit-analysis-topic/ee-resistor-circuits/a/ee-voltage-divider).
## The drone control board
This week I've also started testing with the drone motors and electronic speed controllers. I have worked a bit with them in the past but not much. I have made this board so I could test the motors reliably because sending signals over breadboards can be super unreliable.
![alt text](IMG_9369.jpg)
I've also screwed it into a plate otherwise the IMU would give all sorts of random measurements and I needed exact measurements.
## Sources
* https://www.khanacademy.org/science/electrical-engineering/ee-circuit-analysis-topic/ee-resistor-circuits/a/ee-voltage-divider