Skip to content
Snippets Groups Projects
Commit 15b194f3 authored by Eunchae Lee's avatar Eunchae Lee
Browse files

Update README.md

parent d7fc2af7
No related branches found
No related tags found
No related merge requests found
......@@ -87,34 +87,49 @@ gcc -o client3 pir.c -lpthread -lwiringPi
1. Connect the Sensors and Actuators
- Rpi 1
- DHT11 Sensor:
Connect the VCC pin of the DHT11 sensor to the 5V pin on the Raspberry Pi.
Connect the GND pin of the DHT11 sensor to the GND pin on the Raspberry Pi.
Connect the DATA pin of the DHT11 sensor to the GPIO pin(2) on the Raspberry Pi.
- RPi2
- Photoresistor:
Connect one leg of the photoresistor to a 3.3V pin on the Raspberry Pi.
Connect the other leg of the photoresistor to a GPIO pin(18) through a pull-down resistor.
- RPi3
- PIR Sensor:
Connect the VCC pin to the 5V pin on the Raspberry Pi.
Connect the GND pin to the GND pin on the Raspberry Pi.'
Connect the GND pin to the GND pin on the Raspberry Pi.
Connect the OUTPUT pin to the PWM(0) on the Raspberry Pi.
- LED:
Connect one leg to the GPIO pin(18) and the other to the GND pin.
- Servo Motor:
Connect the power pins to the 5V and GND pins, and the control pin to a GPIO pin(18).
- RPi4
- Piezo Buzzer:
Connect the VCC pin to the 5V pin on the Raspberry Pi.
Connect the GND pin to the GND pin on the Raspberry Pi.'
Connect the OUTPUT pin to the GPIO pin(20) on the Raspberry Pi.
- LED:
Connect one leg to the GPIO pin(18) and the other to the GND pin.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment