Содержание
- 2. Goals of Lab #3 ● Learn how the programming takes place ● Excercises about: Learn about
- 3. Intro to Arduino
- 4. Installing the IDE
- 5. Connect your Arduino
- 6. The Arduino IDE
- 7. 1: Select serial port
- 8. 2: Select Arduino model
- 9. Programming an Arduino From the File menu, choose Open and select the code you want to
- 10. Programming workflow
- 11. Programming an Arduino Click on the upload button and wait until the code has been compiled
- 12. Programming an Arduino This is the template of a basic Arduino program:
- 13. Pre-lab #3
- 14. Resistor Resistors "resist" the flow of electricity, or current. The orientation in the circuit does not
- 15. Voltage Sources The Arduino has two constant voltage sources that we will use. The first is
- 16. Lab #3
- 17. Step 1: Connect the First LED to the Arduino The first step is to connect the
- 18. Step 1: Connect the First LED to the Arduino
- 19. Schematic
- 20. CODE
- 21. Task #2 - Traffic Light Circuit The equipment I have used in this Arduino traffic light
- 22. Step 1 The circuit that we need to set up is really simple and shouldn’t take
- 23. Diagram
- 24. Code // variables int GREEN = 2; int YELLOW = 3; int RED = 4; int
- 25. Code Now for each LED, we will need to create a function. As you can see
- 27. Скачать презентацию