Custom ESP32-S3 development board — professionally manufactured by JLCPCB. A far cry from where it all started. It Started in a School Science Lab — Around 1998 Most people who get into electronics start with a kit, a tutorial, maybe a breadboard and some LEDs. I started by sneaking ferric chloride out of a school science lab to etch my first PCB. That was around 1998. I was living in the Maldives — a small island nation in the Indian Ocean — where there was no electronics supply chain, no maker community, no local PCB fab. Just a chemistry cabinet at school, a copper-clad board from somewhere, and a lot of curiosity. This post is about what the next 25+ years of PCB prototyping looked like from there. The early wins with proper chemicals, the years of improvisation when those chemicals disappeared, the real injuries, the failed boards, and finally — the moment JLCPCB changed ever...
Its been a while that haven't publish anything. I have been using Raspberry Pi for long time since it was released and the old pi hangs around doing nothing. So i thought of hooking up an GPS to raspberry pi so that viewers out there who has interest in electronics and programming will know how it can be done.
Note: Raspberry Pi inputs or outputs supports 3.3v so the RX and TX pins also support 3.3v. So be careful about handling the voltages with the pi and devices interfacing.
I have a ublox GPS but it supports 5v so i need to do level conversion. If you want to know about level conversion please checkout my YouTube channel or the old blog posts.
Note: Raspberry Pi inputs or outputs supports 3.3v so the RX and TX pins also support 3.3v. So be careful about handling the voltages with the pi and devices interfacing.
I have a ublox GPS but it supports 5v so i need to do level conversion. If you want to know about level conversion please checkout my YouTube channel or the old blog posts.
First have to disable pi console in order to use the UART. If not it will get terminated. For more information Google for disabling console.
import serial gpsport = serial.Serial("/dev/ttyAMA0", baudrate=9600, timeout=0.2)
while True: rxgps = gpsport.readline() if len(rxgps) > 10: print(rxgps)
The above python script can be used for test whether pi receives serial data from GPS attached. Or you can write your own python script.
Bammm the Raspberry Pi receives the serial data from the GPS and here is a screen capture.
You can see stream of NMEA data flow from the GPS. The most important field to capture is GPGGA string. It will include position data and more.
Enjoy the hack and play/tweak for more data from other strings.

Comments