Skip to main content

Posts

Latest Post

What is Industry 4.0?

  What is Industry 4.0 and what are some of the technologies that are driving it? Industry 4.0 is a term that refers to the fourth industrial revolution, which is characterized by the integration of digital technologies, such as artificial intelligence, cloud computing, big data, the internet of things, robotics, and 3D printing, into the manufacturing sector. Industry 4.0 aims to create smart factories that are more efficient, flexible, and responsive to customer needs and market changes. Some of the technologies that are enabling Industry 4.0 are: - Artificial intelligence (AI) : AI is the ability of machines to perform tasks that normally require human intelligence, such as reasoning, learning, decision-making, and problem-solving. AI can help optimize production processes, improve product quality, reduce costs, and enhance customer satisfaction. - Cloud computing: Cloud computing is delivering computing services, such as servers, storage, databases, software, and analytics, ov...

Seven Segment Display Interfacing with Arduino

Seven-Segment Introduction  Let’s start the main part of this tutorial by answering a question: what is a seven-segment display? As its name suggests, a 7-segment device consists of 7  light-emitting diodes . These light-emitting diodes are arranged and packed inside a single display with a specific pattern in mind. If this pattern is controlled in a specific way by turning on and turning off LEDs, a seven-segment device will display a unique number. There is also an extra eighth LED on a seven-segment display which is used to display dots. This dot is sometimes used as a decimal point when we want to display a fractional value.  The picture below shows a seven-segment display and its pinout. The string of eight LEDs on the left side shows the internal connection and a picture on the right side shows how these LEDs are arranged to make a seven-segment display. Pin3 and 8 are common pins. These pins are used to provide either 5 volts or ground in common-anode and common ca...

Control led through using BLYNK & Bluetooth Module

First, you must ensure you have an installed and up-to-date version of the Arduino IDE. You can find that on  their downloads page . Next, you must install  the Blynk Arduino library . This is what allows you to interface with the Blynk app. If you haven't already, download  the Blynk app  onto your phone as well. Control your LED through Blynk App using Arduino Uno First, you have to connect LED with Arduino Uno then HC05 or HC06 (Bluetooth Module) connect with Arduino Uno Upload your Code & setup Blynk Done CODE: /*************************************************************   Blynk is a platform with iOS and Android apps to control   Arduino, Raspberry Pi and the likes over the Internet.   You can easily build graphic interfaces for all your   projects by simply dragging and dropping widgets.     Downloads, docs, tutorials: http://www.blynk.cc     Sketch generator:           http://examples.blynk...

Fire Alarm with arduino

Flame Sensor A  flame detector  is a sensor designed to detect and respond to the presence of a flame or fire. Responses to a detected flame depend on the installation but can include sounding an alarm, deactivating a fuel line (such as a propane or a natural gas line), and activating a fire suppression system. The IR Flame sensor used in this project is shown below, these sensors are also called  Fire sensor modules  or  flame detector sensors  sometimes. There are different types of flame detection methods. Some of them are Ultraviolet detector, near IR array detector, infrared (IR) detector, Infrared thermal cameras, UV/IR detector, etc. When fire burns it emits a small amount of Infra-red light, this light will be received by the Photodiode (IR receiver) on the sensor module. Then we use an Op-Amp to check for a change in voltage across the IR Receiver, so that if a fire is detected the output pin (DO) will give 0V(LOW), and if the is no fire the o...

Playing with IR

Controlling RGB LED Colors Using the IR Remote Control After you found the code for each button, you can use it to control the commands. In this example, we connected an RGB LED to Arduino and use the remote control to change the colors. To do this, specify a few buttons on the remote control and save their code. In this example, buttons 1 to 3 are used. Then assign a specific color to each button. At the end by pressing any of the 1 to 3 keys, the LED changes it's color. For more colors, you can find the code for each color  here. Circuit Code #include <IRremote.h>     int RECV_PIN = 6 ;     int bluePin = 11 ;     int greenPin = 10 ;         int redPin = 9 ;     IRrecv irrecv ( RECV_PIN );     decode_results results;     void setup (){       Serial . begin ( 9600 );       irrecv . enableIRIn ();       pinMode (redPin, OUTPUT);     ...

IR Protocol

  Introduction to IR Protocol IR or infrared communication is one of the most common methods of wireless communication due to being easy to use and having an affordable price. Infrared light, with a wavelength longer than visible light, is not within the range of human vision. That’s why it’s a good option for wireless communications. When you press a button on your TV control, an LED on your control turns on and off continuously and causes a modulated infrared signal to send from the control to your TV. The command will execute after the signal is demodulated. IR receiver modules are used to receive IR signals. These modules work in 3, 8 kHz frequency. When the sensor is not exposed to any light at its working frequency, the Vout output has a value equal to VS (power supply). With exposure to a 38 kHz infrared light, this output will be zero. Find the Code for each Remote Control Button In this part, we want to set up a connection between the Arduino and an IR sender and receiver....

Sensor Data With OLED

  Display Temperature and Humidity in the OLED Display with Arduino In this section, we’ll build a project that displays temperature and humidity readings on the OLED display. We’ll get temperature and humidity using the  DHT11 temperature and humidity sensor . Demonstration After wiring the circuit and uploading the code, the OLED display shows the temperature and humidity readings. The sensor readings are updated every five seconds. Parts required To complete this project you need the following components: 0.96 inch OLED display  Arduino UNO DHT11 or DHT22 temperature and humidity sensor  Breadboard 4.7k Ohm resistor (or 10k Ohm resistor) Jumper wires Schematic Assemble the circuit by following the next schematic diagram. Note:  if you’re using a module with a DHT sensor, it normally comes with only three pins. The pins should be labeled so that you know how to wire them. Additionally, many of these modules already come with an in...

Text on OLED

  Write Text – OLED Display The Adafruit library for the OLED display comes with several functions to write text. In this section, you’ll learn how to write and scroll text using the library functions. “Hello, world!” OLED Display The following sketch displays  Hello, world!  message in the OLED display. for Connections Refer  this Code: #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels // Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) Adafruit_SSD1306 display ( SCREEN_WIDTH , SCREEN_HEIGHT , & Wire , - 1 ); void setup () {   Serial . begin ( 115200 );   if (! display . begin (SSD1306_SWITCHCAPVCC, 0x3C )) { // Address 0x3D for 128x64     Serial . println ( F ( "SSD1306 allocation failed" ));     for (;;);   }   delay ( 2000 );   di...

Interfacing OLED

 OLED The  organic light-emitting diode  (OLED) display that we’ll use in this tutorial is the SSD1306 model: a mono-color, 0.96-inch display with 128×64 pixels as shown in the following figure. The OLED display doesn’t require backlight, which results in a very nice contrast in dark environments. Additionally, its pixels consume energy only when they are on, so the OLED display consumes less power when compared with other displays. The model we’re using here has only four pins and communicates with the Arduino using I2C communication protocol. There are models that come with an extra RESET pin. There are also other OLED displays that communicate using SPI communication. Because the OLED display uses I2C communication protocol, wiring is very simple. You just need to connect to the Arduino Uno I2C pins as shown in the table below. Pin Wiring to Arduino Uno Vin 5V GND GND SCL A5 SDA A4 If you’re using a different Arduino board, make sure you check the correct I2C pins: Nan...