begginer course
pins :
rx - receive data?
tx - transmits data
~ pins : can vary or read voltage ranges of 5v
a0->5 : analog pin headers : converts analog to digital signals
power headers : 3.3v , 5v. this will output voltage
reset btn : will reset to the begining of the arduino program
or connect the reset pin header to 0v.
downlad the audrina IDE :
https://www.arduino.cc/en/software
it will install on :
C:\Users\username\AppData\Local\Programs\Arduino IDE
^ for the beta ver
or on
C:\Program Files (x86)\Arduino
for the 1.8 version
file, preferences, choose a folder to store your audrino sketches (.ino files)
and check the verify code option on.
################################################################
arduino sketch names cant have spaces in them
ctrl+r or the check btn : check sketch for errors
ctrl+u or -> btn : UL code to arduino
shift+ctrl+m : serial monitor window // allows you to see communication between
computer and arudino.
drop down menu : add tabs
#######################################
file, examples : see ready made example sketches
https://www.tinkercad.com/
circuits has arduino simulators, where you can test sketches
note pin 13 is connected to a leg, which is usefull for fast testing.
###############################################################################################
arduino code
comments :
//comment
/*multi line comment*/
a typical arduino program skelton :
hello world example :
the above codes blinks the led (on board led or led connected to pin 13 and ground)
pins :
rx - receive data?
tx - transmits data
~ pins : can vary or read voltage ranges of 5v
a0->5 : analog pin headers : converts analog to digital signals
power headers : 3.3v , 5v. this will output voltage
reset btn : will reset to the begining of the arduino program
or connect the reset pin header to 0v.
downlad the audrina IDE :
https://www.arduino.cc/en/software
it will install on :
C:\Users\username\AppData\Local\Programs\Arduino IDE
^ for the beta ver
or on
C:\Program Files (x86)\Arduino
for the 1.8 version
file, preferences, choose a folder to store your audrino sketches (.ino files)
and check the verify code option on.
################################################################
arduino sketch names cant have spaces in them
ctrl+r or the check btn : check sketch for errors
ctrl+u or -> btn : UL code to arduino
shift+ctrl+m : serial monitor window // allows you to see communication between
computer and arudino.
drop down menu : add tabs
#######################################
file, examples : see ready made example sketches
https://www.tinkercad.com/
circuits has arduino simulators, where you can test sketches
note pin 13 is connected to a leg, which is usefull for fast testing.
###############################################################################################
arduino code
comments :
//comment
/*multi line comment*/
a typical arduino program skelton :
hello world example :
Code:
/*
This program blinks pin 13 of the Arduino (the
built-in LED)
*/
// global vars here
void setup()
{
//1st function to run. here you handle global variables and stuff
pinMode(13, OUTPUT);//set pin number as an output
}
void loop()
{
// this function runs forever till the arduino is shut down
// turn the LED on (HIGH is the voltage level)
digitalWrite(13, HIGH);
delay(1000); // Wait for 1000 millisecond(s)
// turn the LED off by making the voltage LOW
digitalWrite(13, LOW); // LOW = 0v
delay(1000); // Wait for 1000 millisecond(s)
}
the above codes blinks the led (on board led or led connected to pin 13 and ground)