Analog Interface (Linkit ONE)

by Tonyench in Circuits > Arduino

507 Views, 2 Favorites, 0 Comments

Analog Interface (Linkit ONE)

DSCF0529.JPG

Linkit ONE

Supplies

DSCF0531.JPG
DSCF0535.JPG
DSCF0534.JPG
DSCF0532.JPG

potentiometer

transistor

resistor

led of any color

linkit one

wires

Connections

DSCF0529.JPG

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

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