Lana Rahim
Published © CC BY

Helm Protector (Rangkaian Dalam)

helm ini digunakan untuk keselamatan pada saat berkendara, yang akan memberi peringatan ketika kecepatan melebihi batas

EasyFull instructions provided3 hours154
Helm Protector (Rangkaian Dalam)

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Buzzer
Buzzer
×1
GPS Module
Tessel GPS Module
×1
Standard LCD - 16x2 White on Blue
Adafruit Standard LCD - 16x2 White on Blue
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Resistor 221 ohm
Resistor 221 ohm
×1
Breadboard (generic)
Breadboard (generic)
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
gunting

Story

Read more

Schematics

Schematic for helm protector

Code

Code for hELM pROTECTOR

C/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

Lana Rahim

Lana Rahim

0 projects • 0 followers
i'm developer

Comments

Add projectSign up / Login