SPRING SALE up to 20% OFF! (excludes trade customers)   •   FREE Standard Delivery for orders over £35 (ex VAT)
Knowledge Base

The AB Electronics UK Knowledge Base provides support solutions, tutorials and troubleshooting guides.

Knowledge Base

MicroPython Library and Demos

MicroPython Library and Demo Samples

Created 24/10/2022 | Last Updated: 21/07/2024

MicroPython Logo

MicroPython Library & Demos for the Raspberry Pi Pico series

We have MicroPython libraries available for several of our boards. You can find all of the libraries and demos from GitHub at our MicroPython Libraries GitHub Repository

Downloading and Installing the library

To download to your Raspberry Pi, type in the terminal: 

git clone https://github.com/abelectronicsuk/ABElectronics_MicroPython_Libraries.git

To install the MicroPython Library, use the Thonny Python IDE from Thonny

Create a file for your chosen board and copy the contents of the Python file into that board's directory. For example, for the ADC DAC Pi, create a new file in thonny called ADCDACPi.py, copy contents from ADCDACPi.py into the new file, and save it onto the Raspberry Pi Pico board.

Create a second file where your main program will reside and import the board library at the program's top.

For example:

from ADCDACPi import ADCDACPi

Run with "Run Current Command" or F5 in Thonny.

Also useful for your Raspberry Pi project

Temperature & Sensing

1 Wire Pi Plus

Connect dozens of 1-Wire sensors - temperature, iButtons, EEPROMs - via a single GPIO pin. Stacks directly on the 40-pin header.

£9.59 ex VAT

Analogue I/O

ADC Pi

Read up to 8 analogue inputs - perfect for pairing with your temperature sensors or other analogue-output devices.

£14.39 ex VAT

All-in-one

Expander Pi

Combines ADC, DAC, 32 GPIO ports and a real-time clock on one board. The most versatile board for complex Raspberry Pi projects.

£15.99 ex VAT

Order these Boards

All boards are designed & manufactured in the UK with RoHS-compliant components.