
You can copy this setup code to get through this bit faster
int enA=7;
int motorleft1=6;
int motorleft2=5;
int motorright1=4;
int motorright2=3;
int enB=2; //these should be #define but we will discuss this after
void setup() {
pinMode(enA,OUTPUT); //set all of the pins to outputs
pinMode(motorleft1,OUTPUT);
pinMode(motorleft2,OUTPUT);
pinMode(motorright1,OUTPUT);
pinMode(motorright2,OUTPUT);
pinMode(enB,OUTPUT);
}
Get started with Arduino and making robots.
You will learn how the arduino board works, how to build basic circuits and control LEDS.
Then you will move on to programming motors and combine everything to build and program your own robot.
By the end of the course you will understand:
How to program outputs in Arduino
How to build a basic circuit
How to use a motor driver
How to put everything together to make a robot
You will also understand how and when to use functions, if statements and variables.