Analog Interface (Linkit ONE)

Linkit ONE

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Supplies

potentiometer

transistor

resistor

led of any color

linkit one

wires

Step 2: 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

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions