top of page

Search Results

65 results found with an empty search

  • Create a WiFi-controlled car using NodeMCU and a custom app

    Creating a WiFi-controlled car using NodeMCU and a custom app can be a fun and educational project. Create a WiFi-controlled car using NodeMCU and a custom app Creating a WiFi-controlled car using NodeMCU and a custom app can be a fun and educational project. Description: In this project, we'll create a WiFi-controlled car using NodeMCU and an app. This project is perfect for beginners looking to dive into the world of IoT and robotics. Let's get started! Materials Needed: - NodeMCU (ESP8266) board - L298N motor driver module - DC motors with wheels (x4) - Car chassis - 18650 batteries with holder - Jumper wires - Breadboard - Smartphone with WiFi and a custom app Step 1: Assemble the Car Chassis 1. Attach the DC Motors: Mount the DC motors to the car chassis. Secure them firmly so they don't move around. 2. Install Wheels: Attach the wheels to the DC motors. 3. Battery Placement: Place the battery holder on the chassis. Ensure it's easily accessible for battery changes. Step 2: Connect the Electronics 1. Motor Driver to Motors: - Connect the motor terminals to the L298N motor driver. Typically, Motor A to OUT1 and OUT2, and Motor B to OUT3 and OUT4. 2. Motor Driver to NodeMCU: - IN1 to D1 - IN2 to D2 - IN3 to D3 - IN4 to D4 - ENA to D5 (for speed control using PWM) - ENB to D6 (for speed control using PWM) 3. Power Connections: - Connect the motor driver’s VCC to the battery pack’s positive terminal. - Connect the GND to the battery pack’s negative terminal. - Connect the motor driver’s 5V output to the NodeMCU’s VIN pin (if it has a 5V regulator, otherwise use 3.3V). Step 3: Program the NodeMCU 1. Install Arduino IDE: - Download and install the Arduino IDE. 2. Setup NodeMCU: - Add the ESP8266 board manager to the Arduino IDE (File > Preferences > Additional Board Manager URLs). - Install the ESP8266 board from the Boards Manager. 3. Write the Code: as given in the files Step 4: Test Your Car 1. Power Up: Insert the batteries into the holder and power up your car. 2. Connect wifi Open the app and connect to your project. 3. Control the Car: Use the buttons on the app to control the car's movement. Project Gallery ! All Documents : You can use the below Files to create your wireless Car. Click Here to Download Download Video Tutorial : Conclusion : By following these steps, you can create your own WiFi-controlled car using NodeMCU and a simple app. Happy building! For more projects and tutorials, visit our website and explore Skill-Hub by EmbeddedBrew to expand your skills in embedded systems. comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • How to make a Home Automation System using Blynk2.0 and NodeMCU

    Create Automation System using NodeMCU and Blynk2.0 to control Lights and Fans of a room, also monitor environmental parameters on your hand. How to make a Home Automation System using Blynk2.0 and NodeMCU Create Automation System using NodeMCU and Blynk2.0 to control Lights and Fans of a room, also monitor environmental parameters on your hand. Description: Sure, here’s a step-by-step guide to create a home automation system that controls two devices and displays temperature data from a DHT22 sensor on an LCD using NodeMCU and Blynk: Step 1: Gather Materials - NodeMCU (ESP8266) - DHT22 temperature and humidity sensor - 16x2 LCD display with I2C module - Two relays (for controlling devices) - Breadboard and jumper wires - Power supply (5V for relays, typically USB for NodeMCU) - Blynk app installed on your smartphone Step 2: Set Up Blynk 1. Create a Blynk Account: Download the Blynk app from the App Store or Google Play and create an account. 2. Create a New Project: In the Blynk app, create a new project. Select "NodeMCU" as your device and note down the authentication token sent to your email. 3. Add Widgets: - Add a button widget for each device you want to control. - Add a labeled value widget to display temperature data. - Optionally, add a gauge or graph widget to visualize temperature data. Step 3: Set Up Hardware 1. Connect the DHT22 Sensor: - VCC to 3.3V on NodeMCU - GND to GND on NodeMCU - Data to digital pin D4 on NodeMCU 2. Connect the LCD Display: - Connect the I2C module to the LCD. - SDA to D2 on NodeMCU - SCL to D1 on NodeMCU - VCC to 5V on NodeMCU - GND to GND on NodeMCU 3. Connect the Relays: - Relay 1 IN pin to D5 on NodeMCU - Relay 2 IN pin to D6 on NodeMCU - VCC to 5V - GND to GND Step 4: Install Libraries In your Arduino IDE, install the following libraries: - Blynk Library: Go to Sketch > Include Library > Manage Libraries, search for "Blynk", and install. - DHT Sensor Library: Search for "DHT sensor library" and install. - LiquidCrystal I2C Library: Search for "LiquidCrystal I2C" and install. Step 5: Write the Code Step 6: Upload Code to NodeMCU 1. Connect your NodeMCU to your computer via USB. 2. Open the Arduino IDE and select the correct board and port. 3. Upload the code to your NodeMCU. Step 7: Configure Blynk App 1. Button Widgets: Set one button to V1 and the other to V2 for controlling the relays. 2. Labeled Value Widget: Set to V5 to display the temperature data. Step 8: Power Up and Test 1. Ensure all connections are secure. 2. Power up your NodeMCU and relays. 3. Open the Blynk app and test the buttons to control your devices. 4. Check the LCD display and Blynk app to see the temperature readings from the DHT22 sensor. Project Gallery All Documents : Download the below code to make your own Home Automation System. Click Here to Download Download Video Tutorial : Conclusion : You’ve now built a basic home automation system using NodeMCU and Blynk! This setup allows you to control two devices remotely and monitor temperature data in real-time. Explore additional projects and skills on our website and continue enhancing your IoT expertise with Skill-Hub by EmbeddedBrew. Happy building! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • Getting Started with ESP32 Cam Module and Solve Fatal Error

    In this Project we will learn about ESP32 Cam module & create a Live Security Camera Getting Started with ESP32 Cam Module and Solve Fatal Error In this Project we will learn about ESP32 Cam module & create a Live Security Camera Description: The ESP32-CAM is a powerful and versatile microcontroller with built-in Wi-Fi and Bluetooth, making it ideal for various IoT projects. Here’s a step-by-step guide to help you get started with your ESP32-CAM on a Windows PC. Step 1: Gather Your Components Before you begin, ensure you have the following components: - ESP32-CAM module - USB to TTL/Serial adapter (such as FTDI or CP2102) - Jumper wires - Breadboard (optional) - Micro USB cable Step 2: Install Arduino IDE 1. Download Arduino IDE: Visit the [Arduino IDE download page]( https://www.arduino.cc/en/software ) and download the Windows installer. 2. Install Arduino IDE: Run the installer and follow the on-screen instructions to install the IDE on your PC. Step 3: Install ESP32 Board Support 1. Open Arduino IDE: Launch the Arduino IDE. 2. Open Preferences: Go to `File` > `Preferences`. 3. Add ESP32 URL: In the "Additional Board Manager URLs" field, enter the following URL: ` https://dl.espressif.com/dl/package_esp32_index.json` 4. Open Boards Manager: Go to `Tools` > `Board` > `Boards Manager`. 5. Install ESP32: In the Boards Manager window, search for "ESP32" and click "Install" on the "esp32 by Espressif Systems" entry. Step 4: Set Up ESP32-CAM in Arduino IDE 1. Select Board: Go to `Tools` > `Board` and select `AI Thinker ESP32-CAM`. 2. Select Port: Connect your USB to TTL adapter to your PC and select the appropriate COM port under `Tools` > `Port`. Step 5: Wiring the ESP32-CAM 1. Connect the ESP32-CAM to the USB to TTL Adapter: - ESP32-CAM | USB to TTL - 5V | 5V - GND | GND - U0R | TX - U0T | RX - IO0 | GND (for programming mode) Step 6: Uploading the Code 1. Open Example Sketch: Go to `File` > `Examples` > `ESP32` > `Camera` > `CameraWebServer`. 2. Modify the Sketch: Find the following lines in the sketch and update them with your Wi-Fi credentials: const char* ssid = "your-SSID"; const char* password = "your-PASSWORD"; 3. Select Board Settings: Ensure the following settings are selected: - Board: `AI Thinker ESP32-CAM` - Flash Mode: `QIO` - Flash Frequency: `40MHz` - Partition Scheme: `Huge APP (3MB No OTA)` - Upload Speed: `115200` 4. Upload Code: Click the upload button. While uploading, press and hold the `RESET` button on the ESP32-CAM. Step 7: Running the ESP32-CAM 1. Open Serial Monitor: Go to `Tools` > `Serial Monitor` and set the baud rate to `115200`. 2. Reset the ESP32-CAM: Disconnect the IO0 pin from GND and press the `RESET` button on the ESP32-CAM. 3. View Output: The Serial Monitor will display the IP address of your ESP32-CAM. 4. Access the Web Server: Open a web browser and enter the IP address displayed in the Serial Monitor. You should see the camera feed from your ESP32-CAM. Project Gallery All Documents : Copy & Paste this link in ArduinoIDE - File - Preferences - Additional Boards Manager URL - https://dl.espressif.com/dl/package_esp32_index.json Use the example code as instructed in the Video Click Here to Download Download Video Tutorial : Conclusion : Congratulations on completing all the steps! You now have a solid understanding of how the Raspberry Pi Pico works. Feel free to experiment with various projects to further enhance your skills. For more project ideas and detailed guides, visit our website. Additionally, explore Skill-Hub by EmbeddedBrew to acquire a wide range of skills in embedded systems. Happy Learning! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • Automatic door opening system using motion sensor

    Automatic door opening system using motion sensor Automatic door opening system using motion sensor Create a fun project of opening a door using IR sensor Description: Are you interested in home automation projects? In this tutorial, we'll guide you through the steps to create an automatic door opener using an Arduino, a servo motor, and an IR sensor. This project is perfect for beginners and a great way to get hands-on experience with Arduino. Components Needed: - Arduino Uno - Servo Motor (e.g., SG90) - IR Sensor Module - Breadboard and jumper wires - Power supply (e.g., 9V battery with connector) - Door or small model to test the mechanism 1. Setup and Wiring: - Servo Motor Wiring: - Connect the red wire of the servo motor to the 5V pin on the Arduino. - Connect the black or brown wire to the GND pin on the Arduino. - Connect the yellow or orange wire to digital pin 9 on the Arduino. - IR Sensor Wiring: - Connect the VCC pin of the IR sensor to the 5V pin on the Arduino. - Connect the GND pin to the GND on the Arduino. - Connect the OUT pin of the IR sensor to digital pin 7 on the Arduino. 2. Arduino Code: - Open the Arduino IDE and create a new sketch. Copy and paste the following code. 3. Assembling the Components: - Place the IR sensor module near the door, ensuring it can detect when someone approaches. - Attach the servo motor to the door mechanism. If you're using a model door, you might need to create a simple arm that the servo can push or pull to open the door. 4. Uploading the Code: - Connect your Arduino to your computer using a USB cable. - Select the correct board and port from the Arduino IDE (Tools > Board > Arduino Uno, Tools > Port > COMx). - Click the upload button to transfer the code to the Arduino. 5. Testing: - Once the code is uploaded, power your Arduino using a 9V battery or another power source. - Wave your hand or an object in front of the IR sensor. The servo motor should rotate to open the door and then close it after 3 seconds. Troubleshooting Tips: - Servo Not Moving: Ensure that the servo motor connections are correct and secure. Check the power supply. - IR Sensor Not Detecting: Verify the IR sensor wiring and that the sensor is oriented correctly. Use the serial monitor to check the sensor readings. - Adjustments: If the door doesn't open or close properly, adjust the servo angle values in the code. Project Gallery All Documents : Download the following code to run your project. Click Here to Download Download Video Tutorial : Conclusion : By following these steps, you have successfully created an automatic door opener using Arduino, a servo motor, and an IR sensor. This project introduces you to the basics of using sensors and actuators with Arduino, opening the door to more complex home automation projects. Happy building! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • Getting Started with RFID and Arduino: Reading Values and Controlling an LED

    Getting Started with RFID and Arduino: Reading Values and Controlling an LED Getting Started with RFID and Arduino: Reading Values and Controlling an LED Here’s a step-by-step guide for getting started with RFID and Arduino to read values on the Serial Monitor and control an LED Description: Introduction RFID (Radio Frequency Identification) technology allows you to read data from RFID tags using an RFID reader. In this guide, we will show you how to set up an RFID reader with an Arduino to display tag information on the Serial Monitor and control an LED based on the tag read. Materials Needed - Arduino Uno - RFID Reader (RC522) - RFID Tags - LED - Resistor (220 ohms) - Breadboard and jumper wires Step 1: Wiring the RFID Reader to the Arduino 1. Connect the RFID Reader (RC522) to the Arduino as follows: - SDA to Arduino pin 10 - SCK to Arduino pin 13 - MOSI to Arduino pin 11 - MISO to Arduino pin 12 - IRQ to Arduino pin 9 (not used in this example) - GND to GND - RST to Arduino pin 8 - 3.3V to 3.3V 2. Connect the LED to the Arduino: - Connect the longer leg (anode) of the LED to a 220-ohm resistor, then to Arduino pin 7. - Connect the shorter leg (cathode) to GND. Step 2: Install the Required Libraries Install the MFRC522 library: - Open the Arduino IDE. - Go to Sketch > Include Library > Manage Libraries. - Search for "MFRC522" and install the library by GithubCommunity. Step 3: Upload the Code to the Arduino 1. Open the Arduino IDE and create a new sketch. 2. Copy and paste the following code: 3. Replace `"XX XX XX XX"` in the code with the UID of your RFID tag. To find your tag's UID, upload the code first, open the Serial Monitor, and place your RFID tag near the reader. The UID will be displayed on the Serial Monitor. 4. Upload the modified code to your Arduino. Step 4: Test the Setup 1. Open the Serial Monitor: - Make sure the baud rate is set to 9600. 2. Place your RFID tag near the reader: - Observe the UID printed on the Serial Monitor. - If the UID matches the specified UID in the code, the LED should turn on for 3 seconds. - If the UID does not match, the Serial Monitor will display "Unauthorized access." Project Gallery All Documents : Download the below code and explore with RFID Sensor. Click Here to Download Download Video Tutorial : Conclusion : You have now successfully set up an RFID reader with an Arduino to read tag values and control an LED. This basic project can be extended to various applications, such as access control systems, inventory management, and more. Explore additional projects and expand your skills with Skill-Hub by EmbeddedBrew. comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • Design a Retro game of Snake from Nokia using OLED and Joystick.

    Design a Retro game of Snake from Nokia using OLED and Joystick. Design a Retro game of Snake from Nokia using OLED and Joystick. With these steps, you've successfully created a basic Nokia Snake game using a 0.96" OLED, a joystick, and an Arduino Nano. You can enhance the game by adding more features, improving graphics, and optimizing controls. Description: Creating a Nokia Snake game using a 0.96" OLED, a joystick, and an Arduino Nano is an exciting project. Below are the detailed steps to guide you through the process: Materials Needed 1. Arduino Nano 2. 0.96" OLED display (SSD1306) 3. Joystick module 4. Breadboard and jumper wires 5. Power supply or USB cable 6. Resistors (if needed for pull-down or pull-up) Step 1: Setup and Installation 1. Install Arduino IDE: Download and install the Arduino IDE from the official [Arduino website](https://www.arduino.cc/en/software). 2. Install Required Libraries: Open the Arduino IDE and install the following libraries through the Library Manager (Sketch -> Include Library -> Manage Libraries): - Adafruit SSD1306 - Adafruit GFX Step 2: Wiring the Components 1. OLED Display: - VCC to 5V (or 3.3V, depending on your display) - GND to GND - SCL to A5 (SCL) - SDA to A4 (SDA) 2. Joystick Module: - VCC to 5V - GND to GND - VRx to A0 (horizontal movement) - VRy to A1 (vertical movement) - SW to D2 (button press) Step 3: Testing and Debugging 1. Upload the Code: Connect your Arduino Nano to your computer using a USB cable. Select the appropriate board and port in the Arduino IDE and upload the code. 2. Check the Display: Ensure the OLED display initializes correctly and shows the snake's movement. 3. Joystick Control: Move the joystick and observe the snake's movement on the OLED display. Adjust the delay and mapping values for smoother control. Step 4: Enhancements 1. Food Item: Add random food generation on the screen and increase the snake's length when it eats the food. 2. Game Over Condition: Implement collision detection with the screen boundaries and the snake's body. 3. Score Display: Add a score counter and display it on the screen. Project Gallery All Documents : Download the below code and enjoy your game. Click Here to Download Download Video Tutorial : Conclusion : With these steps, you've successfully created a basic Nokia Snake game using a 0.96" OLED, a joystick, and an Arduino Nano. You can enhance the game by adding more features, improving graphics, and optimizing controls. Explore our website for more projects and visit Skill-Hub by EmbeddedBrew. Happy coding and enjoy your DIY project! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • How to interface LCD with Keypad module and Arduino.

    How to interface LCD with Keypad module and Arduino. How to interface LCD with Keypad module and Arduino. Here’s a detailed step-by-step guide to get started with a Keypad module and Arduino Nano to display values on the serial monitor and an I2C LCD Description: In this tutorial, we will learn how to interface a Keypad module with an Arduino Nano and display the key presses on both the serial monitor and an I2C LCD. Follow these steps to get started: Materials Needed: - Arduino Nano - Keypad module (4x4 matrix) - I2C LCD (16x2) - Breadboard - Jumper wires - USB cable for Arduino Nano Step 1: Wiring the Keypad to Arduino Nano 1. Identify the pins: Most 4x4 keypads have 8 pins, organized in rows and columns. 2. Connect the Keypad to Arduino: - Connect the first pin of the keypad to D2 on the Arduino. - Connect the second pin of the keypad to D3 on the Arduino. - Connect the third pin of the keypad to D4 on the Arduino. - Connect the fourth pin of the keypad to D5 on the Arduino. - Connect the fifth pin of the keypad to D6 on the Arduino. - Connect the sixth pin of the keypad to D7 on the Arduino. - Connect the seventh pin of the keypad to D8 on the Arduino. - Connect the eighth pin of the keypad to D9 on the Arduino. Step 2: Wiring the I2C LCD to Arduino Nano 1. Identify the I2C pins on the LCD (usually labeled as GND, VCC, SDA, SCL). 2. Connect the I2C LCD to Arduino: - Connect GND on the LCD to GND on the Arduino. - Connect VCC on the LCD to 5V on the Arduino. - Connect SDA on the LCD to A4 on the Arduino. - Connect SCL on the LCD to A5 on the Arduino. Step 3: Installing Required Libraries 1. Open the Arduino IDE. 2. Install the Keypad library: - Go to `Sketch -> Include Library -> Manage Libraries`. - Search for "Keypad" and install the library by Mark Stanley and Alexander Brevig. 3. Install the LiquidCrystal I2C library: - Go to `Sketch -> Include Library -> Manage Libraries`. - Search for "LiquidCrystal I2C" and install the library by Frank de Brabander. Step 4: Writing the Code Here’s a sample code to read key presses from the keypad and display them on both the serial monitor and the I2C LCD. Step 5: Upload and Test 1. Connect your Arduino Nano to your computer using the USB cable. 2. Upload the code to the Arduino Nano. 3. Open the Serial Monitor from the Arduino IDE (`Tools -> Serial Monitor`) and set the baud rate to 9600. 4. Press the keys on the keypad. You should see the key presses displayed on both the serial monitor and the I2C LCD. Project Gallery All Documents : Download the below code to start exploring with the Keypad and LCD. Click Here to Download Download Video Tutorial : Conclusion : Congratulations! You have successfully interfaced a Keypad module with an Arduino Nano and displayed the values on both the serial monitor and an I2C LCD. Feel free to expand on this project by adding more functionality or experimenting with different types of keypads and displays. Also check our website for more projects and explore our Skill-Hub to enhance your skills in IoT and Embedded Sustems. comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • Learn controlling LED Lights on a webserver

    You will learn to create a webserver and control a LED using it. Learn controlling LED Lights on a webserver You will learn to create a webserver and control a LED using it. Description: In this tutorial, we'll show you how to control an LED connected to a NodeMCU via a web server. This project is a great way to get started with IoT and learn how to integrate hardware with web technology. Requirements - NodeMCU (ESP8266) - LED - 220Ω resistor - Breadboard and jumper wires - Micro USB cable - Arduino IDE installed on your computer Step 1: Setting Up the Hardware 1. Connect the LED to the NodeMCU: - Place the LED on the breadboard. - Connect the longer leg (anode) of the LED to a digital pin on the NodeMCU (e.g., D1). - Connect the shorter leg (cathode) of the LED to one end of the resistor. - Connect the other end of the resistor to the GND pin of the NodeMCU. Step 2: Preparing the Arduino IDE 1. Install the ESP8266 Board: - Open the Arduino IDE. - Go to `File` -> `Preferences`. - In the "Additional Boards Manager URLs" field, add this URL: ` http://arduino.esp8266.com/stable/package_esp8266com_index.json` . - Go to `Tools` -> `Board` -> `Boards Manager`. - Search for "ESP8266" and install the "ESP8266 by ESP8266 Community" package. 2. Select the NodeMCU Board: - Go to `Tools` -> `Board` -> `ESP8266 Boards` -> `NodeMCU 1.0 (ESP-12E Module)`. Step 3: Writing the Code 1. Open a New Sketch: - In the Arduino IDE, open a new sketch (`File` -> `New`). 2. Include Required Libraries and Define Variables. Step 4: Uploading the Code 1. Connect Your NodeMCU to Your Computer: - Use the micro USB cable to connect the NodeMCU to your computer. 2. Upload the Code: - In the Arduino IDE, select the correct port under `Tools` -> `Port`. - Click on the upload button to compile and upload the code to the NodeMCU. Step 5: Testing Your Web Server 1. Find Your NodeMCU's IP Address: - Open the Serial Monitor (`Tools` -> `Serial Monitor`). - Look for the IP address assigned to your NodeMCU in the output. 2. Control the LED: - Open a web browser and enter the IP address of your NodeMCU. - You should see a simple web page with buttons to turn the LED ON and OFF. Project Gallery All Documents : #include #include const char* ssid = "RDC A3"; const char* password = "Rudraiot"; int ledPin = LED_BUILTIN ; // GPIO13---D7 of NodeMCU WiFiServer server(80); void setup() { Serial.begin(115200); delay(10); pinMode(ledPin, OUTPUT); digitalWrite(ledPin, LOW); // Connect to WiFi network Serial.println(); Serial.println(); Serial.print("Connecting to "); Serial.println(ssid); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.println("WiFi connected"); // Start the server server.begin(); Serial.println("Server started"); // Print the IP address Serial.print("Use this URL to connect: "); Serial.print("http://"); Serial.print(WiFi.localIP()); Serial.println("/"); } void loop() { // Check if a client has connected WiFiClient client = server.available(); if (!client) { return; } // Wait until the client sends some data Serial.println("new client"); while(!client.available()){ delay(1); } // Read the first line of the request String request = client.readStringUntil('\r'); Serial.println(request); client.flush(); // Match the request int value = HIGH; if (request.indexOf("/LED=ON") != -1) { digitalWrite(ledPin, HIGH); value = LOW; } if (request.indexOf("/LED=OFF") != -1) { digitalWrite(ledPin, LOW); value = HIGH; } // Set ledPin according to the request //digitalWrite(ledPin, value); // Return the response client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println(""); // do not forget this one client.println(""); client.println(""); client.print("Led is now: "); if(value == HIGH) { client.print("On"); } else { client.print("Off"); } client.println(""); client.println("OFF "); client.println("ON "); client.println(""); delay(1); Serial.println("Client disonnected") ; Serial.println(""); } Click Here to Download Download Video Tutorial : Conclusion : You have now successfully set up a web server using NodeMCU to control an LED. This project is a foundational step into the world of IoT, allowing you to control devices over the internet. Experiment with different components and expand your project to create more complex IoT systems. Also checkout more projects on our website and enhance your skills at Skill-Hub by EmbeddedBrew. comments debug Comments Write a comment Write a comment مشاركة أفكارك كن أول من يعلِّق.

  • How to Make an Online Clock with NodeMCU and LCD Display

    Here is a step-by-step guide to creating an online clock using NodeMCU to display the time and date on an LCD How to Make an Online Clock with NodeMCU and LCD Display Here is a step-by-step guide to creating an online clock using NodeMCU to display the time and date on an LCD Description: Creating an online clock using NodeMCU and an LCD display is an exciting project that combines the power of Wi-Fi connectivity with the simplicity of microcontrollers. Follow these steps to build your own online clock. Materials Needed: - NodeMCU (ESP8266) - LCD Display (16x2 or 20x4) with I2C module - Breadboard and jumper wires - USB cable for programming NodeMCU - Internet connection Step 1: Set Up the Hardware 1. Connect the LCD Display to NodeMCU: - Connect the VCC pin of the LCD to the 3.3V pin on the NodeMCU. - Connect the GND pin of the LCD to a GND pin on the NodeMCU. - Connect the SDA pin of the LCD to the D2 pin on the NodeMCU. - Connect the SCL pin of the LCD to the D1 pin on the NodeMCU. 2. Power the NodeMCU: - Connect the NodeMCU to your computer using the USB cable to power it up and upload the code. Step 2: Install Required Libraries 1. Install the Arduino IDE: - Download and install the Arduino IDE from the [Arduino website](https://www.arduino.cc/en/software). 2. Add ESP8266 Board to Arduino IDE: - Open Arduino IDE, go to `File > Preferences`. - In the "Additional Board Manager URLs" field, add the following URL: ` http://arduino.esp8266.com/stable/package_esp8266com_index.json` - Go to `Tools > Board > Boards Manager`, search for `ESP8266` and install the `esp8266` platform. 3. Install Libraries: - Go to `Sketch > Include Library > Manage Libraries`. - Search for and install the following libraries: - `LiquidCrystal_I2C` (for controlling the LCD via I2C) - `NTPClient` (for getting time from an NTP server) - `ESP8266WiFi` (for connecting NodeMCU to Wi-Fi) Step 3: Write the Code 1. Include Libraries and Define Variables: 2. Set Up Wi-Fi and Time Client: 3. Display Time and Date: Step 4: Upload the Code 1. Upload Code to NodeMCU: - Select the correct board and port in the Arduino IDE (`Tools > Board > NodeMCU 1.0 (ESP-12E Module)` and `Tools > Port`). - Click the upload button to upload the code to the NodeMCU. 2. Monitor the Serial Output: - Open the Serial Monitor (`Tools > Serial Monitor`) to see the connection status and debug messages. Step 5: Test and Debug 1. Check LCD Display: - Ensure the LCD displays the current time and date. - If the display is not working, check the connections and ensure the I2C address of the LCD (0x27 in this case) matches your hardware. 2. Verify Time Accuracy: - The time displayed should update every second. - If the time is incorrect, check your internet connection and the NTP server configuration. Project Gallery All Documents : Download the below code to make your LCD Clock. Click Here to Download Download Video Tutorial : Conclusion : Congratulations! You have successfully created an online clock using NodeMCU and an LCD display. For more exciting projects, visit our website and explore Skill-Hub by EmbeddedBrew to learn new skills in embedded systems. comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • Getting Started with Arduino IoT Cloud and NodeMCU to Control an LED

    Here’s a step-by-step guide to get started with Arduino IoT Cloud and NodeMCU to control an LED Getting Started with Arduino IoT Cloud and NodeMCU to Control an LED Here’s a step-by-step guide to get started with Arduino IoT Cloud and NodeMCU to control an LED Description: Controlling an LED with NodeMCU through Arduino IoT Cloud is a fantastic beginner project that introduces you to the world of IoT (Internet of Things). Follow these simple steps to get started: Step 1: Set Up Arduino IoT Cloud 1. Create an Arduino Account: - Go to [Arduino Create](https://create.arduino.cc/) and sign up for a free account or log in if you already have one. 2. Access Arduino IoT Cloud: - Navigate to the [Arduino IoT Cloud](https://create.arduino.cc/iot) from the Arduino Create dashboard. 3. Set Up a New Thing: - Click on "Create Thing" to set up a new IoT device. - Give your Thing a name, such as "LED_Controller." Step 2: Configure the Device 1. Add a Device: - Click on "Add Device" and select "Set up a third-party device." - Choose "ESP8266" and select NodeMCU 1.0 from the list of supported boards. 2. Generate Device ID and Secret Key: - Follow the instructions to generate a Device ID and Secret Key. Note these down as they are needed later. 3. Install the Arduino IoT Cloud Library: - Open the Arduino IDE and install the `ArduinoIoTCloud` and `Arduino_ConnectionHandler` libraries via the Library Manager. Step 3: Write the Code 1. Set Up the Sketch: - Open a new sketch in the Arduino IDE. - Include the necessary libraries at the beginning of your sketch: #include "thingProperties.h" 2. Define the LED Pin: - Define the pin where the LED is connected (e.g., D2 on NodeMCU): const int ledPin = D2; 3. Setup Function: - Initialize the LED pin and IoT Cloud connection: void setup() { // Initialize the serial and wait for the port to open: Serial.begin(9600); delay(1500); initProperties(); // Connect to Arduino IoT Cloud ArduinoCloud.begin(ArduinoIoTPreferredConnection); // Initialize LED pin pinMode(ledPin, OUTPUT); // Sync initial state ArduinoCloud.addCallback(ArduinoIoTPreferredCallback); } 4. Loop Function: - Use the loop function to keep the connection active: void loop() { ArduinoCloud.update(); } 5. Callback Function: - Create a function to handle the LED control: void onLedChange() { digitalWrite(ledPin, ledState); } Step 4: Connect and Upload 1. Connect NodeMCU: - Connect your NodeMCU board to your computer via USB. 2. Upload the Sketch: - Select the correct board and port from the Tools menu in the Arduino IDE. - Click "Upload" to upload the code to your NodeMCU. 3. Configure Network Credentials: - In the `thingProperties.h` file, enter your Wi-Fi SSID and password. const char SSID[] = "your_SSID"; const char PASS[] = "your_PASSWORD"; Step 5: Create a Dashboard 1. Add a Dashboard: - In Arduino IoT Cloud, go to the Dashboards section and create a new dashboard. 2. Add a Widget: - Add a switch widget to control the LED. - Link the widget to the `ledState` variable. 3. Control Your LED: - Use the dashboard switch to turn the LED on and off from anywhere in the world! Project Gallery All Documents : Same codes as described Above. Click Here to Download Download Video Tutorial : Conclusion : By following these steps, you'll successfully control an LED using NodeMCU and Arduino IoT Cloud. This project provides a solid foundation for more complex IoT applications. Also checkout our website for more projects and explore the Skill-Hub by EmbeddedBrew for Enhancing your Skills in IoT. Happy tinkering! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • How to make a music reactive LED Strip using Arduino and Sound sensor

    How to make a music reactive LED Strip using Arduino and Sound sensor How to make a music reactive LED Strip using Arduino and Sound sensor Create a fun project that will react to any sound or music you play Description: Creating a music-reactive light using Arduino and a sound sensor is a fun and engaging project. Here are the steps you can follow to make one: Step 1: Gather Your Materials - Arduino board (such as Arduino Uno) - Sound sensor module - LED strip or individual LEDs - Jumper wires - Breadboard - Power source (battery pack or USB power supply) - Computer with Arduino IDE installed Step 2: Set Up Your Arduino - Connect your Arduino board to your computer via USB cable. - Open the Arduino IDE on your computer. Step 3: Wire the Sound Sensor - Place the sound sensor on the breadboard. - Connect the VCC pin of the sound sensor to the 5V pin on the Arduino. - Connect the GND pin of the sound sensor to the GND pin on the Arduino. - Connect the OUT pin of the sound sensor to any digital pin on the Arduino (e.g., pin 7). Step 4: Wire the LED - Connect the LED strip according to the given Circuit diagram. Step 5: Write the Arduino Code - Write the code in the Arduino IDE to read the analog value from the sound sensor and map it to the brightness of the RGB LED. - Use conditional statements to change the color of the LED based on the intensity of the sound. - You can find sample code online or write your own based on your preferences. Step 6: Upload the Code to Arduino - Verify your code for any errors. - Select the correct board and port in the Arduino IDE. - Upload the code to your Arduino board. Step 7: Test Your Music-Reactive Light - Power up your Arduino board using the power source. - Play some music or make some noise near the sound sensor. - Observe how the RGB LED reacts to the sound. It should change colors and brightness according to the intensity of the sound. Step 8: Customize and Fine-Tune - Experiment with different colors, patterns, and sensitivity levels to customize the behavior of your music-reactive light. - Make any necessary adjustments to the code or wiring to achieve the desired results. Project Gallery All Documents : Download the Below file to run the code. Click Here to Download Download Video Tutorial : Conclusion : With these steps, you can create your own music-reactive light using Arduino and a sound sensor. Have fun experimenting and exploring the world of DIY electronics. Also checkout Skill-Hub by EmbeddedBrew to enhance your skills in IoT and Embedded Systems. comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • How to Monitor DHT Sensor Values on the Blynk App Using Arduino

    Here’s a step-by-step guide to monitor DHT sensor values on the Blynk app using Arduino How to Monitor DHT Sensor Values on the Blynk App Using Arduino Here’s a step-by-step guide to monitor DHT sensor values on the Blynk app using Arduino Description: In this tutorial, we will walk you through the steps to monitor DHT (Digital Humidity and Temperature) sensor values on the Blynk app using an Arduino board. This project allows you to remotely monitor the temperature and humidity data from the DHT sensor on your smartphone. Materials Needed: - Arduino board (e.g., Uno, Nano) - DHT11 or DHT22 sensor - Jumper wires - Breadboard - USB cable - Internet connection - Blynk app installed on your smartphone Step 1: Setting Up the Hardware 1. Connect the DHT Sensor to the Arduino: - DHT11/DHT22 Pin Configuration: - VCC to 5V or 3.3V pin on Arduino - GND to GND pin on Arduino - Data pin to a digital pin on Arduino (e.g., D2) DHT Sensor -> Arduino ------------------------ VCC -> 5V GND -> GND DATA -> D2 2. Wiring Diagram: Ensure you connect the pins correctly to avoid any damage to the sensor or the Arduino. Step 2: Setting Up the Blynk App 1. Download and Install the Blynk App: - Available on Google Play Store (Android) and Apple App Store (iOS). 2. Create a New Project: - Open the Blynk app and create a new project. - Choose your device (e.g., Arduino Uno). - Note the Auth Token sent to your email. 3. Add Widgets: - Add a “Gauge” or “Value Display” widget for temperature. - Add a “Gauge” or “Value Display” widget for humidity. - Configure the widgets to display values from virtual pins (e.g., V5 for temperature and V6 for humidity). Step 3: Programming the Arduino 1. Install the Required Libraries: - Open the Arduino IDE and install the following libraries: - Blynk library - DHT sensor library Sketch -> Include Library -> Manage Libraries... - Search for "Blynk" and install it. - Search for "DHT sensor library" and install it. 2. Write the Arduino Code: - Use the following sample code given below. - Replace `YourWiFiSSID`, `YourWiFiPassword`, and `YourAuthToken` with your actual WiFi credentials and Blynk Auth Token. 3. Upload the Code: - Connect your Arduino to your computer via USB and upload the code. Step 4: Monitoring the Data 1. Open the Blynk App: - Start the project by pressing the play button in the Blynk app. 2. View the Sensor Data: - The temperature and humidity values should now appear on the widgets you configured. - You can now monitor the DHT sensor values in real-time from your smartphone. Project Gallery All Documents : Download the code to get started with the project. Click Here to Download Download Video Tutorial : Conclusion : By following these steps, you have successfully set up a system to monitor DHT sensor values on the Blynk app using an Arduino. This project is a great way to learn about IoT and how to connect sensors to a mobile app for remote monitoring. Also check our website for more projects and explore Skill-Hub by EmbeddedBrew to enhance your Skills. Happy experimenting! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

bottom of page