Electronics
The next few weeks have a simple task!
But where do we start?
In the spirit of this course let’s try looking at this through a lens that I’m going to dub “everything everywhere all at once.” We’ll focus on hardware and dip into theory as the components require it.
“the limits of my language mean the limits of my world” - Ludwig Wittgenstein
Parallels amongst other fields
What you’re making this week
Micro USB connector
Provides 5V and ground connections
Data transfer for programming and debugging
3.3 Volt regulator
Takes 5V in and turns it to 3.3V which our microcontroller needs
Capacitors store charge and reduce ripples
why?
variance
average
No Load
No Bypass
No Load
0.1uF Bypass
With Load
No Bypass
With Load
0.1uF Bypass
With Load
0.1 and 1uF Bypass
With Load
0.1, 1, and 10uF Bypass
Resistors* reduce the flow of current
Light Emitting Diodes produce light when current flows through them
Diodes:
Diodes:
Light emitting diode (LED)
Diodes:
Current flows in one direction only*
Require a resistor to limit the current
No current - nothing happens
A little current - nice happy lights
Lots of current - fire, burnt parts, sadness
Img: https://cdn.sparkfun.com/assets/4/4/a/5/b/5175b518ce395f2d49000000.png
Very sensitive here
Current won’t flow* until voltage exceeds the forward voltage drop (Vfd) of the LED
Knowing max current of the LED lets us set an appropriate current limiting resistor
0.025A=(3.3-2)V/R
R=1.3/0.025=52 Ohms
I=(3.3-Vfd)/R
Resistors also define states
Usually coded so you can see the value
51*10^2 = 5.1K Ohms
What is the voltage of a wire that is just hanging out in space?
Scenario | Voltage at input when not pushed | Voltage at input when pushed |
SW1 | | |
SW2 | | |
SW3 | | |
Scenario | Voltage at input when not pushed | Voltage at input when pushed |
SW1 | ??? | |
SW2 | | |
SW3 | | |
Scenario | Voltage at input when not pushed | Voltage at input when pushed |
SW1 | ??? | Gnd (0 Volts) |
SW2 | | |
SW3 | | |
Scenario | Voltage at input when not pushed | Voltage at input when pushed |
SW1 | ??? | Gnd (0 Volts) |
SW2 | 3.3V | |
SW3 | | |
Scenario | Voltage at input when not pushed | Voltage at input when pushed |
SW1 | ??? | Gnd (0 Volts) |
SW2 | 3.3V | 3.3/Gnd/ |
SW3 | | |
Scenario | Voltage at input when not pushed | Voltage at input when pushed |
SW1 | ??? | Gnd (0 Volts) |
SW2 | 3.3V | 3.3/Gnd/ |
SW3 | 3.3V | |
Scenario | Voltage at input when not pushed | Voltage at input when pushed |
SW1 | ??? | Gnd (0 Volts) |
SW2 | 3.3V | 3.3/Gnd/ |
SW3 | 3.3V | Gnd (0 Volts) |
With a power dissipation of only 1mW
10 pin header
Just some convenient pieces of metal to plug wires into so our board can connect to the outside world
ATSAMD21E microcontroller
It does almost anything
Buttons?
OLED screen
How is that a button?
Capacitive sensing/step response is a bit of magic that can be employed in many different scenarios
Either measure rise time
Or wait a fixed time and measure voltage
More components not used in this design
Mosfets
Keeps it off!
Limits inrush
Signal
here
Flyback diode
Careful!
pull-up/down resistors keep the device off at rest.
Input resistors reduce inrush current.�Voltage spikes arise from inductive loads
V=L*dI/dT
Seeed XIAO ("小": means "small")
RP2040
ESP32C3
Seeed XIAO ("小": means "small")
Simulation in Wokwi vs Falstad
Pros
Cons
Pros
Cons
Wokwi Falstad
Digital Simulation in Wokwi/Falstad
Options to assemble this week
QPad Xiao
QPad w/Micro
Qpad
w/USBC
Easy
Harder
Super challenge
Helpful programmer