Skip to content

An implementation of a Raspberry Pi RP2040 Pico and an Adafruit MCP4725 DAC to serially control a QSonica125 sonicator board and tool.

License

Notifications You must be signed in to change notification settings

MariaPoliti/rp2040_MCP4725_Sonicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rp2040_MCP4725_Sonicator

An implementation of a Raspberry Pi RP2040 Pico and an Adafruit MCP4725 DAC to serially control a QSonica125 sonicator board and tool.

This repository contains the necessary files to set up a Pico microcontroller to serially control a QSonica Sonicator PCB board and Tool. You can find an implementation of this in the following repository, as well as its original implementation using a Raspberry Pi SBC and a PCB board [here] (https://github.com/machineagency/sonication_station).

Setting up the RP2040 Pico microcontroller

The projects implements the Raspberry Pi Pico C/C++ SDK.

To start, you should clone the GitHub repository for the Pico-sdk in your PROJECT_DIRECTORY and set up all the required submodules by running the following command in the sdk directory:

git submodule update --init --recursive

You can now follow the instructions to Quick-start your own project.

The CMakelists.txt, as well as the main.c files can be found here and should be placed in your PROJECT_DIRECTORY too.

Compile the Firmware

Create a /build directory and navigate to it, then run the following commands:

cmake ..

This creates all the files required to later create the executable .uf2 files. You can do so by running :

make

Upload the Firmware onto the RP2040

Load the Pico in BOOTSEL mode and plug it into your computer's usb. Now, you can drag-and-drop the generated .uf2 file into the mass storage device representing the Pico. It should now be automatically ejected and ready to use.

Editing the Firmware

You can edit the main.c file to change which pins you are using to connect to the MCP4725 DAC or which GPIO pin turns on/off the sonicator. If you do so, you will need to re-run the following command:

make

Note: if you make changes to the `CMakeLists.txt` file, you will need to re-create the `/build` folder, navigate to it, and run `cmake ..` , followed by `make` too. 

Hardware Checklist

Sonicator Tool

Raspberry Pi Pico Microcontroller

One of the ways to interface with the sonicator control PCB board is using a Raspberry Pi Pico microcontroller. This solution allows the user to interface the tool through their computer directly, instead of relying on a Raspberry Pi SBC. To set up the RP2040 pico, the instructions and necessary files can be found in the rp2040 folder.

For this solution, the following items are required:

Below is a schematics for the assembly:

About

An implementation of a Raspberry Pi RP2040 Pico and an Adafruit MCP4725 DAC to serially control a QSonica125 sonicator board and tool.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published