Raspberry Pi Pico Analogue Multiplexer Expander on Stripboard

by tekyinblack in Circuits > Raspberry Pi

53 Views, 0 Favorites, 0 Comments

Raspberry Pi Pico Analogue Multiplexer Expander on Stripboard

IMG_1035.JPEG
Pins.JPEG

The Raspberry Pi Pico while being a really useful microcontroller has only 3 pin for use with analogue signals. This can be a limitation for some projects, and this small adapter is to expand one of those ADC inputs to eight via a 4051 CMOS multiplexer.

The multiplexer requires three digital inputs to select the input required, and a fourth is used to power the multiplexer as it's power requirements are very small.

The circuit has been assembled on a small piece of stripboard with a PCB socket to ease connectivity.

Supplies

IMG_1027.JPEG

4051B CMOS 8 into 1 multiplexer IC (MC14051B, CD4051B, CD74HC4051)

16 pin dip IC socket

Small piece of stripboard (12 strips by 13 holes)

PCB pins

PCB header socket

Hookup wire

Cut the Stripboard and Attached the PCB Socket

IMG_1029.JPEG
IMG_1028.JPEG
ADC switch reverse.png
IMG_1030.JPEG

The stripboard needs to be cut as 12 strips wide and 13 holes long.

Soldering the PCB header socket is achieved by lining up the socket with the strips and soldering one pin before adjusting and soldering the others pins. The holes should be cut as per the diagram. Unfortunately the picture is an example and doesn't quite align with the diagram.

Solder the IC Socket and PCB Pins to the Board

IMG_1031.JPEG
IMG_1032.JPEG
ADC switch.png

This is the best time to solder the pins to the socket, supporting them with either a breadboard or strips if PCB socket to hold them in place. Once one pin on a strip is fixed, the strip can be adjusted before soldering the others.

Once the pins are in place, the IC socket can be placed and soldered.

An additional pin is shown in the diagram not present in the pictures. This is to allow access to the ADC1 pin on the Pico.

Add the Wiring

IMG_1033.JPEG

There aren't many wire connections to be made, each being made with bare hookup wire.

Once the wiring is complete and checked, the IC can be inserted into the socket.

Example Code to Use the Multiplexer

Pins.JPEG
IMG_1035.JPEG
IMG_1036.JPEG
IMG_1037.JPEG

The multiplexer is connected to the Pico via the PCB header socket as shown.

The first pin is GPIO19 or physical pin 25

An example program to use the multiplexer is held on github here.

Downloads