Posts

Modal verbs

  Modal Usage Example can ability, permission She can swim. / Can I go out? could past ability, polite request He could sing well. / Could you help me? may possibility, permission It may rain. / May I come in? might lesser possibility We might be late. must strong obligation, certainty You must do your homework. shall future (formal), offer Shall we begin? / I shall return. should advice, expectation You should eat healthy food. will future, willingness I will call you tomorrow. would polite request, imaginary situation Would you like tea? / I would travel if I had money. ought to moral duty You ought to respect elders. need to necessity You need to study harder. used to past habit He used to play football.

esp8266

  1. Install ESP8266 Board Support in Arduino IDE Open Arduino IDE . Go to File → Preferences . In the "Additional Board Manager URLs" field, add the following URL: bash https://arduino.esp8266.com/stable/package_esp8266com_index.json Click OK . 2. Install ESP8266 Board Package Go to Tools → Board → Boards Manager . In the search bar, type ESP8266 . Select "ESP8266 by ESP8266 Community" and click Install . Wait for the installation to complete. 3. Select the Wemos D1 Board Go to Tools → Board . Scroll down and select "LOLIN (WEMOS) D1 R2 & mini" . 4. Select the Correct Port Connect your Wemos D1 board to your PC using a Micro-USB cable . Go to Tools → Port and select the correct COM port (e.g., COM3, COM4, etc.). If no port is visible, install the CH340 USB Driver Download here . 5. Upload a Test Sketch Upload the following simple sketch to test if the board is working: cpp void setup () { Serial. begin ( 115200 ); Serial. println ( ...
 The board in your image is a WeMos D1 WiFi (ESP8266) development board. It is compatible with the Arduino IDE and can be programmed like an Arduino Uno but with built-in WiFi. Setup Instructions in Arduino IDE Follow these steps to configure and upload code to this board. 1. Install Arduino IDE Download and install the latest Arduino IDE from: https://www.arduino.cc/en/software 2. Install ESP8266 Board Package 1. Open Arduino IDE. 2. Go to File → Preferences. 3. In Additional Board Manager URLs, paste the following URL: https://arduino.esp8266.com/stable/package_esp8266com_index.json 4. Click OK. 3. Install ESP8266 Board via Board Manager 1. Go to Tools → Board → Boards Manager. 2. Search for ESP8266. 3. Install "ESP8266 by ESP8266 Community". 4. Wait for the installation to complete. 4. Select the Correct Board & Port 1. Connect the WeMos D1 board to your computer via Micro USB cable. 2. Go to Tools → Board → Select "LOLIN(WEMOS) D1 R2 & mini". 3. Go to To...

Procedure for Automatic Plant Watering System without Flyback Diode

Image
  Procedure for Automatic Plant Watering System without Flyback Diode Step 1: Gather Components Arduino UNO Soil moisture sensor NPN transistor (e.g., 2N2222 or BC547) or N-channel MOSFET (e.g., IRF540N or IRLZ44N) Water pump 1kΩ resistor 5V or 12V power supply for the pump (depending on the pump specifications) Jumper wires Breadboard Step 2: Connect the Soil Moisture Sensor Attach the VCC pin of the soil moisture sensor to the 5V pin on the Arduino. Connect the GND pin of the sensor to the GND pin on the Arduino. Attach the A0 pin of the sensor to the A1 analog pin on the Arduino. Step 3: Set Up the Transistor or MOSFET For NPN Transistor: Connect the emitter pin of the transistor to GND . Connect the collector pin to the positive terminal of the water pump. Connect the base pin to Arduino digital pin 8 via a 1kΩ resistor . For N-Channel MOSFET: Connect the source pin of the MOSFET to GND . Connect the drain pin to the negative terminal of the water pump. Connect th...

Temperature and Humidity Monitor

  Project Title : Temperature and Humidity Monitor Components Required Arduino UNO DHT11 sensor I2C LCD Display Jumper wires Breadboard Connections DHT11 Sensor : VCC -> 5V GND -> GND Data -> Pin 2 I2C LCD Display (Assuming your setup): Using the Adafruit_LiquidCrystal library: SCL -> A5 SDA -> A4 Code # include <Adafruit_LiquidCrystal.h> # include <DHT.h> // Define DHT sensor type and pin # define DHTTYPE DHT11 # define DHTPIN 2 // Initialize DHT sensor DHT dht (DHTPIN, DHTTYPE) ; // Initialize the LCD Adafruit_LiquidCrystal lcd ( 0 ) ; // Assuming default I2C address void setup () { // Begin serial communication Serial. begin ( 9600 ); // Initialize the DHT sensor dht. begin (); // Initialize the LCD lcd. begin ( 16 , 2 ); lcd. setBacklight ( 1 ); // Display a welcome message lcd. print ( "Temp & Humidity" ); lcd. setCursor ( 0 , 1 ); lcd. print ( "Monitoring..." ); delay ( 2000 ...

2.Light-Controlled LED Using an LDR and Arduino

Image
Light-Controlled LED Using an LDR and Arduino Components Needed: Arduino board LDR (photoresistor) 10kΩ resistor LED 220Ω resistor Breadboard and jumper wires Circuit Connections: LDR Circuit : Connect one leg of the LDR to 5V on the Arduino. Connect the other leg of the LDR to an analog input pin (e.g., A0) and a 10kΩ resistor. Connect the other end of the 10kΩ resistor to GND. LED Circuit : Connect the anode (longer leg) of the LED to a digital pin (e.g., 13). Connect a 220Ω resistor in series with the cathode of the LED, and connect the other end of the resistor to GND. Example Code: C++ Code int ldrPin = A0; // Analog pin for LDR int ledPin = 13 ; // Digital pin for LED int threshold = 500 ; // Threshold value for light level void setup () { pinMode (ledPin, OUTPUT); // Set LED pin as output Serial. begin ( 9600 ); // Start serial communication } void loop () { int ldrValue = analogRead (ldrPin); // Read LDR value Serial. println (ldrValue); ...