<h3> Tuesday: </h3> 3:00: Make sure you can talk to your MCU! (Instructions for ESP32 <a href='https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/'>here</a>) - Open Arduino IDE - Plug in your microcontroller (ask if you need a cable) - Go to Tools > Board > Uno - Find Tools > Port > *your microcontroller* - Open File > Examples > Basics > Blink - Upload the file 3:00: <a href='../../lab/arduino/L9110.html' target="_self">Use the L9110 H Bridge Power Driver to drive a motor.</a> Write a new function to give the motor commands. <br> 3:45: Workshop on <a href='../../lab/arduino/arduino.html' target="_self">microcontroller programming</a>, conditional statements, loops, pullup resistors.<br> ### Reading: <a href='../../lab/arduino/micro.html' target="_self">Introduction to microcontrollers</a>, <a href='../../lab/arduino/arduino.html' target="_self">conditional statements and loops</a>, <a href='../../lab/arduino/foundations.html' target="_self">Arduino Foundations</a>. Arduino: <a href='https://www.arduino.cc/en/Tutorial/DigitalPins'> Digital Pins</a>, <a href='https://www.arduino.cc/en/Tutorial/AnalogInputPins'> Analog Input Pins</a>, <a href='https://www.arduino.cc/en/Tutorial/PWM'> PWM</a>, and <a href='https://www.arduino.cc/en/Tutorial/Memory'>Memory</a><p> <a href="https://www.eitkw.com/wp-content/uploads/2020/03/Arduino_Projects_Book.pdf">Arduino Projects Book</a> Chapters 1-3.<br> <a href='https://learn.sparkfun.com/tutorials/pulse-width-modulation'>Pulse Width Modulation</a><br> <h3> Thursday: </h3> <p> 3:00: Assignment Review <br> 3:30: <a href='../../lab/output/servo/index.html' target="_self">Servo motors</a> <br> 3:40: Workshop on <a href='https://learn.adafruit.com/multi-tasking-the-arduino-part-1/overview'>multi-tasking with Arduino language</a> </p> ### Labs: See Kassia's <a href='../../lab/arduino/Arduino Programming Fundamentals.pdf' target="_self">slides</a> on programming fundamentals. <a href='../../lab/arduino/PS70_ArduinoBasicsWiringDiagrams.pdf' target="_self">Circuit Diagrams</a> for lab. Make sure you're comfortable with: - <a href='../../lab/arduino/foundations.html' target="_self">programming fundamentals</a>, - <a href='../../lab/arduino/arduino.html'>conditional statements and loops</a>, - <a href='https://learn.adafruit.com/multi-tasking-the-arduino-part-1/overview'>multi-tasking with Arduino language</a> Use the <a href='../../lab/electronics/electronics.html' target="_self"> Electronics basics</a> page and its links. - Use the multimeter in voltage, resistance, and continuity modes. - Build a voltage divider circuit. Build a potentiometer circuit. - Build and measure circuits with resistors in parallel and series. - Practice drawing schematics. Use a hand sketch, [Falstad](https://www.falstad.com/circuit/), [circuit-diagram.org](https://www.circuit-diagram.org/), Fusion 360 (Eagle), or other. ### Assignment: Program an Arduino board to do something. The examples in the <a href="https://www.eitkw.com/wp-content/uploads/2020/03/Arduino_Projects_Book.pdf">Arduino Projects Book</a> provide good starting points. You may also wish to use this assignment to build a new iteration of the previous assignment. - Record a video of your project using the photo booth. - Include <a href='../../lab/website/codetags.html' target="_self">code snippets in your documentation</a>. - Draw a schematic of your circuit. Use a hand sketch, [Flastad](https://www.falstad.com/circuit/), Fusion 360 (Eagle), or other. - Bring your project to class Thursday and be ready to do a brief live demo. ### Examples: - [Mohammed's Butterfly](https://mohammed-mutaher.github.io/PHYSCI-70/04/index4.html) - [Michael's Mechanism](https://mezhang2000.github.io/PHYSCI70/04/week_4.html) - [Isa's Carousel](https://isaberliner.github.io/PS70-2022/04/index4.html) - [PK's LEDs + Potentiometer](https://bililun.github.io/PHYSCI-70/04_micro/index.html) - [Kalos' Winch](https://ingenuitive.github.io/PHYSCI-70/week4.html) <h3> Resources: </h3> <p> <a href='https://www.arduino.cc/en/Tutorial/Foundations'>Arduino Foundations</a> <br> <a href='https://www.arduino.cc/reference/en/'>Language Reference:</a> Discover the what each term of the Arduino code language means. <br> <a href='https://www.arduino.cc/en/Tutorial/Variables'>Variables:</a> Understand how to define and use variables in a Sketch. <br> <a href='https://www.arduino.cc/en/Reference/FunctionDeclaration'>Functions:</a> Learn how to define and use functions in a Sketch. <br> </p>