public static void main(String args)
Scanner ob=new Scanner(System.in);
Hello guys. A warm welcome to ARDUINO blog of FUTURE TECHNOLOGY!
At this blog, we will deal with ARDUINO and some sensors.
WHAT IS ARDUINO?
Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs – light on a sensor, a finger on a button, or a Twitter message – and turn it into an output – activating a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. To do so you use the Arduino programming language (based on Wiring), and the Arduino Software (IDE), based on Processing.
Over the years Arduino has been the brain of thousands of projects, from everyday objects to complex scientific instruments. A worldwide community of makers – students, hobbyists, artists, programmers, and professionals – has gathered around this open-source platform, their contributions have added up to an incredible amount of accessible knowledge that can be of great help to novices and experts alike.
Arduino was born at the Ivrea Interaction Design Institute as an easy tool for fast prototyping, aimed at students without a background in electronics and programming. As soon as it reached a wider community, the Arduino board started changing to adapt to new needs and challenges, differentiating its offer from simple 8-bit boards to products for IoT applications, wearable, 3D printing, and embedded environments. All Arduino boards are completely open-source, empowering users to build them independently and eventually adapt them to their particular needs. The software, too, is open-source, and it is growing through the contributions of users worldwide.
Thanks to its simple and accessible user experience, Arduino has been used in thousands of different projects and applications. The Arduino software is easy-to-use for beginners, yet flexible enough for advanced users. It runs on Mac, Windows, and Linux. Teachers and students use it to build low cost scientific instruments, to prove chemistry and physics principles, or to get started with programming and robotics. Designers and architects build interactive prototypes, musicians and artists use it for installations and to experiment with new musical instruments. Makers, of course, use it to build many of the projects exhibited at the Maker Faire, for example. Arduino is a key tool to learn new things. Anyone – children, hobbyists, artists, programmers – can start tinkering just following the step by step instructions of a kit, or sharing ideas online with other members of the Arduino community.
There are many other microcontrollers and microcontroller platforms available for physical computing. Parallax Basic Stamp, Netmedia’s BX-24, Phidgets, MIT’s Handyboard, and many others offer similar functionality. All of these tools take the messy details of microcontroller programming and wrap it up in an easy-to-use package. Arduino also simplifies the process of working with microcontrollers, but it offers some advantage for teachers, students, and interested amateurs over other systems:
- Inexpensive – Arduino boards are relatively inexpensive compared to other microcontroller platforms. The least expensive version of the Arduino module can be assembled by hand, and even the pre-assembled Arduino modules cost less than $50
- Cross-platform – The Arduino Software (IDE) runs on Windows, Macintosh OSX, and Linux operating systems. Most microcontroller systems are limited to Windows.
- Simple, clear programming environment – The Arduino Software (IDE) is easy-to-use for beginners, yet flexible enough for advanced users to take advantage of as well. For teachers, it’s conveniently based on the Processing programming environment, so students learning to program in that environment will be familiar with how the Arduino IDE works.
- Open source and extensible software – The Arduino software is published as open source tools, available for extension by experienced programmers. The language can be expanded through C++ libraries, and people wanting to understand the technical details can make the leap from Arduino to the AVR C programming language on which it’s based. Similarly, you can add AVR-C code directly into your Arduino programs if you want to.
- Open source and extensible hardware – The plans of the Arduino boards are published under a Creative Commons license, so experienced circuit designers can make their own version of the module, extending it and improving it. Even relatively inexperienced users can build the breadboard version of the module in order to understand how it works and save money.
DIFFERENT TYPES OF ARDUINO-:
Arduino Uno (R3)
The Uno is a huge option for your initial Arduino. It consists of 14-digital I/O pins, where 6-pins can be used as PWM(pulse width modulation outputs), 6-analog inputs, a reset button, a power jack, a USB connection and more. It includes everything required to hold up the microcontroller; simply attach it to a PC with the help of a USB cable and give the supply to get started with an AC-to-DC adapter or battery.
You can also buy this online at amazon.in….Click the link below.
LilyPad Arduino Board
The Lily Pad Arduino board is a wearable e-textile technology expanded by Leah “ Buechley”and considerately designed by “Leah and SparkFun”. Each board was imaginatively designed with huge connecting pads & a smooth back to let them to be sewn into clothing using conductive thread. This Arduino also comprises of I/O, power, and also sensor boards which are built especially for e-textiles. These are even washable!
You can also buy this online at amazon.in….Click the link below.
RedBoard Arduino Board
The RedBoard Arduino board can be programmed using a Mini-B USB cable using the Arduino IDE. It will work on Windows 8 without having to modify your security settings.It is more constant due to the USB or FTDI chip we used and also it is entirely flat on the back. Creating it is very simple to utilize in the project design. Just plug the board, select the menu option to choose an Arduino UNO and you are ready to upload the program. You can control the RedBoard over USB cable using the barrel jack.
You can also buy this online….Click the link below.
Arduino Mega (R3) Board
The Arduino Mega is similar to the UNO’s big brother. It includes lots of digital I/O pins (from that, 14-pins can be used as PWM o/ps), 6-analog inputs, a reset button, a power jack, a USB connection and a reset button. It includes everything required to hold up the microcontroller; simply attach it to a PC with the help of a USB cable and give the supply to get started with a AC-to-DC adapter or battery.The huge number of pins make this Arduino board very helpful for designing the projects that need a bunch of digital i/ps or o/ps like lots buttons.
You can also buy this online at amazon.in… Click the link below.
Arduino Leonardo Board
The first development board of an Arduino is the Leonardo board. This board uses one microcontroller along with the USB. That means, it can be very simple and cheap also. Because this board handles USB directly, program libraries are obtainable which let the Arduino board to follow a keyboard of the computer, mouse, etc.
You can also buy this online at amazon.in…Click the link below.
The Arduino Shields
Additionally, Arduino shields are pre built circuit boards used to connect to a number of Arduino boards. These shields fit on the top of the Arduino compatible boards to provide an additional capabilities like connecting to the internet, motor controlling, providing wireless communication, LCD screen controlling, etc..The different types of an Arduino shields are
Now lets move on to code different sensors with the help of ARDUINO*
*(WE WILL ONLY USE ARDUINO UNO IN THIS TUTORIAL)
HOW TO CONNECT IT TO ARDUINO ?
What we have to basically do is to connect the HIGH SENSITIVITY SOUND SENSOR with the ARDUINO and then connect the ARDUINO to your device.
STEPS TO CONNECT THE ARDUINO WITH SENSOR-:
1- Connect the GND wire with the GND terminal of ARDUINO.
2- Connect the +ve terminal of sensor to the 5 volt terminal of ARDUINO.
3- Connect the DO terminal of the sensor to the A2 terminal of ARDUINO.
4- Connect an LED to the 13th and GND terminal of ARDUINO.
5- Connect the USB port of ARDUINO to your device and start coding on it.
HOW TO CODE ?
First download the ARDUINO SOFTWARE to code in sensor through ARDUINO.
Then write the following code-:
const int ledpin=13; //ledpin and soundpin are not changed throughout the process
const int soundpin=A2;
const int threshold=200; //sets threshold value for sound sensor
int soundsens=analogRead(soundpin); //reads alnalog data from sound sensor
digitalWrite(ledpin,HIGH); //turn led on
WATCH OUR VIDEO ON YOUTUBE TO TAKE A QUICK TRIAL WITH THE WHOLE SETUP!!!
AND YES, YOU CAN BUY THIS SENSOR ONLINE AT AMAZON 🙂
Here is the link-: