top of page

Search Results

65 items found for ""

  • Getting Started with Raspberry-Pi Pico

    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. Description: The Raspberry Pi Pico is a versatile microcontroller board that’s perfect for a variety of projects. Follow these steps to get started with your Pico on a Windows PC. Step 1: Gather Your Materials - Raspberry Pi Pico board - Micro-USB cable (for power and data transfer) - Windows PC - Breadboard and jumper wires (optional, for experiments) - LEDs, resistors, sensors (optional, for projects) Step 2: Install the Raspberry Pi Pico Software 1. Download and Install Thonny IDE: - Visit the [Thonny website]( https://thonny.org/ ) and download the installer for Windows. - Run the installer and follow the prompts to complete the installation. 2. Download MicroPython UF2 File: - Visit the [Raspberry Pi Pico MicroPython page]( https://www.raspberrypi.com/documentation/microcontrollers/micropython.html ). - Download the MicroPython UF2 file from the official website. Step 3: Prepare the Raspberry Pi Pico 1. Connect the Pico to Your PC: - Hold down the BOOTSEL button on the Pico. - While holding the button, connect the Pico to your PC using the micro-USB cable. - Release the BOOTSEL button once the Pico is connected. Your Pico should appear as a removable drive named RPI-RP2 on your computer. 2. Copy the MicroPython UF2 File: - Open the RPI-RP2 drive on your PC. - Drag and drop the MicroPython UF2 file you downloaded earlier onto the RPI-RP2 drive. - The Pico will automatically reboot, and the drive will disappear from your file explorer. Step 4: Configure Thonny IDE 1. Open Thonny IDE: - Launch the Thonny IDE from your Start menu. 2. Select the Interpreter: - Go to Tools > Options and select the Interpreter tab. - Choose MicroPython (Raspberry Pi Pico) from the drop-down menu. - Ensure the correct COM port is selected for your Pico (you can find this in the Device Manager under Ports). Step 5: Write and Run Your First Program 1. Write a Simple Script: - In the Thonny editor, type the following code to blink an onboard LED: from machine import Pin from time import sleep led = Pin(25, Pin.OUT) while True: led.toggle() sleep(1) 2. Save and Run the Script: - Save the script by going to File > Save As, then choose Raspberry Pi Pico. - Name your file (e.g., ` b link .py `) and click OK. - Click the Run button (green arrow) to execute your script. You should see the onboard LED start blinking. Project Gallery All Documents : Write the given code in your IDE and Save as Temp.py file. from machine import ADC import utime temp_sensor = ADC(4) # Default connection of temperature sensor while True: # get raw sensor data raw_sensor_data = temp_sensor.read_u16() # convert raw value to equivalent voltage sensor_voltage = (raw_sensor_data / 65535)*3.3 # convert voltage to temperature (celcius) temperature = 27 - (sensor_voltage - 0.706)/0.001721 print("Temperature : ",temperature, " degree celcius") utime.sleep(1) Follow the Steps given above to Complete the project. 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 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.

  • How to Build a Water Level Monitoring System Using BC547

    How to Build a Water Level Monitoring System Using BC547 here’s a detailed guide on how to create a water level monitoring system using a BC547 transistor. Description: Monitoring water levels is essential for various applications, from home water tanks to industrial reservoirs. In this guide, we will walk you through the steps to create a simple and effective water level monitoring system using a BC547 transistor. Materials Needed: - BC547 NPN transistor - Resistors (1kΩ, 10kΩ) - LEDs (Green, Yellow, Red) - 9V battery and battery clip - Water container - Connecting wires - Breadboard - Jumper wires Step 1: Understanding the Circuit Before we start building, it’s important to understand how the circuit works. The BC547 transistor acts as a switch that will control the LEDs indicating different water levels. The base of the transistor will receive input from the water sensors (wires submerged in water at different levels), the emitter will be connected to the ground, and the collector will drive the LEDs. Step 2: Setting Up the Power Supply Connect the 9V battery to the breadboard using the battery clip. Connect the positive terminal of the battery to the positive rail and the negative terminal to the negative rail of the breadboard. Step 3: Placing the Transistor Place the BC547 transistor on the breadboard. The flat side of the transistor should be facing you. The pins from left to right are: Collector (C), Base (B), and Emitter (E). Step 4: Connecting the Resistors - Connect a 10kΩ resistor from the base (B) of the BC547 to the positive rail of the breadboard. - Connect a 1kΩ resistor from the collector (C) of the BC547 to the positive rail of the breadboard. Step 5: Setting Up the LEDs - Connect the cathode (short leg) of the green LED to the emitter (E) of the BC547. - Connect the anode (long leg) of the green LED to the collector (C) of the BC547. - Repeat the same steps for the yellow and red LEDs, ensuring each has its own BC547 transistor set up in parallel. Step 6: Creating the Water Sensors - Use three pieces of wire to act as water level sensors. - Place the first wire at the bottom of the water container (low level). - Place the second wire in the middle (medium level). - Place the third wire near the top (high level). Step 7: Connecting the Sensors to the Transistors - Connect the sensor wire at the bottom to the base (B) of the first BC547 transistor via a jumper wire. - Connect the middle sensor to the base (B) of the second BC547 transistor. - Connect the top sensor to the base (B) of the third BC547 transistor. Step 8: Grounding the Circuit - Connect the emitter (E) of all three BC547 transistors to the negative rail of the breadboard. - Connect the negative rail to the negative terminal of the battery. Step 9: Testing the System - Fill the container with water to different levels and observe the LEDs. - When the water reaches the bottom sensor, the green LED should light up. - When the water reaches the middle sensor, the yellow LED should light up. - When the water reaches the top sensor, the red LED should light up. Project Gallery All Documents : There are no codes to download Click Here to Download Download Video Tutorial : Conclusion : By following these steps, you have successfully built a water level monitoring system using a BC547 transistor. This simple project helps you understand the basics of transistor operation and water level detection. For more exciting projects and tutorials, visit our website and check out Skill-Hub by EmbeddedBrew to expand your knowledge 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 a 0.96" OLED Display and Arduino Nano

    Getting Started with a 0.96" OLED Display and Arduino Nano Here are the steps to get started with a 0.96" OLED display and an Arduino Nano. This can serve as a detailed guide. This guide should help readers get up and running with their OLED display and Arduino Nano, providing a clear, step-by-step approach to their first project. Description: The 0.96" OLED display is a compact, high-contrast screen perfect for displaying text, graphics, and other data. Pairing it with the versatile Arduino Nano allows for a range of exciting projects. Follow these steps to get started: Step 1: Gather Your Materials - Arduino Nano - 0.96" OLED display (typically using the I2C interface) - Breadboard - Jumper wires - USB cable for programming the Arduino Nano - Computer with Arduino IDE installed Step 2: Connect the OLED Display to the Arduino Nano 1. Power Connections: - Connect VCC (or 3.3V) pin of the OLED to the 3.3V pin on the Arduino Nano. - Connect GND pin of the OLED to the GND pin on the Arduino Nano. 2. I2C Connections: - Connect the SCL (clock line) of the OLED to the A5 pin on the Arduino Nano. - Connect the SDA (data line) of the OLED to the A4 pin on the Arduino Nano. Step 3: Install Required Libraries 1. Open the Arduino IDE on your computer. 2. Go to Sketch > Include Library > Manage Libraries... 3. In the Library Manager, search for and install the following libraries: - Adafruit SSD1306: This library is used to control the SSD1306 OLED display. - Adafruit GFX Library: This library provides graphics functions for the display. S tep 4: Load and Run an Example Sketch 1. Open the Arduino IDE and go to File > Examples > Adafruit SSD1306 > ssd1306_128x64_i2c. 2. If your OLED has a resolution of 128x32, use the 'ssd1306_128x32_i2c' example instead. Step 5: Modify the Example Code 1. In the example sketch, locate the section of code that sets the display address. It typically looks like this: #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels #define OLED_RESET -1 // Reset pin # (or -1 if sharing Arduino reset pin) Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); 2. Ensure that the I2C address is correct. The default address for most 0.96" OLEDs is 0x3C. If your display uses a different address, update the code accordingly: if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { Serial.println(F("SSD1306 allocation failed")); for(;;); } Step 6: Upload the Code to the Arduino Nano 1. Connect your Arduino Nano to your computer using the USB cable. 2. Select the appropriate board and port in the Arduino IDE: - Tools > Board > Arduino Nano - Tools > Processor > ATmega328P (Old Bootloader) (if needed) - Tools > Port > Select the COM port your Nano is connected to. 3. Click the Upload button to compile and upload the sketch to your Arduino Nano. Step 7: Verify the Display Output 1. Once the code is uploaded, the OLED should initialize and display graphics or text as defined in the example sketch. 2. You can modify the sketch to display custom messages, graphics, or sensor data. Step 8: Explore Further - Try displaying different types of data like sensor readings, custom graphics, or animations. - Experiment with different functions provided by the Adafruit GFX library to enhance your projects. Project Gallery All Documents : Download the below Code to get Started. Click Here to Download Download Video Tutorial : Conclusion : By following these steps, you'll be able to successfully integrate a 0.96" OLED display with an Arduino Nano and start displaying information for your projects. Also visit our website for more projects and explore Skill-Hub by EmbeddedBrew to enhance your Skills. Happy coding! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • Getting Started with DS18B20 Temperature Sensor

    Getting Started with DS18B20 Temperature Sensor This guide provides a clear, step-by-step process for getting started with the DS18B20 sensor and Arduino, making it easy for beginners to follow and understand. Description: The DS18B20 is a popular temperature sensor that provides accurate and reliable temperature readings in a variety of projects. In this guide, we’ll walk you through the steps to get started with the DS18B20 sensor and an Arduino board. Materials Needed: - Arduino board (e.g., Arduino Uno) - DS18B20 temperature sensor - 4.7k ohm resistor - Breadboard and jumper wires - Arduino IDE (installed on your computer) Step 1: Understanding the DS18B20 The DS18B20 is a digital temperature sensor that communicates over a 1-Wire bus, requiring only one data line for communication. It can measure temperatures in the range of -55°C to +125°C with an accuracy of ±0.5°C. Step 2: Wiring the DS18B20 First, identify the pins on the DS18B20: - GND: Ground - DQ: Data (1-Wire) - VDD: Power (3.3V to 5V) Now, connect the DS18B20 to the Arduino as follows: 1. Connect the GND pin of the DS18B20 to the GND pin on the Arduino. 2. Connect the VDD pin of the DS18B20 to the 5V pin on the Arduino. 3. Connect the DQ pin of the DS18B20 to digital pin 2 on the Arduino. 4. Place a 4.7k ohm resistor between the DQ pin and the VDD pin to act as a pull-up resistor. Step 3: Installing the Required Libraries To communicate with the DS18B20, you’ll need the OneWire and DallasTemperature libraries. Open the Arduino IDE and install these libraries: 1. Go to Sketch > Include Library > Manage Libraries. 2. Search for "OneWire" and install the library by Paul Stoffregen. 3. Search for "DallasTemperature" and install the library by Miles Burton. Step 4: Writing the Code Create a new sketch in the Arduino IDE and enter the following code: Step 5: Uploading the Code 1. Connect your Arduino to the computer using a USB cable. 2. Select the appropriate board and port from the Tools menu in the Arduino IDE. 3. Click the Upload button to upload the code to the Arduino. Step 6: Monitoring the Output Once the code is uploaded, open the Serial Monitor from the Tools menu. Set the baud rate to 9600. You should see the temperature readings from the DS18B20 sensor displayed in the Serial Monitor. Project Gallery All Documents : Download the below code to get started with DS18B20. Click Here to Download Download Video Tutorial : Conclusion : You’ve successfully set up the DS18B20 temperature sensor with your Arduino! Now you can integrate this sensor into various projects, such as weather stations, HVAC systems, or any application that requires accurate temperature monitoring. For more project ideas and tutorials, visit our website and explore Skill-Hub by EmbeddedBrew to enhance your embedded systems skills. Happy coding! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • How to create a Musical tune on Arduino

    How to create a Musical tune on Arduino Learn to create and play music on Arduino. Description: Creating music using an Arduino and a buzzer is a fun and educational project that introduces you to basic electronics and programming concepts. Here’s a Step-by-Step Guide to Create Music with Arduino and a Buzzer Materials Needed: 1. Arduino board (e.g., Arduino Uno) 2. Piezo buzzer 3. Breadboard 4. Jumper wires 5. USB cable for Arduino 6. Computer with Arduino IDE installed Step 1: Set Up Your Workspace - Ensure you have all the necessary materials. - Install the Arduino IDE on your computer if you haven’t already done so. Step 2: Connect the Buzzer to the Arduino 1. Place the piezo buzzer on the breadboard. 2. Connect one leg of the buzzer to a digital pin on the Arduino (e.g., pin 8). 3. Connect the other leg of the buzzer to the ground (GND) pin on the Arduino. Step 3: Write the Code - Open the Arduino IDE on your computer. - Create a new sketch and write the following code to play a simple melody: Step 4: Upload the Code to the Arduino 1. Connect your Arduino board to the computer using the USB cable. 2. In the Arduino IDE, select the correct board and port from the 'Tools' menu. 3. Click the 'Upload' button to upload the code to your Arduino. 5: Test Your Setup - Once the code is uploaded, your buzzer should start playing the melody. If you don’t hear any sound, double-check your connections and ensure that the buzzer is properly connected to the specified pin. Project Gallery All Documents : Download the below code and run on ArduinoIDE. Click Here to Download Download Video Tutorial : Conclusion : Creating music with an Arduino and a buzzer is a great way to get started with electronics and programming. It’s a simple project that can be expanded in many creative ways. For more project ideas and tutorials, visit our website and check out Skill-Hub by EmbeddedBrew for more learning opportunities in embedded systems. Happy creating! comments debug Comments Write a comment Write a comment Share Your Thoughts Be the first to write a comment.

  • How to make a Keypad based Door unlocking System

    How to make a Keypad based Door unlocking System Here's a step-by-step guide to creating a keypad-based door unlocking system using an I2C LCD, a servo motor, and an Arduino Description: Unlocking doors using a keypad adds a layer of security to your home or office. In this project, we’ll use an Arduino, a 4x4 keypad, an I2C LCD, and a servo motor to create a keypad-based door unlocking system. Components Needed: - Arduino Uno - 4x4 Keypad - I2C LCD (16x2) - Servo motor - Breadboard and jumper wires - Resistor (10k ohm) - External power supply (optional) Step 1: Connect the Components 1.1 Connect the Keypad: - Connect the keypad to the Arduino digital pins. - For example, connect R1, R2, R3, and R4 to pins 9, 8, 7, and 6. - Connect C1, C2, C3, and C4 to pins 5, 4, 3, and 2. 1.2 Connect the I2C LCD: - Connect the SDA pin of the I2C module to the A4 pin of the Arduino. - Connect the SCL pin of the I2C module to the A5 pin of the Arduino. - Connect the VCC and GND pins of the I2C module to the 5V and GND pins of the Arduino, respectively. 1.3 Connect the Servo Motor: - Connect the signal pin of the servo to pin 10 on the Arduino. - Connect the VCC and GND pins of the servo to the 5V and GND pins of the Arduino (or use an external power supply if necessary). Step 2: Install Necessary Libraries Before you start coding, ensure you have the necessary libraries installed: - Keypad Library: To handle keypad input. - LiquidCrystal_I2C Library: To manage the I2C LCD. - Servo Library: To control the servo motor. You can install these libraries via the Arduino IDE’s Library Manager. Step 3: Write the Code Step 4: Upload the Code and Test 1. Connect your Arduino to your computer using a USB cable. 2. Open the Arduino IDE, paste the code into a new sketch, and upload it to the Arduino board. 3. Once uploaded, the LCD will prompt you to enter the password. 4. Enter the password using the keypad. If correct, the servo will unlock the door by rotating 90 degrees and then return to the locked position after 5 seconds. If incorrect, the LCD will display "Access Denied." Step 5: Finalize the Hardware Setup 1. Mount the servo motor on the door lock mechanism. 2. Secure the Arduino, keypad, and LCD in a suitable enclosure. 3. Ensure all connections are stable and protected from external damage. Project Gallery All Documents : Download the Code and Run it on ArduinoIDE. Click Here to Download Download Video Tutorial : Conclusion : Congratulations! You've successfully built a keypad-based door unlocking system using an I2C LCD, a servo motor, and an Arduino. This project not only enhances security but also provides a practical introduction to using various components together. For more projects and skills in embedded systems, check out 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.

  • Shipping Policy | EmbeddedBrew

    < Back Shipping and Delivery Policy At EmbeddedBrew Innovations, we strive to provide a seamless and efficient shopping experience for our customers. Our Shipping and Delivery Policy outlines the terms and conditions related to the delivery of our products and services. We are committed to delivering your orders promptly and ensuring you have immediate access to your purchased courses. Delivery Timeline: We offer free shipping and delivery of our Free Kit within India. Please note that we do not offer replacements for the Free Kit under any circumstances. Your Free Kit will be dispatched within 2 business days of placing your order. Delivery typically takes up to 7-10 days from the date of dispatch. Please note that delivery times may vary depending on your location and any unforeseen circumstances with our third-party delivery partners. Delivery Partners: EmbeddedBrew partners with trusted third-party delivery services to ensure your Free Kit reaches you promptly and securely. Our delivery partners are selected based on their reliability and efficiency in handling shipments across India. Course Access: Upon placing your order for the Free Kit, the associated course content will be immediately reflected on our website. You can access the course materials, tutorials, and resources without any delay, allowing you to start learning and exploring Arduino and electronics right away. Tracking Information: For orders of the Free Kit, tracking information will be provided via email once your order has been dispatched. You can use this information to track the status of your shipment and estimated delivery date. Delivery Address: Please ensure that you provide a correct and complete delivery address at the time of placing your order. We will not be responsible for delays or non-delivery due to incorrect address details provided by the customer. Shipping Charges: There are no shipping charges for the Free Kit offered by EmbeddedBrew within India. You can enjoy the convenience of receiving your kit without any additional costs. Customer Support: If you have any questions or concerns regarding your order or delivery, please feel free to contact our customer support team at embeddedbrew@gmail.com . We are here to assist you and ensure that your experience with EmbeddedBrew is smooth and satisfactory. Disclaimer: While we strive to meet our delivery timelines, please note that external factors such as weather conditions, public holidays, and unforeseen circumstances may impact delivery times. We appreciate your understanding and patience in such situations. Thank you for choosing EmbeddedBrew for your Arduino learning journey. We look forward to providing you with an enriching experience and helping you unleash your creativity in electronics and embedded systems. --- EmbeddedBrew Innovations (Formerly Rudra DIY Crafts) Effective Date:[30/05/2024]

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

    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 Partagez vos idées Soyez le premier à rédiger un commentaire.

  • Getting 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.

  • Plans & Pricing | EmbeddedBrew

    Choose your pricing plan IGNITE ₹ 2,000 2,000₹ Create an AI Integrated IoT Project Learn from Scratch Get a Free IoT Kit Valid for one month Select 30 Day Course Certification Program Hands-on Session Free Practice Kit Flexible Timing Exclusive Forum Access 30+ Video Lectures 50+ Blog Contents 20+ Projects Spark ₹ 999 999₹ Create a Personal Weather station . Learn from Scratch Select Hands-on Session Video Tutorials Flexble timing Life Time Access Forum Access Get Certified Downloadable Resources Free e-Book Lots of Project Ideas

  • 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.

bottom of page