3
0
InternetOfThingsAndEmbedded.../Practical/Connections.md

59 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

2024-11-05 22:46:36 +05:30
# IoT Connections
[Refer Raspberry Pi pinout diagram](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/src/branch/main/Practical/Raspberry%20Pi%20%282+3+4+5%29%20GPIO%20Pinout.png)
![Raspberry Pi PINOUT](https://git.kska.io/sppu-te-comp-content/InternetOfThingsAndEmbeddedSystems/raw/branch/main/Practical/Raspberry%20Pi%20%282+3+4+5%29%20GPIO%20Pinout.png)
## Assignment 2 - LEDs and Buzzer
> [!IMPORTANT]
> Long terminal in LED is always positive, short terminal is always negative.
### Single LED
**Device** | **Positive terminal** | **Negative terminal (Ground/GND)** | **Signal/Output**
--- | --- | --- | ---
LED | GPIO 16 (PIN 36) | GROUND (PIN 34) | N/A
### Two LEDs
**Device** | **Positive terminal** | **Negative terminal (Ground/GND)** | **Signal/Output**
--- | --- | --- | ---
LED 1 | GPIO 16 (PIN 36) | GROUND (PIN 34) | N/A
LED 2 | GPIO 26 (PIN 37) | GROUND (PIN 39) | N/A
### Buzzer with one LED
**Device** | **Positive terminal** | **Negative terminal (Ground/GND)** | **Signal/Output**
--- | --- | --- | ---
Buzzer | GPIO 16 (PIN 36) | GROUND (PIN 34) | N/A
LED | GPIO 26 (PIN 37) | GROUND (PIN 39) | N/A
## Assignment 3 - IR Sensor
**Device** | **Positive terminal** | **Negative terminal (Ground/GND)** | **Signal/Output**
--- | --- | --- | ---
IR Sensor | 5V power (PIN 2) | GROUND (PIN 34) | GPIO 16 (PIN 36)
LED | GPIO 26 (PIN 37) | GROUND (PIN 39) | N/A
## Assignment 4 - DHT11 (Temperature sensor)
**Device** | **Positive terminal** | **Negative terminal (Ground/GND)** | **Signal/Output**
--- | --- | --- | ---
DHT11 | 5V power (PIN 2) | GROUND (PIN 34) | GPIO 16 (PIN 36)
## Assignment 5 - Camera
**Device** | **Positive terminal** | **Negative terminal (Ground/GND)** | **Signal/Output**
--- | --- | --- | ---
Picamera | N/A | N/A | CSI port
## Water level
**Device** | **Positive terminal** | **Negative terminal (Ground/GND)** | **Signal/Output**
--- | --- | --- | ---
Water sensor | 5V power (PIN 2) | GROUND (PIN 34) | GPIO 16 (PIN 36)
LED | GPIO 26 (PIN 37) | GROUND (PIN 39) | N/A
---