
Bioreactor pcb
danlil666/EFRI_bioreactor
This repository hosts files to build and operate Machine Agency Bioreactor, a modular toolkit for developing custom bioreactors.

This repository hosts files to build and operate Machine Agency Bioreactor, a modular toolkit for developing custom bioreactors.
Bioreactor parallel pcb v1 is an open-source printed circuit board by danlil666, from the danlil666/EFRI_bioreactor repository on GitHub. It is a 2-layer board of 42.3 × 42.3 mm with 22 parts on 37 nets, routed with 339 tracks and 25 vias.
It is built around the DMG3415U-7 and ZLDO1117GTA. Its parts include 5 resistors, 4 capacitors, 3 ICs, 2 transistors and 1 diode. It belongs with the SAM D and SAM boards of this library.
This repository hosts files to build and operate Machine Agency Bioreactor, a modular toolkit for developing custom bioreactors. Our toolkit contains custom hardware and software for adding chemicals, monitoring the mixture, and refining outputs. The current toolkit is designed to support beer brewing application, an automated process which involves several biochemical reactions that are comparable to other synthetic biology processes.
I'm learning how to use CircuitPython on Seeed Xiao to further offload the programming complexity of using Arduino.
I still want to establish serial communication between the laptop and the Xiao boards. To do so, I started with establishing a debugging REPL using MacOS's built-in terminal.
Connecting to the serial console on Mac does not require installing any drivers or extra software. You'll use a terminal program to find your board, and screen to connect to it. Terminal and screen both come installed by default.
The easiest way to determine which port the board is using is to first check without the board plugged in. Open Terminal and type the following:
ls /dev/tty.*Now, plug your board. In Terminal, type ls /dev/tty.* again. It shows
/dev/tty.usbmodem[some_number]on my terminal. The last few digits might change depending on which particular port Xiao is plugged in.
Now that you know the name your board is using, you're ready connect to the serial console. You're going to use a command called screen. The screen command is included with MacOS. To connect to the serial console, use Terminal. Type the following command, replacing board_name with the name you found your board is using:
screen /dev/tty.usbmodem142401 115200Press enter to run the command. It will open in the same window. If no code is running, the window will be blank. Otherwise, you'll see the output of your code.
Press Ctrl + C to enter interactive REPL.
To exit Screen session completely:
Make sure the Terminal window has focus.
Type Ctrl+A (you won’t see anything displayed yet)
Then type Ctrl+\ (the forward slash is located below Delete)
At the bottom of the Terminal window, you should see “Really quit and kill all your windows [y/n]”. Type “y”.
I was using Xiao SAMD21 and there is a very good guide on how to get CircuitPython on it. However, Seeed Xiao SAMD21 has a limited flash, only 48kb after installing CircuitPython. With my luck I managed to stuffed in stepper motor libraries, but I was stuck on getting I2C and bus libraries. For these libraries, using Seeed Xiao ESP32S3 is a viable alternative because it has MBs of flash available.
The following steps are adapted from this wonderful guide.
There is no Xiao ESP32S3-specific CircuitPython .bin firmware as of Jan 21 2024, so using Espressif - ESP32-S3-DevKitM-1-N8 is currently the best way to do it. Download the latest .bin from the link.
This must be done over serial. I'm using esptool, but there is also guidance on how to use the web serial browser based tool (easy method, but requires a Chrome webbrowser).
In the terminal, install esptool using pip if you haven't yet. More instruction can be found here
pip install esptoolFind all serial devices by running ls /dev/tty.*. On Mac it is usually /dev/tty.usbmodem******.
Once you have esptool installed, you will first want to erase the flash on your ESP32 board, it's also a great way to determine that you are able to connect. Change the serial address to the one that shows up on your terminal. I'm using ESP32S3 so the chip argument is also changed.
esptool.py --chip esp32s3 --port /dev/tty.usbmodem142401 erase_flash
If you're not 100% sure which ESP32 chip you have, you can just specify the port: esptool.py --port /dev/tty.usbmodem****** erase_flash
Once the flash is successfully erased, you can load your firmware .bin file by running something similar to the command below. Make sure you update the following:
The port to match the serial port to which your board is connected, i.e. change /dev/tty.usbsmodem****** to match your connection.
The firmware.bin file name to match the firmware you downloaded, i.e. change firmware.bin to something like adafruit-circuitpython-espressif_esp32s3_devkitm_1_n8-en_US-8.2.9.bin.
This command assumes you will be loading it to address 0x0, as we do for circuitpython. This may not be true for your firmware! check the documentation for the offset if necessary.
Load the firmware using something similar to the following command, with the above changes:
esptool.py --port /dev/tty.usbmodem142401 write_flash -z 0x0 adafruit-circuitpython-espressif_esp32s3_devkitm_1_n8-en_US-9.2.0.bin
You will then see a flash storage unit named CIRCUITPY popping up.
Step 1. Press and hold the BOOT button on the XIAO ESP32S3 without releasing it.
Step 2. Keep the BOOT button pressed and then connect to the computer via the data cable. Release the BOOT button after connecting to the computer.
Step 3. Upload the Blink program to check the operation of the XIAO ESP32S3.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 10k | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R1, R4, R5 |
| 2 | 100uF | Capacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolder | C1, C2 |
| 2 | Conn_01x04_Pin | TE_connector:640457-4_TYC | MOTOR1, MOTOR2 |
| 2 | DMG3415 | Package_TO_SOT_SMD:SOT-23 | Q1, Q2 |
| 2 | TB6612FNG | Package_SO:SSOP-24_5.3x8.2mm_P0.65mm | U2, U3 |
| 1 | 0.1uF | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C3 |
| 1 | 10 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R3 |
| 1 | 10uF | Capacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolder | C4 |
| 1 | 110 | Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolder | R2 |
| 1 | Conn_01x02_Pin | TE_connector:640455-2_TYC | VMOTOR_chain1 |
| 1 | Conn_01x04_Pin | Connector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_Horizontal | I2C1 |
| 1 | J1 | TE_connector:640455-2_TYC | Vin1 |
| 1 | LED | TE_connector:640455-2_TYC | D1 |
| 1 | R1000 | PVG3G:PVG3G_BRN | RV1 |
| 1 | SeeeduinoXIAO | seeed_xiao:Seeeduino XIAO-MOUDLE14P-2.54-21X17.8MM | U1 |
| 1 | ZLDO1117 | Package_TO_SOT_SMD:SOT-223 | Reg1 |

danlil666/EFRI_bioreactor
This repository hosts files to build and operate Machine Agency Bioreactor, a modular toolkit for developing custom bioreactors.

freakontrol/stmbl
THE AUTHORS OF THIS SOFTWARE ACCEPT ABSOLUTELY NO LIABILITY FOR ANY HARM OR LOSS RESULTING FROM ITS USE. IT IS EXTREMELY UNWISE TO RELY ON SOFTWARE ALONE FOR SAFETY.





coon42/stmbl_otter
sudo dfu-util -d 0483:df11 -a 0 -s 0x8000000:leave -D objhvf3/hvf3.bin

danlil666/documentation
This is the starting point of me trying to use GitHub.

It measures 42.3 × 42.3 mm and has 2 copper layers, 1.6 mm thick.
22 parts, built around the DMG3415U-7 and ZLDO1117GTA. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the danlil666/EFRI_bioreactor repository on GitHub, at the commit this page was made from: the board is bioreactor_parallel_pcb_v1/bioreactor_parallel_pcb_v1.kicad_pcb and its schematic bioreactor_parallel_pcb_v1/bioreactor_parallel_pcb_v1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask danlil666 before reusing the design.