Category Archives: MicroPython

Parsing GPS NMEA Sentences With the Raspberry Pi Pico W

In this video lesson I show you how to parse NMEA sentences using the Raspberry Pi Pico W. In our project our pico is connected to the Adafruit Ultimate GPS V3. For this lesson we are using the following schematic:

Pi Pico GPS
This schematic shows how to connect the Adafruit Ultimate GPS to the Raspberry Pi Pico W

For your convenience, I have included the code below developed in the video:

 

Getting Latitude and Longitude from the Adafruit Ultimate GPS with Raspberry Pi Pico W

In this video lesson I show how to get usable Latitude and Longitude from the Adafruit Ultimate GPS version 3 using the Raspberry Pi Pico W. We read the NMEA sentences from the GPS, we parse them into individual strings for each sentence, and then we create arrays of data from the strings. Then we begin to parse the arrays, and convert the confusing numbers into useful Decimal Degree values for Latitude and Longitude.

Pi Pico GPS
This schematic shows how to connect the Adafruit Ultimate GPS to the Raspberry Pi Pico W

For your convenience, this is the code we developed in todays lesson:

 

Connecting the Adafruit Ultimate GPS to the Raspberry Pi Pico W

In this video lesson we will connect the Adafruit Ultimate GPS to the Raspberry Pi Pico W, and will write a simple program to capture the data being sent by the GPS. In this lesson, we simply want to read and print the NMEA sentences coming off the GPS, and then in future lessons we will begin to parse the data, and turn the data into usable numbers. This is the schematic for connecting the GPS to your Raspberry Pi Pico W.

Pi Pico GPS
This schematic shows how to connect the Adafruit Ultimate GPS to the Raspberry Pi Pico W

Then this is the simple code we developed to allow reading the data coming from the GPS.

 

RFID Project to Lock and Unlock Control of Servo

In this video lesson we explore a project where control access to a servo is activated by an RDID tag. In order to position the servo with the pushbuttons, the system must be unlocked by a RDID tag. When the system is locked, the LED is red, when the system is unlocked, the LED is green. When using the breadvolt, or any battery power supply on a breadboard project, do not turn the power supply on while the Raspberry Pi Pico is connected to USB, as you could generate voltage conflicts. It is an either or. If the USB is connected, the power supply should be OFF. Or if you are going to connect the USB, first turn off the power supply.

RFID-SERVO
This schematic allows servo control to be granted via RFID tag

For your convenience, this is the code we developed below.

 

RFID Lock and Unlock Demonstration Project Raspberry Pi Pico W

In this video lesson we explore using an RFID-RC522 and an RFID tag to lock and unlock our raspberry pi project. This demonstration will include an RGB LED which remains red while the system is locked, and then turns green when the system is unlocked by the RFID tag. Absence of user input, the system will lock again after 5 seconds. The following is the circuit diagram for the project:

RFID
Schematic for Raspberry Pi Pico W and RFID module, with LED and Push Buttons

When using the breadvolt, or any battery power supply on a breadboard project, do not turn the power supply on while the Raspberry Pi Pico is connected to USB, as you could generate voltage conflicts. It is an either or. If the USB is connected, the power supply should be OFF. Or if you are going to connect the USB, first turn off the power supply.

For your convenience, the code for the project is included below: