Skip to main content

Posts

RGB Led Fading effect using Arduino

The RGB LED can emit different colors by mixing the 3 basic colors red, green and blue. So, it actually consists of 3 separate red, green and blue LEDs, packaged in one box. This is why it has 4 leads, one for each of the 3 colors and a common cathode or anode depending on the type of RGB LED. In this tutorial I will use a common cathode. Components required for this Project : RGB Led - Buy Arduino Uno - Buy Breadboard and Jumpers - Buy Circuit Diagram Above is the circuit diagram of the RGB Led and Arduino Uno , As you can see the ground pin  of the RGB LED is connected to the ground of the Arduino and other 3 pins of RGB Led are connected to the PWM Pins of Arduino Uno (9, 10, 11). Code int ledPin = 9;  int ledPin1 = 10; int ledPin2 = 11; void setup() {} void loop() {   for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 5)    {     analogWrite(ledPin, fadeValue);     delay(20);   }   for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -
Recent posts

Arduino Code Basics - C, Pins

Code Basics -Arduino C The Arduino uses a slightly reduced C/C++ programming language. In this recipe, we will remember a few basics of C/C++. Ensure that you have Arduino IDE Installed on your Laptop/PC. Here is a simple example of basic Arduino C/C++ manipulating two variables: // Global Variables  int var1 = 10;  int var2 = 20; void setup() {   // Only execute once when the Arduino boots   var2 = 5;   // var2 becomes 5 once the Arduino boots } void loop(){   // Code executes top-down and repeats continuously   if (var1 > var2) {  // If var1 is greater than var2 var2++; // Increment var2 by 1   } else {  // If var1 is NOT greater than var2     var2 = 0; // var2 becomes 0   }  } When we upload a sketch to the board, the Arduino software first compiles the code. If there is an error in the code, it will write it in the Status Display area and will stop the upload. If no errors are found, it will begin writing the compiled co

Arduino Basics - Software, Code Basics

Arduino Basics - Software, Code Basics Arduino is an open source family of electronic microprocessor boards that we can easily program to understand and interact with the environment. Over the years, Arduino has become the standard for building electronics projects. Arduino has been sent into space to run micro satellites ,  it has been sent to the bottom of the ocean to control small robotic submersibles ,  and now, Arduino has arrived for you. To learn the basics of electronics refer this 4 Book -  Electronic circuits handbook for design and applications Electronics – the Basics Foundations of analog and digital electronic circuits The Art of Electronics Downloading the Arduino software . The first thing we need is the Arduino Integrated Development Environment (IDE). One of the best parts about Arduino is that the software in which we need to program the boards is free and open source. The Arduino IDE is compatible with Windows, Mac OS X, and Linux.

ESP8266 - WiFi Module

ESP8266 - Wi-Fi Module Content 1 Introduction 2 Features of ESP8266 3 How to Interface ESP8266 with Arduino Uno 3.1 Hardware and Software required 3.2 Circuit Diagram 6 Program for ESP8266 Introduction to ESP8266 The ESP8266 Wi - Fi Module is a self contained SOC with integrated TCP/IP protocol stack that can give any micro - controller access to your Wi - Fi network. The ESP8266 is capable of either hosting an application or offloading all Wi-Fi networking functions from another application processor.This module has a powerful enough on-board processing and storage capability that allows it to be integrated with the sensors and other application specific devices through its GPIOs with minimal development up-front and minimal loading during run - time. Its high degree of on-chip integration allows for minimal external circuitry, including the0front-end module, is designed to occupy minimal PCB area. The ESP8266 supports APSD for VoIP