Skip to main content

Posts

Showing posts with the label Patterns

Arduino Based Audio Spectrum Analyzer Project

This Video will illustrate you how to visualize audio left and right signals in bar-graph in 16X2 LCD Display using Arduino. Components Required: 1. Arduino UNO 2. 16X2 LCD Display 3. 3.5mm Audio Jack 4. Jumper Wires   Connection Diagram: Video Link Arduino Code #include <LiquidCrystal.h> #include <fix_fft.h> #define DEBUG 0 #define L_IN 1 // Audio input A0 Arduino #define R_IN 0 // Audio input A1 Arduino const int Yres = 8; const int gain = 3; float peaks[64]; char im[64], data[64]; char Rim[64], Rdata[64]; char data_avgs[64]; int debugLoop; int i; int load; LiquidCrystal lcd(11, 10, 7, 6, 5, 4); // pins to LCD // Custom CHARACTERS byte v1[8] = {   B00000, B00000, B00000, B00000, B00000, B00000, B00000, B11111 }; byte v2[8] = {   B00000, B00000, B00000, B00000, B00000, B00000, B00000, B11111 }; byte v3[8] = {   B00000, B00000, B00000, B00000, B00000, B11111, B11111, B11111 }; byte v4[8] = {   B00000, B00000, B00000, B0

Webcam Interfacing with Raspberry Pi

This tutorial is about the clicking photos and recording videos using "Logitech Webcam C110 with Raspberry Pi 3 Model B" Component Required: Rasberry Pi 3 Model B  Logitech Webcam C110  Adapter Charger micro USB-b Type 5v,2Amp  Connection Diagram: Step 1: Create a new folder First, we create a new folder just to store your photo and videos separately. Open the terminal. Command for creating new folder is "mkdir folder name" Step 2: Check everything is up-to-date To update your Raspberry Pi command is " sudo apt-get update ". And to upgrade your Raspberry Pi command is " sudo apt-get upgrade". Step 3: Check SSH and Camera enabled To make sure SSH and Camera enabled. Follow these two-steps. By this command, you can configure your SSH and Camera " sudo raspi-config ". Enable SSH. Enable Camera. Step 4: Check connection of Camera Make sure the camera is connected. Then run this command to make sure

Soil Moisture Monitoring using ESP8266 and Soil Moisture Sensor

Hey folks In this tutorial, we will learn how to interface LM393 module(Soil Moisture Sensor)with NodeMcu(ESP8266). LM393 is a simple water sensor can be used to detect soil moisture when the soil moisture deficit module plant waterer device, so that the plants in our garden without people to manage; Adjustable sensitivity adjust the digital potentiometer (shown in blue) Operating Voltage 3.3V-5V; Module Dual Output mode, a simple. LM393 Soli Moisture Sensor Module(over view)  Components Required: LM393 Soil Sensor  NodeMcu(ESP8266)  Connecting wires(male to male)  Breadboard  Follow the Image below for circuit connection reference:- (Interfacing all components)  Here Pin A0 of the moisture sensor module connects to pin A0 on the ESP8266 The GND pin on the moisture sensor module connects to a GND pin on the ESP8266 The VCC pin on the moisture sensor module connects to a 3v3 pin on the ESP8266 D0 pin remain disconnected After making the circuit dump the code given

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

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

Seven Segment Display Interfacing with Arduino

In this tutorial, we will learn how to interface a 7 SEGMENT DISPLAY with Arduino. A 7 SEGMENT DISPLAY consists of 8 LEDs and 10 pins,2 common pins are shorted and supplied with 5 volts from Arduino through a resistor and other 8 pins are connected to digital and analog pins. 7 Segment Display can act as a substitute for LCDs if we want to display numbers. Shown below is the internal architecture of a 7 segment display. Now let’s interface the 7 SEGMENT DISPLAY. Components required Arduino Uno                       1No. 7 Segment Display              1No. Resistors                             1No.            100 ohms             Connecting Wires Breadboard There are two types of LED 7-segment display The common cathode (CC)  Common anode (CA) In CC type the cathode of all the LEDs is connected together and similarly in CA type. In CC type we have to ground the common cathode pin and power up segments to illuminate it, the reverse happens

Servo Motor Interfacing with Arduino

In this tutorial, we will learn how to interface a servo motor using Arduino UNO. The motor inside the setup of a servo is attached by gears to the control wheel. When the motor rotates, the potentiometer’s resistance changes hence the control circuit can precisely regulate how much movement there is and in which direction. The motor’s speed is proportional to the difference between its actual position and desired position. When the shaft is near the desired position it turns slowly else fast. This is called proportional control. They are controlled by sending PWM (pulse width modulated) signals through the control wire. They are available in many sizes and are of three types Positional rotation  Continuous rotation  Linear The most common type is the positional rotational one. So now we are familiar with the motor let us interface it Components Required: Servo motor 1No Arduino UNO 1No Few connecting wires Breadboard Follow the video below for cir

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

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/