Course Introduction
Windows (PC, laptop)
Mac (Apple only)
Lesson #1: Getting Started - Blinking LED
Lesson #2: Button with LED
Lesson #3: Potentiometer with LEDs
Lesson #4: Potentiometer with Servo
Lesson #5: 16x2 LCD display
Lesson #6: Password lock - 16x2 LCD Display with keypad
Lesson #7: DHT11 Temperature Sensor
Lesson #8: Binary Counting
Lesson #9: Scrolling LED
Lesson #10: Parking with 7-segment display
Lesson #11: Christmas Tree with LEDs
Lesson #12: RGB-LED with Potentiometers
Lesson #13: StepperMotor Control
Lesson #14: Steppermotor SpeedControl
Lesson #15: Motor Wheels
Lesson #16: Motion detection with 16x2 LCD Display
Lesson #17: Tone keyboard
Lesson #18: LED Dice
Lesson #19: Traffic light
Lesson #20: Keypad with 4 LEDs

Simulation – Potentiometer

In this project we will simulate a potentiometer with 10 LEDs. The potentiometer will control the LEDs as a bargraph. The potentiometer value (0-1023) is assigned to 10 values, 1 value for each LED. The codes in the sketches remaining the same as the normal sketches but there are just a few things that will be added to the setup in order to communicate though the serial port.

The library that we installed with the simulator is available in the Arduino IDE. By adding the ‘#include <SimulatorProgram.h>’ code we will include the library for the simulator to it. The library will communicate with the Arduino Simulator thought the serial USB port.

Select IO

Select the used inputs and outputs on the simulator. In this case we use 10 LED from pin 2 to 11 and a potentiometer on analog pin A0. Connect the Arduino with the COM port in the simulator and watch the simulation.

Arduino code