Search Results
Search this site
65 results found with an empty search
- 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 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. 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 (1) Write a comment Write a comment Sort by: Newest Raju Jan 26 There is no Breadboard? Like Reply
- Projects | EmbeddedBrew
Checkout these cool projects on different devices. Checkout These Catagories Circuit based Projects View Projects NodeMCU based Projects View Projects Raspberry-pi baseed Projects View Projects Arduino Based Projects View Projects ESP32 baseed Projects View Projects Miscellaneous Projects View Projects Play Video Play Video 00:27 EmbeddedBrew #arduinoproject #embeddedbrew Play Video Play Video 09:16 EmbeddedBrew Getting Started with a Dot Matrix Display || EmbeddedBrew || 2025 Welcome to EmbeddedBrew! In this video, we dive into the fascinating world of electronics with a comprehensive, step-by-step guide on how to create your very own electronics project. Whether you're a beginner or an experienced hobbyist, this tutorial is designed to help you bring your ideas to life. Blog : https://www.embeddedbrew.com/post/light-it-up-getting-started-with-dot-matrix-display-and-arduino-nano Stay tuned for next week's episode and join the conversation by leaving your comments below. We love hearing from you! 🔔 Don't forget to like, share, and subscribe to our channel! Your support helps us bring you the best tech content every week. Facebook - My FB page - https://www.facebook.com/Rudradiycrafts Twitter - My Twitter _ https://twitter.com/RudraSwarup99 Instagram - My ID - https://www.instagram.com/embedded.brew/ YouTube - Primary Channel - https://www.youtube.com/channel/UC5IzT-2CGZnPQhUKgmu5VXQ Second Channel - https://www.youtube.com/channel/UCDHcPoREcKbXRRB3VGVlohw So friends Thank you for watching EmbeddedBrew Ignite Curiosity. #EmbeddedBrew #dotmatrix #arduino Play Video Play Video 00:52 EmbeddedBrew #GY30.#TechReels #ArduinoProjects #LightSensor #GY30Sensor #IOTIndia #Embeddedbrew Play Video Play Video 12:55 EmbeddedBrew Getting Started with GY-30 Light Sensor Module || EmbeddedBrew || 2025 Welcome to EmbeddedBrew! In this video, we dive into the fascinating world of electronics with a comprehensive, step-by-step guide on how to create your very own electronics project. Whether you're a beginner or an experienced hobbyist, this tutorial is designed to help you bring your ideas to life. Blog : https://www.embeddedbrew.com/post/light-up-with-intelligence-getting-started-with-gy-30-light-sensor-and-arduino-nano-to-control-an-l Stay tuned for next week's episode and join the conversation by leaving your comments below. We love hearing from you! 🔔 Don't forget to like, share, and subscribe to our channel! Your support helps us bring you the best tech content every week. Facebook - My FB page - https://www.facebook.com/Rudradiycrafts Twitter - My Twitter _ https://twitter.com/RudraSwarup99 Instagram - My ID - https://www.instagram.com/embedded.brew/ YouTube - Primary Channel - https://www.youtube.com/channel/UC5IzT-2CGZnPQhUKgmu5VXQ Second Channel - https://www.youtube.com/channel/UCDHcPoREcKbXRRB3VGVlohw So friends Thank you for watching EmbeddedBrew Ignite Curiosity. #TuesdayTechBytes #EmbeddedBrew Play Video Play Video 06:00 EmbeddedBrew Alert System using Door Sensor || EmbeddedBrew Welcome to EmbeddedBrew! In this video, we dive into the fascinating world of electronics with a comprehensive, step-by-step guide on how to create your very own electronics project. Whether you're a beginner or an experienced hobbyist, this tutorial is designed to help you bring your ideas to life. Blog : https://www.embeddedbrew.com/post/unlocking-security-build-your-own-led-and-buzzer-alert-system-with-arduino-nano-door-sensor Stay tuned for next week's episode and join the conversation by leaving your comments below. We love hearing from you! 🔔 Don't forget to like, share, and subscribe to our channel! Your support helps us bring you the best tech content every week. Facebook - My FB page - https://www.facebook.com/Rudradiycrafts Twitter - My Twitter _ https://twitter.com/RudraSwarup99 Instagram - My ID - https://www.instagram.com/embedded.brew/ YouTube - Primary Channel - https://www.youtube.com/channel/UC5IzT-2CGZnPQhUKgmu5VXQ Second Channel - https://www.youtube.com/channel/UCDHcPoREcKbXRRB3VGVlohw So friends Thank you for watching EmbeddedBrew Ignite Curiosity. #TuesdayTechBytes #EmbeddedBrew #doorsensor Play Video Play Video 01:00 EmbeddedBrew #embeddedsystems #robotics #techinnovation #smartdoor #smartsecurity #halloween Play Video Play Video 12:25 EmbeddedBrew Face and Eye Detection Using ESP32-Cam || EmbeddedBrew Welcome to EmbeddedBrew! In this video, we dive into the fascinating world of electronics with a comprehensive, step-by-step guide on how to create your very own electronics project. Whether you're a beginner or an experienced hobbyist, this tutorial is designed to help you bring your ideas to life. Blog : https://www.embeddedbrew.com/post/face-detection-using-esp32-cam-and-python-on-thony-python-ide Stay tuned for next week's episode and join the conversation by leaving your comments below. We love hearing from you! 🔔 Don't forget to like, share, and subscribe to our channel! Your support helps us bring you the best tech content every week. Facebook - My FB page - https://www.facebook.com/Rudradiycrafts Twitter - My Twitter _ https://twitter.com/RudraSwarup99 Instagram - My ID - https://www.instagram.com/embedded.brew/ YouTube - Primary Channel - https://www.youtube.com/channel/UC5IzT-2CGZnPQhUKgmu5VXQ Second Channel - https://www.youtube.com/channel/UCDHcPoREcKbXRRB3VGVlohw So friends Thank you for watching EmbeddedBrew Ignite Curiosity. #EmbeddedBrew #esp32 #facedetection Play Video Play Video 00:31 EmbeddedBrew #embeddedbrew #arduinoproject #python #ai #artificialintelligence #facerecognition #eyerecognition Play Video Play Video 10:00 EmbeddedBrew DIY Mobile Controlled Spy Car using ESP32-Cam || EmbeddedBrew Welcome to EmbeddedBrew! In this video, we dive into the fascinating world of electronics with a comprehensive, step-by-step guide on how to create your very own electronics project. Whether you're a beginner or an experienced hobbyist, this tutorial is designed to help you bring your ideas to life. Blog : https://www.embeddedbrew.com/post/building-a-webserver-controlled-spy-car-with-esp32-cam-a-step-guide Stay tuned for next week's episode and join the conversation by leaving your comments below. We love hearing from you! 🔔 Don't forget to like, share, and subscribe to our channel! Your support helps us bring you the best tech content every week. Facebook - My FB page - https://www.facebook.com/Rudradiycrafts Twitter - My Twitter _ https://twitter.com/RudraSwarup99 Instagram - My ID - https://www.instagram.com/embedded.brew/ YouTube - Primary Channel - https://www.youtube.com/channel/UC5IzT-2CGZnPQhUKgmu5VXQ Second Channel - https://www.youtube.com/channel/UCDHcPoREcKbXRRB3VGVlohw So friends Thank you for watching EmbeddedBrew Ignite Curiosity. #embeddedbrew #esp32 #spycar Play Video Play Video 10:33 EmbeddedBrew How to do display Custom Animation on OLED !!! Welcome to EmbeddedBrew! In this video, we dive into the fascinating world of electronics with a comprehensive, step-by-step guide on how to create your very own electronics project. Whether you're a beginner or an experienced hobbyist, this tutorial is designed to help you bring your ideas to life. Blog : https://www.embeddedbrew.com/post/how-to-display-custom-animations-on-a-0-96-oled-with-arduino-nano Arduino Course : https://www.embeddedbrew.com/challenge-page/a52400b0-d2dd-4b9b-8f84-d22555a487e5 Stay tuned for next week's episode and join the conversation by leaving your comments below. We love hearing from you! 🔔 Don't forget to like, share, and subscribe to our channel! Your support helps us bring you the best tech content every week. Facebook - My FB page - https://www.facebook.com/Rudradiycrafts Twitter - My Twitter _ https://twitter.com/RudraSwarup99 Instagram - My ID - https://www.instagram.com/embedded.brew/ YouTube - Primary Channel - https://www.youtube.com/channel/UC5IzT-2CGZnPQhUKgmu5VXQ Second Channel - https://www.youtube.com/channel/UCDHcPoREcKbXRRB3VGVlohw So friends Thank you for watching EmbeddedBrew Ignite Curiosity. #embeddedbrew #oleddisplay #animation Play Video Play Video 00:54 EmbeddedBrew #SpyCar #EmbeddedSystems #TechInnovation #DIYTech #EmbeddedBrew #wificar Play Video Play Video 01:00 EmbeddedBrew The future of Fire Fighting is here #firefighter #robot #future
- Getting Started with NodeMCU ESP8266 Module
Download and Install NodeMCU ESP8266 module for IoT Applications. 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.
- Getting Started with a Piezoelectric Disc and Arduino
Getting Started with a Piezoelectric Disc and Arduino Getting Started with a Piezoelectric Disc and Arduino This blog post provides a step-by-step guide to getting started with a piezoelectric disc and Arduino, making it easy for beginners to follow and understand. Description: Are you ready to dive into the world of electronics with a simple yet fascinating project? In this guide, we'll show you how to use a piezoelectric disc with an Arduino. A piezoelectric disc can be used as a sensor to detect vibrations or as an actuator to produce sound. Let's get started! Materials Needed: - Arduino board (e.g., Arduino Uno) - Piezoelectric disc - Breadboard - Jumper wires - 1MΩ resistor (optional, for better signal quality) Step 1: Understand the Piezoelectric Disc A piezoelectric disc generates a small voltage when it experiences mechanical stress (like tapping or vibration). Conversely, applying a voltage to it can produce sound. In this project, we’ll use it as a sensor to detect vibrations. Step 2: Connect the Piezoelectric Disc to the Arduino 1. Wiring Setup: - Positive Lead (Red Wire): Connect the positive lead of the piezo disc to an analog input pin on the Arduino (e.g., A0). - Negative Lead (Black Wire): Connect the negative lead to the ground (GND) on the Arduino. 2. Optional Resistor (for stability): - Connect a 1MΩ resistor between the analog input pin (A0) and ground (GND). This helps to stabilize the signal from the piezo disc. Here’s a simple wiring diagram: Piezo Disc + ------ A0 (Analog Input) Piezo Disc - ------ GND (Ground) 1MΩ resistor -----A0 to GND Step 3: Test Your Setup 1. Upload the Code: Connect your Arduino to your computer and upload the code using the Arduino IDE. 2. Open Serial Monitor: Open the Serial Monitor (Tools > Serial Monitor) in the Arduino IDE. 3. Observe the Readings: Tap or gently knock near the piezo disc and observe the values printed in the Serial Monitor. Higher values indicate stronger vibrations. Step 4: Explore and Experiment Now that you have a basic setup, here are a few ideas to expand your project: - Sound Alarm: Use the piezo disc to trigger an alarm or buzzer when vibrations exceed a certain threshold. - Data Logging: Record the vibration data over time using an SD card module. - Interactive Projects: Incorporate the piezo disc into interactive art or DIY musical instruments. Project Gallery All Documents : Download the code to explore input and output applications of Piezo Sensor. Click Here to Download Download Video Tutorial : Conclusion : Using a piezoelectric disc with an Arduino is a great way to get started with electronics and sensor projects. With just a few components, you can create a variety of applications. Explore more projects on our website and continue your learning journey with Skill-Hub by EmbeddedBrew, where you can develop more skills in embedded systems. Happy building! 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 Share Your Thoughts Be the first to write a comment.
- RaspberryPiProjects
Raspberry-Pi Projects Getting Started with Raspberry-Pi Pico In this topic we are going to unbox an Raspberry-Pi Pico and get to know more about it. Read More Load More
- 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.
- Student Partner Program | EmbeddedBrew
Page Title This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors. Click Here Section Title Small Title This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors. Small Title This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors. Small Title This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors. Small Title This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors. Section Title This is a Paragraph. Click on "Edit Text" or double click on the text box to start editing the content and make sure to add any relevant details or information that you want to share with your visitors.
- Crew Terms & Conditions | EmbeddedBrew
Know about the terms and conditions for using the site. < Back Crew Terms and Conditions Sheet This Terms and Conditions Deed is made and entered into on the date mentioned in the Crew Information Sheet, by and between EmbeddedBrew Innovations, a sole proprietorship duly incorporated under the laws of India, with its registered office at Old Town, Bhubaneswar, Odisha (hereinafter referred to as the "Company"), and the individual identified in the Crew Information Sheet, (hereinafter referred to as the "Crew"). NOW, THEREFORE, in consideration of the mutual promises and terms and conditions contained herein, the parties hereto agree as follows: 1. Scope of Work The Crew agrees to provide the services, as mentioned in the Assignment Information Sheet. The Crew shall perform the work as per the agreed timeline, and quality standards specified by the Company. The Company may request additional services, which shall be mutually agreed upon in writing, including any further compensation. 2. Compensation The Crew shall be compensated on a per Project/ per Day/ per Month basis, at a rate, as mentioned in the Assignment Information Sheet. Payment shall be made upon completion of the agreed milestones or deliverables and approval by the Company. The Crew shall submit an invoice detailing the services rendered and the corresponding payment due. Payment shall be made within 15 days of receipt of the invoice. 3. Work Hours, Holidays, and Absence The Crew agrees to adhere to the standard working hours mutually agreed upon with the Company, that is according to the completion of the project. The Crew is entitled to observe public holidays as per the Company’s holiday schedule. In case of absence without prior notice or approval, the Company reserves the right to deduct payment on a pro-rata, per-day basis, calculated as a proportion of the agreed project or Daily work rate. Consistent absences may lead to a review of the agreement. 4. Payment Cancellation Terms In the event of termination with or without prior notice by either party, or if termination occurs due to misconduct, breach of contract, or any other justifiable cause, the Company reserves the right to cancel any pending payments for work not performed. if the project has not yet commenced by the time of termination, no payment will be due. The Crew will only be entitled to the compensation earned up until the date of termination, and any additional compensation will not be provided. 5. Non-Compete & Non-Solicitation The Crew agrees not to engage in or assist any business that competes with the Company during Assignment and for a period of 6 months after termination. The Crew further agrees not to solicit the Company’s clients, customers, or employees for personal gain during this period. 6. Profit Sharing The Crew shall not be entitled to any share in the Company’s profits unless specifically agreed upon in a separate written agreement. The Crew’s compensation is limited to the fees mentioned in this deed, and they shall have no claim to any other financial benefits, assets, or revenues of the Company. 7. Confidentiality The Crew agrees to maintain the confidentiality of all proprietary information, trade secrets, business plans, and any other confidential information disclosed by the Company. This confidentiality obligation shall survive the termination of this agreement and continue indefinitely. 8. Intellectual Property All work products, including but not limited to designs, content, software, and documentation created by the Crew in the course of their work, shall be the exclusive property of the Company. The Crew shall assign all rights, title, and interest in any intellectual property created during the engagement to the Company. 9. Access of Social Media Platforms The Crew acknowledges that all social media platforms, including accounts, pages, and profiles associated with the business, are the exclusive property of the Company. The Crew shall not claim any ownership, control, or rights to these platforms and shall not transfer, modify, or access these platforms without the express written consent of the Company. 10. Self-Undertaking for Mishappenings The Crew hereby acknowledges and agrees to take full responsibility for any and all mishappenings, accidents, or errors occurring during the course of the project that arise from their actions, negligence, or failure to meet agreed-upon standards. The Crew waives any right to seek compensation or damages from the Company for such incidents, thereby affirming their understanding and acceptance of this self-undertaking throughout the Assignment. 11. Independent Contractor Status The Crew is an independent contractor and not a permanent employee, partner, or agent of the Company. The Crew is solely responsible for their taxes, insurance, and any other liabilities arising from their work. The Crew shall have no authority to bind the company or enter into agreements on behalf of the Company without the express written consent of the Company. 12. Termination Either party may terminate this agreement by providing 15 days written notice to the other party. Upon termination, the Crew shall be paid for any work completed up to the date of termination, and all work products shall be delivered to the Company. The Company reserves the right to terminate this agreement immediately for cause, including but not limited to breach of confidentiality, non-performance, or violation of this deed’s terms. 13. Dispute Resolution Any disputes arising out of or in connection with this deed shall be resolved through amicable negotiations between the parties. If the dispute cannot be resolved through negotiation, it shall be referred to arbitration in accordance with the Arbitration and Conciliation Act, 1996. 14. Miscellaneous Amendments: Any amendments or modifications to this deed must be made in writing and signed by both parties. Entire Agreement: This deed constitutes the entire agreement between the parties and supersedes any prior agreements or understandings, whether oral or written. Thank you for your attention to these details. We are excited to have you as part of our team and look forward to a successful collaboration! Crew Info Form
- Webinar Page | EmbeddedBrew
Attend our free webinars and stay updated with new Techs. WebinarChannel Watch Now Share Whole Channel This Video Facebook Twitter Pinterest Tumblr Copy Link Link Copied Share Channel Info Sign in
- NodeMCUProjects
NodeMCU Projects 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. Read More 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 Read More 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 Read More Getting Started with New Blynk 2.0 with NodeMCU to control LED over the Internet here's a step-by-step guide to get started with Blynk 2.0 and NodeMCU to control an LED Read More 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 Read More 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. Read More 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 Read More Learn controlling LED Lights on a webserver You will learn to create a webserver and control a LED using it. Read More Learn to find the IP Address of NodeMCU In this section learn to find the IP Address of a NodeMCU on the serial monitor of Arduino IDE Read More Load More






