A comprehensive workshop power point presentation on Arduino basics focusing RC car. It's basically an one day workshop presentation used for the new students in Independent University Bangladesh to encourage them to participate in various hardware based projects, competition etc.
2. Why Arduino?
• It is inexpensive and comes with free authoring software
• Cross-platform - The Arduino software (Arduino IDE) runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to Windows.
• It is an open-source project, software/hardware is extremely accessible and very flexible to be
customized and extended
• It is flexible, offers a variety of digital and analog inputs, SPI and serial interface and digital
and PWM outputs
• Simple, clear programming environment - The Arduino programming environment is easy-to-use for
beginners, yet flexible enough for advanced users to take advantage of as well. The programming
language used is based on C++
4. Things needed:
• An Arduino board
• Appropriate cable to connect the arduino with the computer
• Arduino IDE software
• Arduino Uno R3
• Arduino Nano v3
• Arduino Mega 2560
• Arduino Pro Mini
• Arduino Leonardo
• Arduino Due
• Arduino Lilypad
Available boards in local market:
6. Microcontroller ATmega328P
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
PWM Digital I/O Pins 6
Analog Input Pins 6
DC Current per I/O Pin 20 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328P) of which 0.5 KB used by bootloader
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
Clock Speed 16 MHz
8. Microcontroller ATmega2560
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limit) 6-20V
Digital I/O Pins 54 (of which 15 provide PWM output)
Analog Input Pins 16
DC Current per I/O Pin 20 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 256 KB of which 8 KB used by bootloader
SRAM 8 KB
EEPROM 4 KB
Clock Speed 16 MHz
10. Microcontroller ATmega328
Architecture AVR
Operating Voltage 5 V
Flash Memory 32 KB of which 2 KB used by bootloader
SRAM 2 KB
Clock Speed 16 MHz
Analog IN Pins 8
EEPROM 1 KB
DC Current per I/O Pins 40 mA (I/O Pins)
Input Voltage 7-12 V
Digital I/O Pins 22 (6 of which are PWM)
PWM Output 6
Power Consumption 19 mA
27. // the setup function runs once when you press reset
or power the board void setup() {
// initialize digital pin LED_BUILTIN
as an output. pinMode(LED_BUILTIN,
OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on
(HIGH is the voltage
level)
LOW
delay(1000);
}
// wait for
a second
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the
voltage