Notes after review:
Internal pull up resistor
Add a ground layer (leave room to solder)
Electronics Design
Assignment:
Draw a circuit board
redraw the echo hello-world board, add (at least) a button and LED (with current-limiting resistor), check the design rules, make it, and test it
Group:
use the test equipment in your lab to observe the operation of a microcontroller circuit board
Wires: (https://www.engineeringtoolbox.com/wire-gauges-d_419.html\)
switch
button
slide
Resistor: I=V/R
1206 size is standard - because there is room to run traces underneath.
Capacitor:
C = Q/V (ration on the charge to the voltage), I = C dV/dt (rate of change of voltage)
unpolarized / polarized
Rated by: 1206 size, voltage, Farrad (amount of charge)
Crystal (tell time, 50ppm = 50 millions of a second pr. second dt/t)
Resonator (like crystals but have capacitatos build in, and are less precises).
inductor: V = L dI/dt
Energy lagres i et magnetic field. DC can go through, but high frequencies can't.
Important for radio transmitters
Diode: current from anode to cathode. Conduct in one (alphabetic) direction - from A to C.
The bar is the catode - the green/black line.
PN
Schottky
Zener: Clips the voltage on one side.
LED: Specified by wavelenght, candella and light diversion.
A diode doesn't have resistance (R) - so it will draw a much current (I) as the power supply can support. U= R * I.
Limit the I (to XX mAmp) by adding a current limiting resistor.
Transistor
Bipolar: collector, emitter, base current gain (we are not using this).
mosfet: source, drain, gate resistance
Can handle quite a lot of power.
Rds on max = the mosfet does not consume a lot of power.
Battery, regulator
Example: Battery - to capacitor - to regulator - to capacitor - til microprocessor
6 V in to get 5 volts out, around 100 MA.
P = I^2 R = I V
If you use lot of power = use a DC-to-DC converter.
op-amp: differential gain, negative feedback (now build in to Microcontrollers)
Microcontroller:
Denne uge: Attiny44
http://www.digikey.com/product-detail/en/ATTINY44A-SSU/ATTINY44A-SSU-ND/1914708
Datasheets:
http://www.microchip.com/mymicrochip/filehandler.aspx?ddocname=en590191
Datasheet complete:
http://ww1.microchip.com/downloads/en/DeviceDoc/doc8183.pdf
Sensors (later weeks):
Actuators (later weeks):
Electronics design:
Kirchoff's laws: sum current at node, voltage around loop = 0
Power: P = I^2 R = I V
How long will a battery last
How much heat does it
EDA Electronic Design A....
Drawing should be hierarchical and parametric.
Packages, footprints (find with supplier)
Component libraries: Digi-key has 10.000 10k resistors.
Pick the part and the packange
PCB width trace calculator
--> Use a special tool!
Steps:
Design rules: The ones we meassured in the PCB week.
Routing layers, power planes, ground pours
Not recommending:
Circuits https://www.tinkercad.com/circuits
Virtual Breadboard http://www.virtualbreadboard.com/
Fritzing http://fritzing.org/home/
For us:
From component vendors:
Community tools
Professional tools:
Tools to create Integrated Circuits:
Simulators:
Gnucap Qucs Oregano Multisim
Programming languages to create circuits (high complexity):
Verilog VHDL
Neils code to produce PCB:
kokompe pcb.cad sample, kokopelli pcb.py sample, mods
Test equipment
First: check voltage, Then check signal
Ossilioscope: - meassure and show voltage in wave form.
Multimeter: DMM COMPACT AUTO
USB-ossiliscope (Google Search)
Assignment:
Play with different tools
Pin for reset
Capacitor: To clean up the power ie induction from wire.
FTDI connector:
Crystal to tell time.
Traces and outline for PCB design.
Redraw:
Need a library to redraw.
PB2 and PB7 are free
One pin add button and go to groun
The other add led and a current limiting resistor.
Check design rules
Make it
Test it
In two weeks: We will write programm for the TinyChip.
Extra: Simulate it's operation - render it (KiCAP / Fusion)
Link samling:
http://academy.cba.mit.edu/classes/embedded_programming/index.html#echo
Board:
Group assignment:
Use power supply
Use DMM Multimeter:
Use Ossiliscope
From microcontroller - via datasheet to own made board:
http://archive.fabacademy.org/archives/2016/fablabbcn2016/students/346/Week06.htm
http://archive.fabacademy.org/archives/2017/fablabaldeias/students/473/week6.html
http://archive.fabacademy.org/archives/2017/fablabmadridceu/students/120/post6.html
http://archive.fabacademy.org/archives/2016/fablabamsterdam/students/205/assignments/wk06.html