All posts by admin

How to Write Modular Code With Micropython Functions

In this lesson we show how to write modular code in micropython. We demonstrate this with a simple example of how to calculate parameters of interest for a given rectangle. For your convenience, the code developed in the video is presented below. Enjoy!

 

Calibrating Joystick to Show Positional Angle in MicroPython on the Raspberry Pi Pico W


 

In this Video Lesson we show how to calibrate a joystick to report Angular Position. We do this using MicroPython on a Raspberry Pi Pico W. For your convenience, the code is included below.

 

Calibrating a Joystick on the Raspberry Pi Pico W in MicroPython

In this lesson we show how to get intuitive calibrated results from a joystick, connected to a Raspberry Pi Pico W, using microPython. This lesson will make it easy to incorporate a joystick into Pico W projects.

For your convenience, the code we develop in the video above is included below.

 

Remove Long Term Steady State Errors from MPU6050 Tilt Measurements

In this video lesson I show you how to remove long term steady state error from the tilt values calculated from the MPU6050 IMU. We are using the following schematic for our prototype.

MPU 6050
Schematic for Creating a Tilt Meter

For your convenience, this is the code we developed in the video.

 

Improving Accuracy of MPU6050 Data Using a Complimentary Filter

In this video lesson we show how to create a complimentary filter such we get pitch and roll data from the MPU6050 which is quick and responsive, accurate, and low noise. We are using the following schematic:

MPU 6050
Schematic for Creating a Tilt Meter

This is the code we developed in the video.