The need for programming in electronics arises when we start dealing with microprocessors and microcontrollers. Any device which you want to automate and do amazing stuff at your bidding needs a microprocessor and hence, programming.
'C' is the most trusted language when it comes to embedded programming and frankly the way to go if you want to get involved in embedded technology. But, it does require time and effort to really understand the clockwork behind it. This becomes a problem if you want to make something cool urgently and immediately.
After the introduction of microcomputers such as Arduino, Raspberry pi and Mango pi among others thousands of people with wonderful ideas have flocked to the embedded world. But, many of them including me hit a bump when it comes to coding. Some of them are artists,hobbyists, and beginners who may or may not want to get into the crux of programming. While several alternatives to C,C++,Java etc exist, here I will talk specifically about the Arduino IDE and the Processing Language.
The Arduino board has a custom built compiler known as the Arduino IDE (Integrated Development Environment) which is based on the Processing Language made by Casey Reas and Ben Fry. The Processing Language was originally made for helping artists make computer based art with minimum involvement of programming logic.
Later it was modified to suit the needs of the Arduino. This language gets rid of several cryptic and abstract concepts which are inevitable when it comes to orthodox programming.
For example in C programming to display a simple statement like "I don't wanna learn programming" you have to write something like this,
# include<stdio.h>
main(void)
{
printf("I don't wanna learn programming");
}
Note: To run this program on windows you need to use #include<conio.h> and a getch(); command along with the above program or you might never see the output.
While in the Processing language to make a circle you have,
ellipse(50,50,80,80);
which makes a circle with centre at 50,50 and length and breadth 80,80.
Although it is not as simple as I am making it out to be the advantages really come out when you start working with the Arduino and compare it with orthodox techniques associated with microprocessors.
Cheers,
Abhijeet
'C' is the most trusted language when it comes to embedded programming and frankly the way to go if you want to get involved in embedded technology. But, it does require time and effort to really understand the clockwork behind it. This becomes a problem if you want to make something cool urgently and immediately.
After the introduction of microcomputers such as Arduino, Raspberry pi and Mango pi among others thousands of people with wonderful ideas have flocked to the embedded world. But, many of them including me hit a bump when it comes to coding. Some of them are artists,hobbyists, and beginners who may or may not want to get into the crux of programming. While several alternatives to C,C++,Java etc exist, here I will talk specifically about the Arduino IDE and the Processing Language.
The Arduino board has a custom built compiler known as the Arduino IDE (Integrated Development Environment) which is based on the Processing Language made by Casey Reas and Ben Fry. The Processing Language was originally made for helping artists make computer based art with minimum involvement of programming logic.
Later it was modified to suit the needs of the Arduino. This language gets rid of several cryptic and abstract concepts which are inevitable when it comes to orthodox programming.
For example in C programming to display a simple statement like "I don't wanna learn programming" you have to write something like this,
# include<stdio.h>
main(void)
{
printf("I don't wanna learn programming");
}
Note: To run this program on windows you need to use #include<conio.h> and a getch(); command along with the above program or you might never see the output.
While in the Processing language to make a circle you have,
ellipse(50,50,80,80);
which makes a circle with centre at 50,50 and length and breadth 80,80.
Although it is not as simple as I am making it out to be the advantages really come out when you start working with the Arduino and compare it with orthodox techniques associated with microprocessors.
Cheers,
Abhijeet
No comments:
Post a Comment