Introduction: Analog Interface (Linkit ONE)

Picture of Analog Interface (Linkit ONE)

Linkit ONE

Step 1: Supplies

Picture of Supplies

potentiometer

transistor

resistor

led of any color

linkit one

wires

Step 2: Connections

Picture of Connections

Follow the picture to connect the board. If you have questions about any connections leave a comment

Step 3: Code

This code needs to be run through the arduino program software.

This is the program

const int led = 3;
const int pot = A0; void setup() { // nothing to initialize } void loop() { int val = analogRead(pot); // get value from potentiometer val = map(val, 0, 1023, 0, 255); // make the value to 0~255 analogWrite(led, val); // set the pwm of led delay(10); }

Here is a link to download the software Link

plug in the linkit one and upload the code. After that you are finished. Congratulations

Comments

About This Instructable

154views

2favorites

License:

More by Tonyench :Analog Interface (Linkit ONE)Amazing Linkit ONE MP3Hello World
Add instructable to: