_
Workshop includes interactive development kit that will be assembled and coded during the workshop classes, a computer could also be provided for the duration of the classes if a student does not have access to a laptop computer.
connect the Arduino to the computer with the USB cable
Copy the code below and paste it in the Arduino IDE
Select the board as "NANO" and upload the code
#include
/*
Controlling a servo position using a potentiometer (variable resistor)
by Michal Rinott
modified on 8 Nov 2013
by Scott Fitzgerald
http://www.arduino.cc/en/Tutorial/Knob
*/
#include
Servo myservo; // create servo object to control a servo
int potpin = 0; // analog pin used to connect the potentiometer
int val; // variable to read the value from the analog pin
void setup() {
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023)
val = map(val, 0, 1023, 0, 180); // scale it to use it with the servo (value between 0 and 180)
myservo.write(val); // sets the servo position according to the scaled value
delay(15); // waits for the servo to get there
}
WORKSHOP DETAILS: The above images represent workshop kit that is included in the classes, click on each image for wiring information and code snippet
Single Price: R1200 (consists of 2 workshop classes and 1 DEV kit)
Pair price: R1500 (consists of 2 classes for 2 students and 1 DEV kit to share)
Explore new possiblities and learn using YOUR imaginantion and curiousosity. These workshops could inspire future projects and ideas that you might want to bring to life.
Join weekend workshops and learn all about building and programming electronic devices. Learn the Basics like blinking a LED up to building your own moving robots. ANYONE CAN DO IT. even the whole family.