Hello World

by NBros in Living > Cleaning

524 Views, 2 Favorites, 0 Comments

Hello World

hello-world.jpg

Linkit ONE Basics

Materials

DSCF0434.JPG
DSCF0435.JPG
DSCF0436.JPG
DSCF0441.JPG
DSCF0437.JPG
DSCF0378.JPG

Linkit ONE

Breadboard

USB cable

resistor

transistor

LED

Connecting the Bread Board

DSCF0438.JPG
DSCF0439.JPG

Place the Led transistor and resistor on the board just like i showed in the picture.

Add the two wires and your done with breadboard only connections.

Linkit ONE Connecting

DSCF0433.JPG

Take 3 wires of any color and follow the picture on where to put them. Next you will connect those wires to the bread board

Connecting Finished

DSCF0440.JPG

After all the connections are made it should look like this. Hook up the USB to the computer and your ready to code

Coding

This is the code you will need to use for this project. However you will nee to format it differently for the program to work correctly

Correct Formating

const int pinLED = 3; // LED connect to D13
void setup() { pinMode(pinLED, OUTPUT); // set direction of D13-OUTPUT } void loop() { digitalWrite(pinLED, HIGH); // LED on delay(3000); digitalWrite(pinLED, LOW); // LED off delay(100); }

Finish

That's all Folks!