loading
Picture of Getting Started with ArduBlock
This is an introduction to the ArduBlock graphical programming language. It is a great way to learn the basics of programming and also to quickly write a test program if you are a more experienced user.

Supplies:
- Arduino board
- 10KΩ Resistor
- Momentary on button
- Computer with Arduino IDE and ArduBlock installed

I will demonstrate with two programs.

Step 1: Build the First Circuit

Picture of Build the First Circuit
The first circuit is simple...
 

Do you have the ardublock code for the potentiometer?

DCengineer (author)  killercatfish1 year ago

The potentiometer code is the last picture shown in step 3 I believe. I'm also pretty sure that the Arduino IDE has example code that does this.

Here's all you need to do:

* Get input from potentiometer in an analog pin (will give a value between 0 and 1023)

* Use the map function to send the LED a PWM signal - map(0,1023,0,255)

* Output that value to the LED pin