Skip to main content

Posts

Showing posts from March, 2025

Interfacing Raspberry Pi 3 B+ with Servo Motor ✨ (English & Marathi)

 💻 Introduction A servo motor is widely used in robotics and automation projects. It allows precise control over rotation. In this tutorial, we will learn how to interface a servo motor with Raspberry Pi 3 B+ using Python . What will you learn? How a servo motor works Wiring the servo with RPi 3 B+ Writing Python code to control the servo 🛠 Components Required           Component Quantity           Raspberry Pi 3 B+                1           SG90 Servo Motor           1           Jumper Wires           3           External 5V Power Supply (Optional)           1 🛠 Circuit Diagram & Connection :  Connect the servo motor to Raspberry Pi as follows:...

👩‍🚀 SUNITA WILLIAMS : What Went Wrong? The Shocking Truth Behind Delayed Return To Earth 🛰️

🌡️ Interfacing BMP180 Pressure & Temperature Sensor with Raspberry Pi 3

🔹 Overview The BMP180 is a sensor that measures atmospheric pressure and temperature . It is commonly used in weather stations, altitude measurement, and IoT projects . In this tutorial, we will interface the BMP180 sensor with Raspberry Pi 3 and display the readings. 🛠️ Components Required ✔️ Raspberry Pi 3 ✔️ BMP180 Sensor ✔️ Breadboard & Jumper Wires 🔌 Circuit Diagram The BMP180 communicates with the Raspberry Pi using the I2C protocol . 🔗 BMP180 to Raspberry Pi Connections    BMP180 Pin Connection VCC 3.3V (Raspberry Pi) GND GND SDA GPIO 2 (I2C SDA) SCL GPIO 3 (I2C SCL) 📜 Python Code to Read BMP180 Sensor Save the following Python script as bmp180_sensor.py and run it on Raspberry Pi. python Copy Edit import smbus import time # BMP180 Default Address BMP180_ADDR = 0x77 # Open I2C bus bus = smbus.SMBus( 1 ) def read_temperature (): bus.write_byte_data(BMP180_ADDR, 0xF4 , 0x2E ) time.sleep( 0.005 ) temp_msb = bus.read_byte_data...

Interfacing IR Obstacle Sensor with Raspberry Pi 3

  🔹 Overview An IR Obstacle Sensor is used to detect obstacles using infrared light. It is commonly used in robots, line-following cars, and automatic doors . In this tutorial, we will connect an IR sensor to Raspberry Pi 3 and detect obstacles. 🛠️ Components Required ✔️ Raspberry Pi 3 ✔️ IR Obstacle Sensor ✔️ Breadboard & Jumper Wires 🔌 Circuit Diagram 🔗 IR Sensor to Raspberry Pi Connections  IR Sensor Pin Connection VCC 3.3V (Raspberry Pi) GND GND OUT GPIO 17 (Detects obstacle) 📜 Python Code to Read IR Sensor Save the following Python script as ir_sensor.py and run it on Raspberry Pi. python Copy Edit import RPi.GPIO as GPIO import time # Define GPIO pin IR_SENSOR_PIN = 17 # Setup GPIO.setmode(GPIO.BCM) GPIO.setup(IR_SENSOR_PIN, GPIO.IN) try : while True : if GPIO. input (IR_SENSOR_PIN) == 0 : print ( "🚧 Obstacle Detected!" ) else : print ( "✅ No Obstacle." ) time.sleep( 1 ) ...

Interfacing Raspberry Pi 3 with a Temperature Sensor (DHT11) - English & Marathi

  Introduction The DHT11 sensor is a simple and popular sensor used to measure temperature and humidity. In this tutorial, we will learn how to interface the DHT11 sensor with Raspberry Pi 3 and display the temperature and humidity readings on the terminal. DHT11 सेन्सर तापमान आणि आर्द्रता मोजण्यासाठी वापरला जाणारा एक सोपा आणि लोकप्रिय सेन्सर आहे. या ट्यूटोरियलमध्ये, आपण DHT11 सेन्सरला Raspberry Pi 3 शी कसे जोडायचे आणि टर्मिनलवर वाचन कसे प्रदर्शित करायचे हे शिकू. Components Required | आवश्यक घटक: Raspberry Pi 3 DHT11 Temperature and Humidity Sensor 10KΩ Resistor Jumper Wires Breadboard Circuit Diagram | सर्किट जोडणी: Connections: DHT11 VCC → 3.3V (Pin 1) DHT11 GND → GND (Pin 6) DHT11 Data → GPIO4 (Pin 7) 10KΩ resistor between VCC and Data pin Python Code | पायथन कोड: import Adafruit_DHT sensor = Adafruit_DHT.DHT11 pin = 4 # GPIO4 humidity, temperature = Adafruit_DHT.read_retry(sensor, pin) if humidity is not None and temperature is not None: print(f"Te...