70 likes | 102 Views
Here we going to discus how to make a program in Arduino IDE.
E N D
ARDUINOIDE http://aicra.ac.in
ARDUINO | Developing Environment NOTE: Always select the correct COM Port in which Arduino Board is selected. + = http://aicra.ac.in
ARDUINO |Essentials • void setup( ) • Description: • All the Modes of Pins are declared within this function. • void loop( ) • Description: • Declaration of variables, functions which should execute itself repetitively. http://aicra.ac.in
ARDUINO |Essentials • PinMode ( ) • Description: • Configures the specified pin to behave either as an input or an output. • Syntax: • pinMode(pin,mode) • Pin: The Pin no. • Mode: INPUT, OUTPUT or INPUT_PULLUP http://www.thinkerguru.com
ARDUINO | Digital Function( ) • digitalRead( ) • Description: • Function to read digital values from Digital Pins. • Syntax: • digitalRead (pin) • digitalWrite( ) • Description: • Function to Write digital value command to Digital • Pins. • Syntax: • digitalWrite (pin, value) http://aicra.ac.in
Analog Function ( ) • analogRead( ): • Description: • Function to read analog values from Analog • Pins. • Syntax: • analogRead (pin) • analogWrite( ) • Description: • Function to Write analog value command to Analog • Pins. • Syntax: • analogWrite (pin, value) ARDINO | http://aicra.ac.in