Do you want to make your own Car tracker? If say yes, This tutorial is for you.

  1. Firstly, Connect your Raspberry Pi to the internet and run sudo apt-get update  to update your Raspberry Pi
  2. We should stop Getty service on Raspbian.
      1. For non Raspberry Pi 3 machines, remember it’s /dev/ttyAMA0 that is linked to the getty (console) service. So you need to perform this command from a terminal window:
      2. For Raspberry Pi 3’s the command is similar but referencing /dev/ttyS0:
    1. You also need to remove the console from the cmdline.txt. If you edit this with:
      • sudo nano /boot/cmdline.txt
        dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait quiet splash plymouth.ignore-serial-consoles

        remove the line: console=serial0,115200  and save and reboot for changes to take effect.

    2. You also need to enable uart with edit /boot/config.txt file
      • sudo nano /boot/config.txt and add enable_uart=1 to bottom of file then save and reboot for changes to take effect.
  3. Download source code
    • wget
  4. Make it executable
    • sudo chmod +x
  5. Run it
    • sudo python

Leave a Reply

Your email address will not be published. Required fields are marked *