Algorithm t GPS BASED VEHICLE BILLING SYSTEM


Algorithm

    Initialize LCD, GSM, GPS, SD card.
    Check start  button click

If yes: goto step 3

If no: goto step 2

    Extract position from GPS
    Store the location in SD card
    Calculate the distance
    Check stop button click

  If yes: goto step 6

  If no: goto step 5


    Calculate fare
    Display fare on LCD
    Stop



For accident detection:

    Start

    Get tilt value from accelerometer

    Compare with the threshold value

250<value<500: (no accident) go to step 2

Else (accident occurred) go to step 4

     Send message to the  specified person

No comments:

Post a Comment

its cool