
Wire your first Arduino circuit on a breadboard, connecting the LCD, push button, resistor, and jumper wires to the Arduino and power rails, using pins four and nine.
Write and upload a basic Arduino program using setup and loop, configure pin 10 as an output, and set it high to light the led.
Explore the code's two parts, setup and loop, and learn how to configure Arduino using the pin mode command to set a pin as input or output.
See how the Arduino loop runs forever while setup executes once, enabling continuous actions such as lighting the LCD using digital pin 10 and the high command.
Explore variables in your Arduino program by learning how to store numbers and words in labeled memory boxes, retrieve them, and perform calculations.
Discover how motors work: coil and magnets make them spin when current flows. Control direction by swapping high and low signals and use a motor driver such as the l298n.
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.