Things used in this project

Hardware components:
A000066 iso both
Arduino UNO & Genuino UNO
×1
Adafruit industries ada1536 image
Buzzer
×1
Gps
GPS Module for Tessel
×1
181 02
Adafruit Standard LCD - 16x2 White on Blue
×1
11026 02
Jumper wires (generic)
×1
Mfr 25fbf52 221r sml
Resistor 221 ohm
×1
12002 04
Breadboard (generic)
×1
09939 01
Rotary potentiometer (generic)
×1
Software apps and online services:
Ide web
Arduino IDE
Hand tools and fabrication machines:
09507 01
Soldering iron (generic)
gunting

Schematics

Schematic for helm protector
Gambar desain vue06awodr

Code

Code for hELM pROTECTORC/C++
#include <TinyGPS++.h> 
#include <SoftwareSerial.h>
#include <LiquidCrystal.h>

const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

SoftwareSerial ss(9,10);
TinyGPSPlus gps;
void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
ss.begin(9600);
Serial.println("Mulai GPS");
lcd.begin(16, 2);
pinMode(7, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
while(ss.available()>0)
{
  gps.encode(ss.read());
 }
 if(gps.location.isUpdated())
 {
  Serial.println("Latitude : ");
  Serial.println(gps.location.lat(),6);
  Serial.println("Longtitude : ");
  Serial.println(gps.location.lng(),6);
  Serial.println("Speed MPH : ");
  Serial.println(gps.speed.mph());
  Serial.println("Altitude Feet : ");
  Serial.println(""); 
  }
  lcd.setCursor(0, 1);
  lcd.print(gps.speed.mph());
  lcd.print(" m/jam");

  if(gps.speed.mph() > 2.20)
  {
    digitalWrite(7, HIGH);
  }
  else{
    digitalWrite(7,LOW);
    }
}

Credits

Photo
Lana Rahim
0 projects • 0 followers
i'm developer
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login