Skip to main content

Posts

Showing posts with the label Karkhana

Servo Motor Control using ESP8266 and Blynk App

Hey folks,  In this tutorial we will learn how to interface Servo motor with NodeMcu(ESP8266)module and operate it with the Blynk app.  Servos  are controlled by sending an electrical pulse of variable width, or pulse width modulation (PWM), through the control wire. There is a minimum pulse, a maximum pulse, and a repetition rate. A  servo motor  can usually only turn 90° in either direction for a total of 180° movement. servo Motor (Back view)  Servo Motor (front view) Blynk  is a Platform with iOS and Android  apps  to control Arduino, Raspberry Pi and the likes over the Internet. It's a digital dashboard where you can build a graphic interface for your project by simply dragging and dropping widgets. (Blynk App) Components Required: Servo motor NodeMcu(ESP8266) Connecting wires(male to male) Breadboard    Follow the image below for circuit connection reference. (Servo Motor connecting with NodeMcu) In this circuit, we have connect

IoT Based LPG Gas Monitoring

MQ-5 Module(Overview ) In this tutorial, will learn, how to interface MQ-5 Module with Node Mcu(ESP8266). The Grove - Gas Sensor(MQ5) module is useful for gas leakage detection (in home and industry). It is suitable for detecting H2, LPG, CH4, CO, Alcohol. Due to its high sensitivity and fast response time, measurements can be taken as soon as possible. The sensitivity of the sensor can be adjusted by using the potentiometer. MQ-5 Module(backside) Components Required NodeMcu(ESP8266)  MQ-5 LPG SENSOR Module  Few male to female connecting wires  Breadboard  Follow the image below for circuit connection reference:- In this circuit, we have connected the A0 pin of the MQ-5 to the A0 pin of the NodeMcu module and D0 pin remain disconnected. After making the circuit dump the code given below:- // Karkhana Report // Analyse the volume of the gas using thingspeak.com // Hardware: NodeMCU,MQ-5 #include <ESP8266WiFi.h> String apiKey = "Enter the API key

Interfacing of Push Button With ATmega16

In this tutorial, we will learn how to interface a switch(push button) with ATMEGA16 using AVR studio. In the previous video, we learnt how to interface LEDs with ATMEGA16 using AVR studio. The push-button is a component that connects two points in a circuit when you press it. The example turns on an LED when you press the button. Here we have connected two push button to PORT C in  PC0 & PC1. And for LEDs connection please refer my previous blog. Components Required:- AVR Controller(Atmega16) LEDs Push Button Connecting Wires USBASP Programmer Dump the following code after connection  and select chip ATMEGA 16. #include<avr/io.h> #include<util/delay.h> void main()  {    DDRB=0b11111111;    int S1;    int S2;      while(1)    {     S1=PINC&0b00000001;     S2=PINC&0b00000010;     if(S1==0b00000001)     {      PORTB=0b00000001;      _delay_ms(100);      }      if(S2==0b00000010)     {      PORTB=0b00000010;      _delay_ms(100);  

Basics of Embedded System Design on AVR

In this tutorial, we will learn how to interface LED with Atmega16 using AVR Studio . An embedded system is built around a processor. The design goals of an embedded system are to reduce size, cost and power consumption and to increase performance and reliability. The microprocessor we are using is ATMEGA16 . The processor has limited internal memory, and if this is not sufficient for a given application external memory devices are used. The hardware also includes any components that facilitate the user-application interaction such as display units, keypad. The light-emitting diodes are used for getting status information, such as power on, check output(high/low). You all must have observed led decoration lights, which can glow in different patterns. First, we will learn to interface a single Led and then 8 LEDs to learn a simple toggling technique. Components Required:- AVR controller(Atmega16) LEDs Connecting wires USBASP Programmer For

4x4x4 Arduino LED Cube

Since now we all have worked a lot with led,s let us show you one of the projects made by us with the help of bulk of led,s. A led matrix cube Below is the video of our project. Working description: The above is made by combining led,s in a regular fashion in cubical shape. All types of patterns can be generated in the cube and also various shapes like square, triangle etc. Whatever pattern comes to your mind you can generate that by altering the code. Curious to learn what you saw. Thinking? Join our hands-on training courses. To know more visit us at  https://karkhana.club/

Multicolor Bulb Using Arduino Project

Since now we are all familiar with RGB LED’s let us show you one of the products made by us (  Karkhana Makerspace ). The below is the video of our product (Mobile Control RGB Bulb) Working description: It is a decoration lamp which can be used to lighten your home according to your mood or occasion. The color selection of the lamp is simply controlled with the help of our app. The concept is the same as I have mentioned in my previous blogs here we are giving instructions wireless via Bluetooth to the controller which drives the lamp. For any detail or query regarding the above project, Contact us at hello@karkhana.club Thinking? Join our hands-on training courses. To know more visit us at  https://karkhana.club/

Interfacing of Multicolor LED with Arduino

In this tutorial, we will learn how to interface an RGB led with Arduino. An RGB led consist of three Led’s namely red, green and blue inside a single package. It is having three pins the longer one(2) is the GND(in the case of the common cathode) and the other three pins represent the three colours. You all must have heard about the RGB colour model, it is a model representing the colours that can be generated with the combination of three basic colours. Now let’s interface the led and have some fun with it. Components required Resistor                         1No.              200 ohms RGB led                         1No.  Arduino UNO                 1No. Few connecting wires Follow the video below for circuit connection reference. After making the circuit connections dump the code given below.   int led1 = 3; int led2 =5; int led3 =6; void setup()  { pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); pinMode(led3, OUTPUT); } void loop()  { digitalWrite

Interfacing of Potentiometer with Arduino

In this tutorial, we will learn how to control the brightness of a LED using potentiometers(Variable Resistor). A potentiometer also known as the pot is a three-terminal resistor with sliding or rotating contact that forms an adjustable voltage divider, they can be also used as a rheostat or variable resistors. Broadly there are two types of potentiometers available.          The Rotary Pot - they use a rotary motion to move the slider around a track that compromises most of a circle, with contacts at either end of the track in the area where part of the circle is missing. They are widely used in appliances with knob control.        The Sliding Pot - - they are those variable resistors that slide in a linear fashion,i.e in a straight line. These controls take up more front panel space but are much easier to use under some circumstances. for example, they are widely used for audio mixers and lighting desks.          Now we know how a pot works let us have som

Arduino Based LED Brightness Control

In this tutorial, we will learn how to control the brightness of a LED without using any sensors. Since we all know how a LED works and what all can be done with it let us start the tutorial. For those of you who are new kindly refer our previous blogs to explore LEDs.  Components required Led                                        1No. Arduino UNO                         1No. Few connecting wires. The circuit connection is very simple just connect the anode of the Led with the 11 th pin of Arduino and connect the cathode with the ground. After making the connections dump the code given below. int  i; void setup() { } void loop() { for (i = 0; i < 256; i++) { analogWrite(11, i); delay(10); } for (i = 256; i >0 ; i--) { analogWrite(11, i); delay(10); } } You will observe the output as: Thinking? Join our hands-on training courses. To know more visit us at  https://karkhana.club/

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

Getting Started with Switches

Since now we are well acquainted with LED’s let us learn how to control the switching using a push button. In this tutorial, we will learn how to use a push button. A push button is used to get control of the circuit. Components Required Resistors                           2Nos. 330ohms,10k(recommended) Pushbutton                        1No. LED                                  1No. Standard red LED Arduino UNO Breadboard Follow the video to make the circuit. After making the circuit it will look like Now dump the code given below int d=2; // chose the pin which you have connected to the output of push button void setup() { pinMode(2,INPUT); pinMode(13,OUTPUT); } void loop() { d=digitalRead(2); if(d==0) { digitalWrite(13,HIGH); } else { digitalWrite(13,LOW); } } Now the control is in your hands whenever you will press the button the led will be ON and when you release it, LED will go OFF. You can alter the control like