Skip to content

Latest commit

 

History

History
119 lines (69 loc) · 3 KB

SENSOR.md

File metadata and controls

119 lines (69 loc) · 3 KB

SETUP OF THE MICROCONTROLLER

THINGSPEAK

Go to ThingSpeak.com, sign up an account.

After log in, Click on New Channel

ThingSpeak allows up to 8 fields for free account.

For this project, we used all 8 fields. (follow the pictures)

ThingSpeak Setup

Copy CHANNEL ID and Write API Key (in API Keys) and paste it in mega/src/parts/thingspeakAPI/internet.cpp (shown in picture below)

internet part

you can update the WiFi part with SSID and Password. (ONLY WPA/WPA2 only)

WiFi Shield

Name: Arduino WiFi Shield Pin Used: a shield that attach onto Arduino UNO / MEGA

Arduino WiFi Shield

source: arduino.cc about Arduino WiFi Shield

Dissolved Oxygen

Name: Part # KIT-103D

Pin Used:

RX(Green): 14

TX(Yellow): 15

Only work on Arduino Mega

source: dissolved oxygen

Temperature

Name: LM35 Temperature Sensor

Pin Used: Analog A1 (UNO)

We are going to make our own temperature sensor using LM35 which is available in Lab. circuit and codes:

LM35

source: instructables

Turbidity

Name: Turbidity Sensor SEN0189

Mode: Analog

Pin Used: Analog A0 (UNO)

Turbidity Sensor

source: reference

UltraSonic sensors

Name: HC-SR04

Pin Used: 3 sensors is used

Sonar echoPin trigPin
Sonar1 (Right) 2 3
Sonar2 (Left) 6 7
Sonar3 (Front) 8 9

HC-SR04

source:

HC-SR04

Deployment of multiple UltraSonic

Compass

Compass GY-271

Name: Compass GY-271

Pin Used:

  • GY-273 Compass Module -> Arduino
  • VCC -> VCC (See Note Below) GND -> GND
  • SCL -> A5/SCL, (Use Pin 21 on the Arduino Mega)
  • SDA -> A4/SDA, (Use Pin 20 on the Arduino Mega)
  • DRDY -> Not Connected

reference:

HMC5883L_Simple

Source Code

GPS

Model: VK2828u7g5lf

Frequency: 1Hz

Pin Used:

  • GND -> GND
  • 5V -> 5V
  • RXPin -> 44 (TX)
  • TXPin -> 45 (RX)