[go: up one dir, main page]

0% found this document useful (0 votes)
18 views4 pages

Mini Projects

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views4 pages

Mini Projects

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

### 1.

**Smart Notice Board Using Arduino and GSM Module**

#### Components:
- Arduino Uno
- GSM module (e.g., SIM900)
- 16x2 LCD display
- Power supply (9V battery or adapter)
- Connecting wires and breadboard
- 10kΩ potentiometer (for LCD contrast control)
- 220Ω resistors
- Push buttons (optional for manual input)

#### Steps to Build:

1. **Set Up Arduino and GSM Module**:


- Connect the GSM module to the Arduino using the following connections:
- GSM TX to Arduino RX
- GSM RX to Arduino TX
- GSM VCC to Arduino 5V
- GSM GND to Arduino GND

2. **Connect LCD Display**:


- Connect the LCD to the Arduino using the following connections:
- LCD RS to Arduino pin 12
- LCD E to Arduino pin 11
- LCD D4 to Arduino pin 5
- LCD D5 to Arduino pin 4
- LCD D6 to Arduino pin 3
- LCD D7 to Arduino pin 2
- LCD VSS to Arduino GND
- LCD VDD to Arduino 5V
- LCD V0 to the middle pin of the potentiometer (other pins to 5V and GND)
- LCD A to 5V (with a 220Ω resistor in series)
- LCD K to GND

3. **Write the Code**:


- Write a sketch to receive SMS messages and display them on the LCD. Use the
GSM library for communication and the LiquidCrystal library for the LCD.
- Sample code:
```cpp
#include <LiquidCrystal.h>
#include <GSM.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);


GSM gsmAccess;
GSM_SMS sms;

void setup() {
lcd.begin(16, 2);
Serial.begin(9600);
boolean notConnected = true;
while (notConnected) {
if (gsmAccess.begin() == GSM_READY) {
notConnected = false;
} else {
delay(1000);
}
}
}
void loop() {
char smsBuffer[160];
if (sms.available()) {
sms.read(smsBuffer, 160);
sms.flush();
lcd.clear();
lcd.print(smsBuffer);
}
delay(1000);
}
```

4. **Test and Deploy**:


- Power up the system and test by sending an SMS to the GSM module.
- Ensure the message appears on the LCD.
- Deploy the system in a suitable location.

---

### 2. **Automated Attendance System Using RFID**

#### Components:
- RFID reader (e.g., MFRC522)
- RFID tags/cards
- Arduino Uno
- LCD display (16x2)
- Buzzer (optional for feedback)
- Power supply
- Connecting wires and breadboard

#### Steps to Build:

1. **Set Up RFID Reader**:


- Connect the RFID reader to the Arduino:
- RFID SDA to Arduino pin 10
- RFID SCK to Arduino pin 13
- RFID MOSI to Arduino pin 11
- RFID MISO to Arduino pin 12
- RFID IRQ to not connected
- RFID GND to Arduino GND
- RFID RST to Arduino pin 9
- RFID 3.3V to Arduino 3.3V

2. **Connect LCD Display**:


- Same connections as in the Smart Notice Board project.

3. **Write the Code**:


- Use the MFRC522 library to communicate with the RFID reader and the
LiquidCrystal library for the LCD.
- Sample code:
```cpp
#include <SPI.h>
#include <MFRC522.h>
#include <LiquidCrystal.h>

#define SS_PIN 10
#define RST_PIN 9
MFRC522 rfid(SS_PIN, RST_PIN);
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
SPI.begin();
rfid.PCD_Init();
lcd.begin(16, 2);
Serial.begin(9600);
}

void loop() {
if (!rfid.PICC_IsNewCardPresent() || !rfid.PICC_ReadCardSerial()) {
delay(50);
return;
}

String uid = "";


for (byte i = 0; i < rfid.uid.size; i++) {
uid += String(rfid.uid.uidByte[i] < 0x10 ? "0" : "");
uid += String(rfid.uid.uidByte[i], HEX);
}

lcd.clear();
lcd.print("UID:");
lcd.setCursor(0, 1);
lcd.print(uid);
delay(1000);

rfid.PICC_HaltA();
rfid.PCD_StopCrypto1();
}
```

4. **Test and Deploy**:


- Power up the system and test by scanning RFID tags/cards.
- Ensure the UID appears on the LCD.
- Integrate with a database for attendance logging.
- Deploy the system in classrooms or entrance points.

---

### 3. **Energy Monitoring System for College Campus**

#### Components:
- Energy meters (e.g., PZEM-004T)
- Current sensors (e.g., ACS712)
- Arduino Uno or Raspberry Pi
- Wi-Fi module (e.g., ESP8266) if using Arduino
- Power supply
- Connecting wires and breadboard
- Software for data visualization (e.g., Thingspeak, Blynk)

#### Steps to Build:

1. **Set Up Energy Meters**:


- Connect the energy meters to the Arduino/Raspberry Pi as per the
manufacturer’s instructions.

2. **Connect Current Sensors**:


- Connect the ACS712 current sensor to measure current:
- VCC to Arduino 5V
- GND to Arduino GND
- OUT to an analog input pin on the Arduino (e.g., A0)

3. **Set Up Communication**:
- If using an Arduino, connect the ESP8266 Wi-Fi module for data transmission:
- ESP8266 VCC to Arduino 3.3V
- ESP8266 GND to Arduino GND
- ESP8266 TX to Arduino RX
- ESP8266 RX to Arduino TX (use a voltage divider to lower the Arduino 5V TX
to 3.3V)

4. **Write the Code**:


- Develop the code to read energy data and send it to a remote server or display
it locally.
- Sample code:
```cpp
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ThingSpeak.h>

const char* ssid = "your_SSID";


const char* password = "your_PASSWORD";
const char* server = "api.thingspeak.com";

WiFiClient client;
unsigned long myChannelNumber = YOUR_CHANNEL_NUMBER;
const char * myWriteAPIKey = "YOUR_API_KEY";

void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
}
ThingSpeak.begin(client);
}

void loop() {
int sensorValue = analogRead(A0);
float current = (sensorValue - 512) * 5.0 / 1024.0;
ThingSpeak.setField(1, current);
ThingSpeak.writeFields(myChannelNumber, myWriteAPIKey);
delay(15000);
}
```

5. **Test and Deploy**:


- Power up the system and ensure it connects to Wi-Fi.
- Test with a known load and check data transmission.
- Set up the data visualization tool to display energy usage.
- Deploy the system across the campus, connecting multiple sensors as needed.

You might also like