Parallax student DE bundle with Arduino Arduino Uno Microcontroller Board PIR Sensor (Passive Infra-Red) 2-Axis Joystick Arduino IDE Software Breadboard #22 Gauge solid wire Resistors (220Ω) (10 kΩ) LED Pushbutton or VEX bumper switch VEX potentiometer Procedures Sketch 1: “Blink” Open the Arduino software and create the sketch. “Blink” Title the project and add a description. Save. Define constant integer, named ledPin, assigned to pin 13. void setup() Add a function so that variable is an OUTPUT. pinMode ledPin void loop() 1000 Add a digitalWrite function to make ledPin HIGH for delay ms. 1000 Add a digitalWrite function to make ledPin LOW for delay ms. Save the code as Have your instructor verify the circuit works as expected. The “Blink”. LED on the Arduino (pin 13) should be blinking. Sketch 2: “AltBlink” Create the circuit using: “AltBlink” an Arduino Microcontroller Board an LED 220Ω resistor Modify the code to create a “Blink” new sketch called Circuit “AltBlink” “AltBlink” Circuit “AltBlink” With LED A defined as the resistor on the Arduino, and LED B defined as the LED on the breadboard: Make the two LEDs blink in alternating pattern. LED A (on Arduino) is when LED B (on breadboard) is “off” “on”. LED A (on Arduino) is when LED B (on breadboard) is “on” “off”. Sketch 3: “Pushbutton”
Parallax student DE bundle with Arduino Arduino Uno Microcontroller Board PIR Sensor (Passive Infra-Red) 2-Axis Joystick Arduino IDE Software Breadboard #22 Gauge solid wire Resistors (220Ω) (10 kΩ) LED Pushbutton or VEX bumper switch VEX potentiometer Procedures Sketch 1: “Blink” Open the Arduino software and create the “Blink” sketch. Title the project and add a description. Save. Define constant integer, named ledPin, assigned to pin 13. void setup() Add a pinMode function so that variable ledPin is an OUTPUT. void loop() Add a digitalWrite function to make ledPin HIGH for delay 1000 ms. Add a digitalWrite function to make ledPin LOW for delay 1000 ms. Save the code as “Blink”. Have your instructor verify the circuit works as expected. The LED on the Arduino (pin 13) should be blinking. Sketch 2: “AltBlink” Create the circuit “AltBlink” using: an Arduino Microcontroller Board an LED 220Ω resistor Modify the “Blink” code to create a new sketch called “AltBlink” Circuit “AltBlink” “AltBlink” Circuit With LED A defined as the resistor on the Arduino, and LED B defined as the LED on the breadboard: Make the two LEDs blink in alternating pattern. LED A (on Arduino) is “off” when LED B (on breadboard) is “on”. LED A (on Arduino) is “on” when LED B (on breadboard) is “off”. Sketch 3: “Pushbutton”
4.2.2.A%20IntroductionToMicrocontrollers.docx