Está en la página 1de 4
man A1 Setup ‘You can share this kit with another person. Decide who will be the Hardware Engineer and who will be the Software Engineer. The Hardware Engineer will assemble the components while the Software Engineer will write the code. You will swap roles halfway through. A breadboard allows you to connect The holes of the breadboard are components together to form a circuit. connected in this pattern. Based on how the holes of the breadboard are connected, can you understand why the 3 circuits below are the same? If you can’t, ask your mentor to explain. 10 oe Start Arduino Connect the USB cable. (also called IDE). ‘ate ' _— "ares a Check which Arduino board you're using Se oennes and select accordingly. | ices Soe) Senor conan ‘Serial Plotter CtieShiftet, The name is FAD Fae Updater indicated on the eee | board, which in Bourd:"Arvin/ Genie Uno™ Pere*COMeT 1 seatpons Getscrs ito ¥ coms this case is Uno. Progammes“AVRSP mi! , Bum Sectoxder Select the USB port. If there are more than one, reconnect the USB cable to find out which COM port is the USB port. Type in the following sample program (also known as a sketch). Follow the syntax carefully. File Edit, Sketch Tools Help sketeh_may04asi void setup() Curly bracket } inMode (13, OUTPUT); 1 7 ‘Normal bracket ) void Loop() ( Click to transfer your program to the digitalWrite (13, HIGH)? Arduino board. delay (500) + digitalWrite (13, Low): delay (500) + The onboard LED on the Arduino should start blinking when you see this status. Congratulations. You have programmed the LED to blink. A2 Strobe Light You will program an LED to blink. @ Assemble the following circuit. Brown-Green-Brown or 15082 resistor. Careful not to mix it up with the IMQQ resistor, wht similar colours but « different combination The shorter leg LED is the negat: terminal Key in this program. @| sketch_may0da|.. — © : Transfer your program to the Arduino ee Se look Ete board. The LED should start blinking. sketch_may0da § void setup() a ‘ pinMode (8, OUTPUT); ' 8 represents the pin number on void loop() the Arduino board. i digitalwrite (8, HIGH); delay (1000); digitalWrite (8, Low); delay (500); ) fg Change 500 to 100 (duration in ms). > What happens? Change the program to make the light strobe, i.e, ON for a short time and OFF for a longer time.

También podría gustarte