top of page

Search Results

65 items found for ""

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

    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 Fikirlerinizi Paylaşın İlk yorumu siz yazın.

  • Displaying a custom image on a 0.96-inch OLED display using an Arduino

    Displaying a custom image on a 0.96-inch OLED display using an Arduino In this tutorial, we'll walk you through the process of displaying a custom image on a 0.96-inch OLED display using an Arduino Nano. This project is perfect for adding a personal touch to your embedded systems projects. Description: In this tutorial, we’ll show you how to display a custom image on a 0.96-inch OLED display using an Arduino Nano. OLED displays are known for their bright and clear output, making them perfect for small projects. We will use the SSD1306 OLED driver and the Adafruit GFX library for this project. Materials Needed 1. Arduino Nano 2. 0.96-inch OLED Display (128x64 pixels) 3. Breadboard and Jumper Wires 4. Computer with Arduino IDE Installed 5. Micro USB Cable Step 1: Setting Up the Hardware 1. Connect the OLED Display to the Arduino Nano: - VCC to 5V (or 3.3V depending on your OLED module). - GND to GND. - SCL to A5 (analog pin 5). - SDA to A4 (analog pin 4). Step 2: Install the Required Libraries 1. Install the Adafruit SSD1306 Library: - Open the Arduino IDE. - Go to Sketch > Include Library > Manage Libraries. - Search for Adafruit SSD1306 and install it. 2. Install the Adafruit GFX Library: - Repeat the process above, but search for Adafruit GFX and install it. Step 3: Prepare the Custom Image 1. Create or Find an Image: - Use an image editor to create or select an image that is 128x64 pixels in size. - Convert the image to monochrome (black and white). 2. Convert the Image to Bitmap Format: - Use an online tool like [Image2CPP]( http://javl.github.io/image2cpp/ ) to convert the image to a byte array. - Select Monochrome for image type and set the dimensions to 128x64. - Copy the generated byte array. Step 4: Write the Arduino Code 1. Initialize the OLED Display: - Open the Arduino IDE and create a new sketch. - Include the necessary libraries at the top of your code: Step 5: Upload the Code and Test 1. Connect the Arduino Nano to Your Computer using the micro USB cable. 2. Select the Arduino Nano Board in the Arduino IDE: - Go to Tools > Board > Arduino Nano. - Select the correct Processor (ATmega328P or ATmega328P (Old Bootloader)). - Choose the correct Port. 3. Upload the Code: - Click the Upload button in the Arduino IDE. Step 6: Troubleshooting 1. Check Connections: - Ensure all wires are connected properly. 2. Check Library Installations: - Verify that the Adafruit SSD1306 and Adafruit GFX libraries are installed correctly. 3. Verify the OLED Address: - Some OLED displays use a different I2C address. Ensure the address in `display.begin(SSD1306_SWITCHCAPVCC, 0x3C)` matches your display's address. Common addresses are `0x3C` and `0x3D`. Project Gallery All Documents : Download the code here. Click Here to Download Download Video Tutorial : Conclusion : With these steps, you should be able to display a custom image on a 0.96-inch OLED display using an Arduino Nano. This project is a great way to learn about interfacing displays with microcontrollers and can serve as a foundation for more complex projects. comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • How to make a Short range Radar using Arduino and Processing

    How to make a Short range Radar using Arduino and Processing Build a Radar System with Arduino, Servo Motor, Ultrasonic Sensor, and Processing Software Description: Here’s a detailed guide on how to create a radar system using Arduino, a In this project, we'll create a simple radar system using an Arduino, a servo motor, an ultrasonic sensor, and Processing software. This radar system will scan its surroundings and display the detected objects on a computer screen. Materials Needed - Arduino board (e.g., Arduino Uno) - Servo motor - Ultrasonic sensor (e.g., HC-SR04) - Breadboard and jumper wires - USB cable for Arduino - Computer with Arduino IDE and Processing software installed Step 1: Wiring the Components 1. Connect the Ultrasonic Sensor: - VCC to Arduino 5V - GND to Arduino GND - Trig to Arduino digital pin 9 - Echo to Arduino digital pin 10 2. Connect the Servo Motor: - VCC (usually red) to Arduino 5V - GND (usually black or brown) to Arduino GND - Signal (usually yellow or white) to Arduino digital pin 11 Step 2: Arduino Code 1. Open the Arduino IDE and create a new sketch. 2. Copy and paste the following code into the sketch: 3. Upload the code to your Arduino board. 4. Run the Processing sketch. Step 3: Testing and Calibration 1. Place the radar system in an open area where it can scan for objects. 2. Power up the Arduino and make sure it is connected to the computer. 3. Run the Processing sketch to visualize the radar data. Project Gallery All Documents : Step 1: Run Arduino Code Step 2: Run Processing Code Click Here to Download Download Video Tutorial : Conclusion : You have successfully built a radar system using Arduino, a servo motor, an ultrasonic sensor, and Processing software. This project can be a great foundation for more advanced radar and mapping systems. Experiment with different setups and improvements to further enhance your radar’s capabilities. Also check our website for other projects and explore Skill-Hub by EmbeddedBrew to enhance your embedded skills. comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • Getting started with Keypad module and Arduino Nano

    Getting started with Keypad module and Arduino Nano Here are the steps to get started with a Keypad module and an Arduino Nano to display values on the Serial Monitor Description: In this tutorial, we will learn how to interface a keypad module with an Arduino Nano and display the pressed keys on the Serial Monitor. Keypads are a simple and effective way to add input functionality to your Arduino projects. Components Needed - Arduino Nano - Keypad module (4x4 or 4x3) - Jumper wires - Breadboard (optional) - USB cable to connect Arduino Nano to the computer Step 1: Connect the Keypad to the Arduino Nano 1. Identify the Keypad Pins: Most keypads have a set of row and column pins. A 4x4 keypad typically has 8 pins (4 for rows and 4 for columns), while a 4x3 keypad has 7 pins (4 for rows and 3 for columns). 2. Connect the Keypad Pins to Arduino: Use jumper wires to connect the keypad pins to the Arduino Nano. Here's an example connection for a 4x4 keypad: - Keypad Pin 1 (Row 1) to Arduino Digital Pin 2 - Keypad Pin 2 (Row 2) to Arduino Digital Pin 3 - Keypad Pin 3 (Row 3) to Arduino Digital Pin 4 - Keypad Pin 4 (Row 4) to Arduino Digital Pin 5 - Keypad Pin 5 (Column 1) to Arduino Digital Pin 6 - Keypad Pin 6 (Column 2) to Arduino Digital Pin 7 - Keypad Pin 7 (Column 3) to Arduino Digital Pin 8 - Keypad Pin 8 (Column 4) to Arduino Digital Pin 9 Step 2: Install the Keypad Library 1. Open the Arduino IDE: 2. Go to Library Manager: Navigate to `Sketch` -> `Include Library` -> `Manage Libraries`. 3. Search for Keypad Library: In the Library Manager, type "Keypad" in the search bar. 4. Install the Library: Find the "Keypad by Mark Stanley, Alexander Brevig" and click "Install". Step 3: Write the Arduino Code 1. Open a New Sketch in Arduino IDE: 2. Include the Keypad Library: #include Step 4: Upload and Test the Code 1. Connect the Arduino Nano to your Computer: Use the USB cable. 2. Select the Correct Board and Port: Go to `Tools` -> `Board` -> `Arduino Nano`, and then `Tools` -> `Port` to select the appropriate COM port. 3. Upload the Sketch: Click the upload button in the Arduino IDE. 4. Open the Serial Monitor: Navigate to `Tools` -> `Serial Monitor` and set the baud rate to 9600. Step 5: Press Keys on the Keypad With everything set up, press the keys on the keypad. You should see the corresponding key values displayed on the Serial Monitor. Project Gallery All Documents : Download the below code to get started with Keypad module. Click Here to Download Download Video Tutorial : Conclusion : You have successfully interfaced a keypad with an Arduino Nano and displayed the key presses on the Serial Monitor. This basic setup can be expanded to create more complex projects, such as password input systems, menu navigation, and more. Also check our website for more projects and explore the 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. 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 分享您的想法 率先撰寫留言。

  • Learn controlling LED Lights on a webserver

    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 Share Your Thoughts Be the first to write a comment.

  • Getting Started with ESP32 Cam Module and Solve Fatal Error

    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.

  • Using NodeMCU as a Client & Server Application

    Using NodeMCU as a Client & Server Application Learn to use NodeMCU in Server mode and Client mode. Description: The NodeMCU is a popular development board that makes it easy to connect to Wi-Fi and create IoT applications. In this guide, we’ll walk through the steps to set up your NodeMCU as both a server and a client using the Arduino IDE. Prerequisites: - NodeMCU board - USB cable - Arduino IDE installed - Wi-Fi network Step 1: Set Up the Arduino IDE 1. Install the NodeMCU Board Package: - Open the Arduino IDE. - Go to `File` -> `Preferences`. - In the “Additional Board Manager URLs” field, add: ` http://arduino.esp8266.com/stable/package_esp8266com_index.json` . - Go to `Tools` -> `Board` -> `Boards Manager`. - Search for `esp8266` and install the latest version. 2. Select the NodeMCU Board: - Go to `Tools` -> `Board` and select `NodeMCU 1.0 (ESP-12E Module)`. Step 2: Set Up NodeMCU as a Server 1. Open the Example Sketch: - Go to `File` -> `Examples` -> `ESP8266WebServer` -> `HelloServer`. 2. Modify the Sketch: - Update the `ssid` and `password` variables with your Wi-Fi credentials. const char* ssid = "your_SSID"; const char* password = "your_PASSWORD"; 3. Upload the Sketch: - Connect your NodeMCU to your computer using a USB cable. - Select the correct port under `Tools` -> `Port`. - Click the upload button. 4. Monitor the Serial Output: - Open the Serial Monitor (`Tools` -> `Serial Monitor`) and set the baud rate to `115200`. - Once connected, the Serial Monitor will display the IP address of the NodeMCU. 5. Access the Server: - Open a web browser and enter the IP address displayed in the Serial Monitor. - You should see a message saying "Hello from ESP8266!". Step 3: Set Up NodeMCU as a Client 1. Open the Example Sketch: - Go to `File` -> `Examples` -> `ESP8266WiFi` -> `WiFiClient`. 2. Modify the Sketch: - Update the `ssid` and `password` variables with your Wi-Fi credentials. - Set the server's IP address and port (if you're using the previous server example, use the NodeMCU’s IP and port 80). const char* ssid = "your_SSID"; const char* password = "your_PASSWORD"; const char* host = "server_IP_address"; const uint16_t port = 80; 3. Upload the Sketch: - Connect your NodeMCU to your computer. - Select the correct port and upload the sketch. 4. Monitor the Serial Output: - Open the Serial Monitor and set the baud rate to `115200`. - The NodeMCU will attempt to connect to the server and you should see the response from the server in the Serial Monitor. Step 4: Testing and Further Development - Testing: - With the server running, reset the client NodeMCU and observe the communication between the server and client in the Serial Monitor. - Further Development: - Explore more examples and libraries to expand your IoT projects. - Modify the server to handle different types of requests. - Use the client to send sensor data to the server. Project Gallery All Documents : Use the codes from the eamples as mentioned above. Click Here to Download Download Video Tutorial : Conclusion : By following these steps, you've successfully set up your NodeMCU as both a server and a client. This setup forms the foundation for creating more complex IoT applications. For additional projects and resources, check out our website and Skill-Hub by EmbeddedBrew. Happy coding! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • How to Control a Servo Using a Slider on a Web Server with NodeMCU

    How to Control a Servo Using a Slider on a Web Server with NodeMCU Here’s a step-by-step guide to control a servo motor using a slider on a web server with NodeMCU Description: In this tutorial, we'll show you how to control a servo motor using a slider on a web server hosted by a NodeMCU. This project combines IoT and web technologies to allow you to control the servo's position from any device with a web browser. Let's get started! Materials Needed - NodeMCU (ESP8266) - Servo Motor (e.g., SG90) - Breadboard and jumper wires - Power supply (e.g., USB cable for NodeMCU) - Micro USB cable - Computer with Arduino IDE installed Step 1: Set Up the Arduino IDE 1. Install the ESP8266 Board: - Open Arduino IDE. - Go to `File` > `Preferences`. - In the "Additional Board Manager URLs" field, add: ` http://arduino.esp8266.com/stable/package_esp8266com_index.json` . - Go to `Tools` > `Board` > `Boards Manager`. - Search for `ESP8266` and click "Install". 2. Install Required Libraries: - Go to `Sketch` > `Include Library` > `Manage Libraries`. - Search for `ESP8266WiFi` and install it. - Search for `Servo` and install it. Step 2: Connect the Servo Motor to NodeMCU 1. Connections: - Connect the servo motor's power pin (usually red) to the 3.3V pin on the NodeMCU. - Connect the ground pin (usually black or brown) to the GND pin on the NodeMCU. - Connect the signal pin (usually yellow or white) to the D1 (GPIO 5) pin on the NodeMCU. Step 3: Write the Code 1. Create the Web Server Code: 2. Upload the Code: - Select your board and port from `Tools` > `Board` > `NodeMCU 1.0 (ESP-12E Module)` and `Tools` > `Port`. - Click the upload button to flash the code to the NodeMCU. Step 4: Test the Project 1. Connect to the Web Server: - Open the Serial Monitor in Arduino IDE (set baud rate to 115200) to see the IP address assigned to your NodeMCU by your WiFi network. - Open a web browser and enter the IP address in the address bar. 2. Control the Servo: - You should see a slider on the webpage. Move the slider to control the servo's position. - The servo should move according to the slider value, allowing you to control its angle from 0 to 180 degrees. Project Gallery All Documents : Download and Run the below code. Click Here to Download Download Video Tutorial : Conclusion : You have successfully created a web server on the NodeMCU to control a servo motor using a slider. This project demonstrates the power of combining IoT and web technologies for remote control applications. Explore more projects and continue enhancing your skills with EmbeddedBrew! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • Getting Started with NodeMCU ESP8266 Module

    Getting Started with NodeMCU ESP8266 Module Download and Install NodeMCU ESP8266 module for IoT Applications. Description: NodeMCU is a popular open-source IoT platform that uses the ESP8266 Wi-Fi module. Here’s a simple guide to help you get started with NodeMCU using the Arduino IDE. Step 1: Install Arduino IDE 1. Download Arduino IDE: - Go to the [Arduino IDE download page]( https://www.arduino.cc/en/software ). - Download the version compatible with your operating system (Windows, macOS, Linux). 2. Install Arduino IDE: - Follow the installation instructions specific to your operating system. - Once installed, open the Arduino IDE. Step 2: Set Up Arduino IDE for NodeMCU 1. Add ESP8266 Board Manager URL: - Open Arduino IDE. - Go to `File` > `Preferences`. - In the “Additional Board Manager URLs” field, enter the following URL: `http://arduino.esp8266.com/stable/package_esp8266com_index.json`. - Click `OK`. 2. Install ESP8266 Board Package: - Go to `Tools` > `Board` > `Boards Manager`. - Search for “esp8266” in the Boards Manager window. - Click on “Install” for the “esp8266” by ESP8266 Community. 3. Select NodeMCU Board: - Go to `Tools` > `Board`. - Scroll down and select “NodeMCU 1.0 (ESP-12E Module)”. Step 3: Connect NodeMCU to Your Computer 1. Connect NodeMCU: - Use a USB cable to connect your NodeMCU to your computer. 2. Install USB Driver (if necessary): - For Windows, you may need to install the CH340 USB driver. Download it from [here]( https://sparks.gogo.co.nz/ch340.html ). - For macOS, the driver usually installs automatically, but if not, it can be downloaded from the same link. Step 4: Upload Your First Sketch 1. Open Blink Example: - Go to `File` > `Examples` > `ESP8266` > `Blink`. 2. Select the Right Port: - Go to `Tools` > `Port` and select the COM port that your NodeMCU is connected to. 3. Upload the Sketch: - Click on the upload button (right arrow) in the Arduino IDE. - Wait for the code to compile and upload. You should see the onboard LED blinking if the upload is successful. Step 5: Explore More Projects Now that you have successfully uploaded your first sketch, you can explore more advanced projects. Here are some ideas to get you started: - Wi-Fi Controlled LED: Control an LED using a web interface. - Temperature and Humidity Monitoring: Use DHT11/DHT22 sensors to monitor environmental conditions. - Home Automation: Create a simple home automation system using MQTT. Project Gallery All Documents : Use the Below code for Practice #define LED D0 // Led in NodeMCU at pin GPIO16 (D0). void setup() { pinMode(LED, OUTPUT); // LED pin as output. } void loop() { digitalWrite(LED, HIGH);// turn the LED off.(Note that LOW is the voltage level but actually //the LED is on; this is because it is acive low on the ESP8266. delay(1000); // wait for 1 second. digitalWrite(LED, LOW); // turn the LED on. delay(1000); // wait for 1 second. } Click Here to Download Download Video Tutorial : Conclusion : For more projects and tutorials, visit our website. Don’t forget to check out Skill-Hub by EmbeddedBrew for a comprehensive range of courses on embedded systems. comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • How to Create a Laser Security System Using a BC547 Transistor

    How to Create a Laser Security System Using a BC547 Transistor Here's a detailed guide on how to create a laser security system using a BC547 transistor. This project will involve using a laser beam to create a tripwire that triggers an alarm when interrupted. Description: Creating a laser security system is an exciting project that combines basic electronics with a bit of creativity. Follow these steps to build your own laser security system using a BC547 transistor. Materials Needed: - Laser module - LDR (Light Dependent Resistor) - BC547 NPN transistor - Resistors (10kΩ and 330Ω) - Buzzer or alarm - 9V battery and battery clip - Breadboard and jumper wires Step-by-Step Guide: Step 1: Understanding the Circuit The laser security system works by pointing a laser beam at an LDR. The LDR's resistance changes with light intensity. When the laser beam is interrupted, the change in resistance is detected, triggering the alarm. Step 2: Setting Up the Laser and LDR 1. Place the Laser Module: Position the laser module so that it points directly at the LDR. Secure it in place to ensure it doesn't move. 2. Place the LDR: Place the LDR on the breadboard in the path of the laser beam. Step 3: Building the Circuit 1. Connect the LDR and Resistor: Connect one end of the LDR to the positive rail of the breadboard. Connect the other end to one end of the 10kΩ resistor. 2. Connect to Ground: Connect the free end of the 10kΩ resistor to the ground rail of the breadboard. 3. Voltage Divider: The junction between the LDR and the 10kΩ resistor will act as a voltage divider, providing a varying voltage based on the LDR's resistance. Step 4: Connecting the BC547 Transistor 1. Base Connection: Connect the junction between the LDR and the 10kΩ resistor to the base of the BC547 transistor through a 330Ω resistor. 2. Collector Connection: Connect the collector of the BC547 transistor to the negative terminal of the buzzer or alarm. 3. Emitter Connection: Connect the emitter of the BC547 transistor to the ground rail of the breadboard. 4. Power the Buzzer: Connect the positive terminal of the buzzer to the positive rail of the breadboard. Step 5: Powering the Circuit 1. Connect the Battery: Attach the 9V battery to the breadboard using a battery clip. Connect the positive terminal to the positive rail and the negative terminal to the ground rail. Step 6: Testing the System 1. Align the Laser: Make sure the laser beam is accurately pointing at the LDR. 2. Activate the Laser: Turn on the laser module. 3. Monitor the Buzzer: The buzzer should be silent when the laser beam is hitting the LDR. 4. Interrupt the Beam: Block the laser beam with your hand or an object. The buzzer should sound, indicating the alarm is triggered. Troubleshooting Tips: - No Alarm Sound: Check all connections to ensure they are secure. Verify the battery has sufficient charge. - Constant Alarm: Ensure the laser beam is correctly aligned with the LDR and not interrupted. - Adjusting Sensitivity: You can tweak the resistor values to adjust the sensitivity of the LDR circuit. Project Gallery All Documents : There are no Files to download Click Here to Download Download Video Tutorial : Conclusion : You've successfully built a basic laser security system using a BC547 transistor! This project not only helps in understanding basic electronics but also provides a foundation for more advanced security systems. Experiment with different configurations and explore additional components to enhance your system. For more exciting projects and learning opportunities, visit our website and check out Skill-Hub by EmbeddedBrew. 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 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.

bottom of page