Professional Documents
Culture Documents
ENTREPRENEURSHIP
DEVELOPMENT
ON
CONTROLLER USE IN IOT
IIOT - 1
BASIC ARDUINO PROGRAMS
TECHNOLOGYPROVIDER
TECHNOLOGY PARTNER HOSTING PARTNER
CSED ARDUINO BOARD
2
2
CSED GETTING STARTED – H/W & S/W
2. Fritzing /Tinkercad
3. Drivers
4. Materials
1. Arduino Board
2. Analog I/O, Digital I/O, Serial, & Fritzing/Tinkercad
3. Arduino Data sheet
3
3
CSED ARDUINO BOARD DESCRIPTION
USB
PWR IN (to Computer)
RESET
SCL\
SDA
POWE (I2C Bus)
R
5V / 3.3V / Digital I\O
GND PWM(3, 5, 6, 9, 10,
Analog 11)
INPUT
S 4
4
CSED GO AHEAD AND PLUG YOUR BOARD IN!
5
5
CSED ARDUINO SHIELDS
6
6
CSED INPUT/ OUTPUT
RGB LED Dig & Analog Output 16,777,216 different Ooh... So pretty.
colors
8
8
CSED BASIC COMPONENTS
9
9
CSED BASIC COMPONENTS
10
10
CSED BASIC COMPONENTS
11
11
CSED BASIC COMPONENTS
12
12
CSED CONCEPTS: INPUT VS. OUTPUT
Almost all systems that use physical computing will have some form
of output
13
13
CSED CONCEPTS: INPUT VS. OUTPUT
14
14
CSED CONCEPTS: ANALOG VS. DIGITAL
5V 5V
0V 0V
15
CSED OPEN UP ARDUINO
•For PC Users
1.Let the installer copy and move For Mac Users
the files to the appropriate
locations, or 1. Move the Arduino
executable to the dock for
2.Create a folder under C:\ ease of access.
Program Files (x86) called
Arduino. Move the entire Arduino 2. Resist the temptation to
program folder here. run these from your
desktop.
16
CSED ARDUINO INTEGRATED DEVELOPMENT ENVIRONMENT (IDE)
void setup()
{
// runs once
}
void loop()
{
// repeats
Error & status messages }
17
CSED SETTINGS: TOOLS SERIAL PORT
1. Your computer
communicates to the
Arduino microcontroller via
a serial port through a
USB-Serial adapter.
digitalWrite()
analogWrite()
digitalRead()
analogRead()
Serial communication
Error & status messages
20
CSED LET’S GET TO CODING – BLINK LED PROGRAM
21
CSED COMMENTS, COMMENTS, COMMENTS
1. Comments are for you – the programmer and your friends…or anyone else
human that might read your code.
23
23
CSED THREE COMMANDS TO KNOW…
pinMode(pin, INPUT/OUTPUT);
digitalWrite(pin, HIGH/LOW);
delay(time_ms);
24
24
CSED
THANK YOU
25