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).
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.
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
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.
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.
- Q125 Sonicator Horn
- Sonicator Probe (various probe sizes, including pn: 4423, pn: 4422, and pn: 4435)
- Sonicator Control PCB, pn: KITVC1025 (20kHz) or pn: KITVC1045 (40kHz)
- Sonicator Wiring Harness
- 1x Molex: 0022552102
- 3x Molex: 0016020086
- 1x McMaster-Carr: 7243K117 for the sonicator horn wiring
- 1x McMaster-Carr: 7243K122 for the sonicator horn wiring
- 1x Digikey: ED10562-ND
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:
- 1x Raspberry Pi Pico RP2040 microcontroller
- 1x Adafruit MCP4725 12-bit DAC
- 1x Half-size Breadboard, alternatively you can also purchase a Half-size soldering breadboard
- 1x Breadboard wire bundle
- 1x 2N7000 MOSFET
- 1x 100𝜇F Capacitor
- 1x 4.7kΩ Resistor