Electric Components and Best Practices Solderless Breadboards Breadboard Connections Wiring Best Practices Wiring Best Practices • Colour code • - : Black, blue, grey, white • +: Red(ish)
• Appropriate wire lengths
• Component placement LEDs Resistors Datasheets, datasheets, and datasheets • Potentiometers • Buttons • Photodiodes • RGB LEDs • Internet searches Virtually Impossible to Forget: V=IR Example • Values from datasheets: •V=IR • Power source: 12 V • 10 V = 0.02 A * R [Ohm] • Forward voltage: 2 V • Forward current = 20 mA • R [Ohm] = 10 V / 0.02 A • V = V_S – V_F • R = 500 Ohm • V = 12 V – 2 V • = 10 V Schematics, the two styles Curiosity? • The Art of Electronics: • Chapter 1: Foundations • Course content -> Content -> Resources -> Last File • Resistors in series and parallel • Ohm’s Law • Kirchhoff’s Current Law • Doen’t matter where you put the resistor, why? • Kirchhoff’s Voltage Law • Complete Book: • Microcontroller architecture • Basically everything… Workflow Tips Necessities?
Development, Execution, and Analysis Communication? Transfer of Data?
• Development on your own • Ampy laptop • PuTTy • Execution on the ESP32 with MicroPython
• Analysis on your own laptop
What do I do? • Guide: Getting Started with Huzzah 32 • Day 3 > Slides
• Easiest way to install is through Anaconda Prompt
• Basically only Ampy – so one command
• Workaround for ports: ampy –p COMx <OR> /dev/tty… run <file.py>
The Suggested Workflow? • Think • Sketch – Flowchart and/or pseudocode • Code in Spyder • Ampy put <file.py> • Ampy ls • Ampy run <file.py> • Ampy get <result_file> • Analyse on your own laptop