U can do it
I am of 16 and I am also a starter in programming microcontroller. I’ve started with arduino. I think you can also get started with it if you are really determined.
For the tutorial part, i would just tell a few things now. Let’s look at this sketch(arduino program):
//Blinking Led (1 second ON, 1 second OFF)
#define led 13 //led connected to digital pin 13
void setup()
{
pinMode (led,OUTPUT); //led(digital pin 13) is set as output
}
void loop()
{
digitalWrite(led,HIGH); //led turns on
delay(1000); //waits for 1 second
digitalWrite(led,LOW); //turns the led off
delay(1000); //waits for 1 second
}
NOW, WHAT THAT MEANS :
the first line starting with’//’ is a comment. In a comment you can type anything. Its basic purpose is future reference. Comments can also be started with /* and ended with */ if they are of more than 1 line.
’#define’ is a sort of find and replace. ‘#define led 13’ means replace led with 13. The code understands 13 as ‘Digital Pin No:13’. NOTE: U could directly use “13” in place of led in the commands if don’t use #define led 13. #define is the only command which does not end with semi-colon( ;).
void setup() includes a set of commands which are executed only once at the beginning.
pinMode(led, OUTPUT); means that the led is an output unit.
void loop() includes a set of commands which run again and again.
digitalWrite(led, HIGH); means that the led is to be turned ON.
delay(1000); means that the arduino should not do anything for the next 1000 milliseconds(1 second).
digitalWrite(led, LOW); means that the led is to be turned OFF.
The brackets { } are used to enclose a set of commands. At present, I am also havig certain doubts regarding their use.
NOTE: The commands are case sensitive. Eg. digitalwrite won’t work in place of digitalWrite
To construct the circuit for this programme, You actually don’t have to connect anything to the arduino as most arduino boards already have an led connected to the pin no: 13.
IF U HAVE BEEN BENEFITED BY THIS THEN PLEASE REPLY FOR I MIGHT HELP U AGAIN IN THAT CASE.