mirror of
https://gitlab.waag.org/make/fablab/interns/2025/sam.git
synced 2025-08-03 11:54:58 +00:00
more input devices docs
This commit is contained in:
@@ -9,7 +9,11 @@ The more we pushed the potentiometer the higher the voltage became. So the volta
|
||||
|
||||

|
||||
|
||||
Later on Henk connected a ds18b20 to a signal analyzer and tried reading the protocol.
|
||||

|
||||
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.
|
||||
|
||||
|
||||
## 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 +30,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.
|
||||
|
||||

|
||||
Setup with joystick and arduino.
|
||||

|
||||

|
||||
|
||||
@@ -63,7 +68,7 @@ This is my final design that I am going to send to the board house. I don't need
|
||||
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.
|
||||
|
||||

|
||||
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).
|
||||
|
Reference in New Issue
Block a user