Project 1b - A Simple Neural Network (Raspberry Pi Pico)
- James Canova
- Sep 23, 2021
- 1 min read
Updated: Nov 14, 2024
Project started: 18 March 2024
Project finished: 30 March 2024
This project is a modification of Project 1a with the Pyboard replaced by a Rasperry Pi Pico.
I've created a PDF with the complete project desciption including project listing:
Please refer to this URL for setup of Micropython on the Pico and installation of the Thonny editor:
Use this Micropython UF2 file since it was complied with the ulab library which includes the require numpy library. https://github.com/v923z/micropython-builder/releases
Instructions for installing the UF2 files on the Pico are found here:
The schematic:

As with Project 1a, when the program start, the red LED illuminates to indicate that the neural netwowk is training which takes about 2.5 minutes. On completion of training, the red LED turns off and the green LED illuminates.
The blue LED indicates the output of the neural network is "1" and the yellow LED indicates the output is "0". The program polls the positions of the switches in an infinite loop.

The Micropython program:
Comments