Skip to main content

Posts

Showing posts with the label STEM

Interfacing Digital Infrared Sensors

In this tutorial, we will learn how to interface digital sensors with Arduino . A sensor is a device which detects or measures a physical property and records, indicates or otherwise responds to it. Digital sensors give us output in the form of HIGH or LOW signal. When it detects a phenomenon it gives a HIGH output else a LOW output signal. Few examples of digital sensors are- IR Sensors, Digital Sound Sensors, Digital Temperature Sensors etc. We will interface an Infrared Sensor module.                                                  Working on an IR sensor. It basically works as an obstacle detector. Let us learn how to interface an IR (infrared) sensor. Components required: IR sensor module          1No. Arduino UNO               1No Connecting wires. Breadboard. Follow the below video for circuit connection reference. After making the circuit connections dump the code given below. int irpin = 2; int ledPin = 13; in

LED Pattern with Arduino

Alright since now we know how to interface a LED let’s have some fun generating patterns with multiple LED. Components Required Resistor                    4 No. 330Ohms(Standard Red LED and 5V input supply) LEDs                        4 No. Arduino UNO          1No. Connecting wires Breadboard In this blog, we have generated a shifting glowing pattern of LEDs. For circuit, connections see below After building the circuit dump the code given below. int led1 = 1; int led2 = 2; int led3 = 3; int led4 = 4; void setup()  { pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); pinMode(led3, OUTPUT); pinMode(led4, OUTPUT); } void loop() { digitalWrite(led1, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(led1, LOW); // turn the LED off by making the voltage LOW delay(500); digitalWrite(led2, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); digitalWrite(led2, LOW); // turn the LED off by making the voltage LOW delay(500); d

Getting Started with Arduino

What is Arduino? Arduino is basically an open source electronics platform which is having easy to use hardware and software implementation. It’s a micro-controller interfaced with other vital components like programmer ICs, voltage regulator etc. With the help of this, we can interface various input (sensors) and output (LED's) components. Why Arduino? Arduino is not just a micro-controller it is also interfaced with several other components which make the job of the user very simple. Arduino Uno Pin-Out How Arduino works? An input of 5v is given to the board using a USB cable (not necessary) through a laptop or any other convenient power source. Microcontrollers are usually programmed through a programmer unless we have a firmware in our microcontroller that allows installing new firmware without any external programmer. This is bootloader. All the controllers present in UNO are from ATMEL Semiconductor (Now acquired by Microchip). We hav