Arduino is a general purpose hardware platform that is used by most tech enthusiasts, particularly, IoT beginners to start off their IoT Journey.
Some Basic Info
Arduino, is called a platform as it has everything that is required to set-up a working IoT system. You can call it a mini computer as it can connect to multiple devices like sensors for creating innovative systems.
This is how it looks in its simplified form!
Broadly, the board have five important blocks
|1||Power Socket||Of Course! To power the system|
|2||USB socket||For firing the code in the board|
|3||Analog Pin Socket||For connecting peripheral devices like sensors.|
|4||Digital Pin Socket||For connecting digital peripheral devices|
|5||Reset Pin||Physical Pin for resetting the board|
For more details, you can download Arduino UNO datasheet
Before we get on to set-up a simple project, I should also tell you about how and where you can write programs. Arduino has a dedicated Integrated Development Environment (IDE) software. This is FREE to use!
You can download the software from here (based on your Computer/Laptop OS). This page is an official page that provides a lot of other useful information as well.
Here is a quick view of menu options of IDE
It’s time to jump into creating a project using the Arduino project. Let’s blink an LED now. I am assuming that you know at least the basics of electronics and computer programming.
Step 1 – What all you need for the project?
- Arduino UNO Board
- Power Adaptor – 12V
- USB cable
- Laptop / Computer with IDE installed
- Resistor (Axial Type) – 220 Ohms
- Jumper wires (for connecting Arduino board to Breadboard)
Step 2 – Connecting the Hardware
Step 3 – Writing the code
Follow these steps:
- Connect the USB cable to your computer
- Open the IDE
- Paste the following code
- Save the File as Blink (The lingo is blink sketch)
Note: Please select the board as “Arduino UNO” from Tools Menu
Step 4 – Verify and Upload the software to Arduino board
- Click on verify button on IDE – See the menu options in image above
- This will compile the sketch and look for errors. Once it says “Done Compiling” you are ready to upload it to Board
- Click on the Upload button on IDE to fire the software on the hardware.
While Arduino boards have many flavours like Due, Mega(R3), Leonardo etc. but the most widely used version is UNO.
After you do a few projects on Arduino, You can move to a more powerful hardware called Raspberry Pi . R-Pi is capable of implementing more complex use cases due to integration of powerful chipsets and accessories like inbuilt Wi-Fi and Bluetooth.
However, this does not mean Arduino is not a right board. It depends on your use case.. For simpler use cases, Arduino is the best choice while for complex cases, Raspberry Pi is recommended.
Arduino kit is easily available on e-commerce sites. Here is the link to one of them.
Finally, do, let me know in comments if you want me to write on any new topic. My old & new blogs are available here – My Little Blog!