You are on page 1of 7
Food Living Outside Play Technology Workshop Arduino system for Biomonstaaar bioreactor
Food
Living
Outside
Play
Technology
Workshop
Arduino system for Biomonstaaar bioreactor

by alanpusongli on February 23, 2014 Table of Contents

Arduino system for Biomonstaaar bioreactor

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

1

Intro:

Arduino system for Biomonstaaar bioreactor

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

2

Step 1:

Materials

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

2

Step 2:

Initial setup

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

5

Step 3:

Software setup

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

5

Step 4:

Wiring

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

Step 5:

Running the Code

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

Step 6:

Driving the Sensor-Hub in Python (optional)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

Related Instructables

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

Advertisements

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

7

Comments

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

7

http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/

Intro: Arduino system for Biomonstaaar bioreactor

This project is the setup for the Arduino Sensor/motor hub for the Biomonstaaar bioreactor. The finished product is used to interface with the sensors and other parts of the reactor in order to allow data collection or automated reactor control.

Intro: Arduino system for Biomonstaaar bioreactor This project is the setup for the Arduino Sensor/motor hub

Step 1: Materials

You'll need an Arduno Mega 2560, as well as the its power supply and a USB cable to interface with it. The sensor kits and peristaltic pumps are used to read from and control the rest of the reactor.

Intro: Arduino system for Biomonstaaar bioreactor This project is the setup for the Arduino Sensor/motor hub

Image Notes

1. Arduino Mega 2560 - Arduino - $28

Intro: Arduino system for Biomonstaaar bioreactor This project is the setup for the Arduino Sensor/motor hub

Image Notes

1. Motor Shield L293D - Adafruit - $8

http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/

Image Notes 1. pH Sensor Kit - Atlas Scienfific - $106 1. Conductivity Sensor Kit -

Image Notes

  • 1. pH Sensor Kit - Atlas Scienfific - $106

Image Notes 1. pH Sensor Kit - Atlas Scienfific - $106 1. Conductivity Sensor Kit -

Image Notes

  • 1. Conductivity Sensor Kit - Atlas Scienfific - $160

Image Notes 1. pH Sensor Kit - Atlas Scienfific - $106 1. Conductivity Sensor Kit -

Image Notes

  • 1. Dissolved Oxygen Sensor Kit - Atlas Scienfific - $193

Image Notes 1. pH Sensor Kit - Atlas Scienfific - $106 1. Conductivity Sensor Kit -

Image Notes

  • 1. ORP (Oxidation Reduction Potential) Sensor Kit - Atlas Scientific - $132

http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/

Image Notes 1. Color Sensor - Atlas Scientific - $40 Image Notes 1. Breadboard Image Notes

Image Notes

1. Color Sensor - Atlas Scientific - $40 Image Notes 1. Breadboard
1.
Color Sensor - Atlas Scientific - $40
Image Notes
1.
Breadboard
Image Notes 1. Color Sensor - Atlas Scientific - $40 Image Notes 1. Breadboard Image Notes

Image Notes

  • 1. eTape water level sensor - Adafruit - $40

Image Notes 1. Color Sensor - Atlas Scientific - $40 Image Notes 1. Breadboard Image Notes

Image Notes

  • 1. USB Peripheral cable

http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/

Image Notes 1. Peristaltic Liquid Pump - Adafruit - $25 x 4 Step 2: Initial setupp Arduino IDE 1.0.5: http://arduino.cc/en/main/software#.UwmAWfldUa4 Launch the IDE after download and installation. Open the "Tools" menu, and select "Arduino Mega 2560". Open "Serial port" menu, and select the available COM port. If you are new to Arduino, you might want to try some example code from the "File-Examples" menu. http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/ " id="pdf-obj-4-2" src="pdf-obj-4-2.jpg">

Image Notes

1.

Peristaltic Liquid Pump - Adafruit - $25 x 4

Step 2: Initial setup

 

This picture is when I was developing the code. Final wiring board pictuure and diagram can be found in Biomonstaaar project documentation. In any case the wiring should be about the same (pinout specified in the next step)

First you will want to connect the Arduino to your PC using the USB peripheral cable without all the wiring. Windows may take some time to install the USB-to-serial port driver. Launch the Windows 7 device manager, expand the "Ports (COM & LPT)" node to confirm the comm port is installed properly (it may be different per install result, not always COM5 as shown here)

Image Notes Image Notes 1. Look for something like this

Image Notes

Image Notes Image Notes 1. Look for something like this

Image Notes

1. Look for something like this

1.

Motor ports

2.

More motor ports

3.

connections for the color sensor

Step 3: Software setup

Launch the IDE after download and installation. Open the "Tools" menu, and select "Arduino Mega 2560". Open "Serial port" menu, and select the available COM port. If you are new to Arduino, you might want to try some example code from the "File-Examples" menu.

http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/

Step 4: Wiring

Now wire up the sensors based on the table. The Rx and Tx pins should go to the specified digital I/O pin on the Arduino.

Water level Analog pin A15 with 560 ohm resister, see eTape data sheet for details

Step 4: Wiring Now wire up the sensors based on the table. The Rx and Txhttps://github.com/BioMONSTAAAR/reactor/tree/mast ... Open it with the IDE and hit Ctrl+u, the code shall be compiled and then loaded to the Arduino Mega. Hit Ctrl+shift+m to open the Serial Monitor. Sensors and motors are interfaced with the following acronyms: PH, ph pH sensor OR, or ORP sensor EC, ec Conductivity sensor DO, do Dissolved Oxygen Sensor CL, cl Color sensor ET, et Water level sensor MC, mc Motor control To interface with a sensor or motor , t yp e its acronym and the command you want to send it. Commands for sensors can be found at the Atlas scientific website (go to https://www.atlas-scientific.com/embedded.html and look for the datasheets). Commands for motors follow the form mc<motor port number><command>. The commands are h, m, l, and x, which tell the motor to run at high speed , medium speed, low speed, and stop respectively. By default, some sensor circuits will continuously read and print values. If you see, for example, "PH, 7.00" continously printing, type "phe" to end the continuous print mode. Here are some example commands and the results: clr read color etr read water level phx reset ph circuit to factory setting phL1 enable ph circuit debug LED mc1h turn on motor 1 to high speed (h=high, m=middle, l=low) mc4x turn off motor 4 Step 6: Driving the Sensor-Hub in Python (optional) If you got this far, you may wonder if the terminal commands can be automated based on sensor readings. Yes, take a look at https://github.com/BioMONSTAAAR/reactor/tree/master/src/rPi. The "oneport_csv_io.py" file will allow a computer or other device connected to the Arduino to interface with it using CSV files, allowing the writing of control loops. Related Instructables BioMONSTAAAR' Heating and Raspberry Pi Cooling System manager for BioMONSTAAAR by algae bioreactor AticoComparte by benbongalon BioMONSTAAAR' H/C Control board by jrsikken How To Make an Algae Test Photo Bioreactor Part ... Five by dsieg58 Biomonstaaar's Fluorescent Li g hts b y SunnyAllen How To Make an Algae Test Photo Bioreactor Part ... Three by dsieg58 http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/ " id="pdf-obj-5-9" src="pdf-obj-5-9.jpg">

Step 5: Running the Code

Open it with the IDE and hit Ctrl+u, the code shall be compiled and then loaded to the Arduino Mega. Hit Ctrl+shift+m to open the Serial Monitor.

Sensors and motors are interfaced with the following acronyms:

PH, ph pH sensor OR, or ORP sensor EC, ec Conductivity sensor DO, do Dissolved Oxygen Sensor CL, cl Color sensor ET, et Water level sensor MC, mc Motor control

To interface with a sensor or motor, type its acronym and the command you want to send it. Commands for sensors can be found at the Atlas scientific website (go to https://www.atlas-scientific.com/embedded.html and look for the datasheets). Commands for motors follow the form mc<motor port number><command>. The commands are h, m, l, and x, which tell the motor to run at high speed , medium speed, low speed, and stop respectively.

By default, some sensor circuits will continuously read and print values. If you see, for example, "PH, 7.00" continously printing, type "phe" to end the continuous print mode.

Here are some example commands and the results:

clr read color

etr read water level

phx reset ph circuit to factory setting

phL1 enable ph circuit debug LED

mc1h turn on motor 1 to high speed (h=high, m=middle, l=low)

mc4x turn off motor 4

Step 6: Driving the Sensor-Hub in Python (optional)

If you got this far, you may wonder if the terminal commands can be automated based on sensor readings. Yes, take a look at https://github.com/BioMONSTAAAR/reactor/tree/master/src/rPi. The "oneport_csv_io.py" file will allow a computer or other device connected to the Arduino to interface with it using CSV files, allowing the writing of control loops.

Related Instructables

BioMONSTAAAR' Heating and Raspberry Pi Cooling System manager for BioMONSTAAAR by algae bioreactor AticoComparte
BioMONSTAAAR'
Heating and
Raspberry Pi
Cooling System
manager for
BioMONSTAAAR
by
algae bioreactor
AticoComparte
Step 4: Wiring Now wire up the sensors based on the table. The Rx and Txhttps://github.com/BioMONSTAAAR/reactor/tree/mast ... Open it with the IDE and hit Ctrl+u, the code shall be compiled and then loaded to the Arduino Mega. Hit Ctrl+shift+m to open the Serial Monitor. Sensors and motors are interfaced with the following acronyms: PH, ph pH sensor OR, or ORP sensor EC, ec Conductivity sensor DO, do Dissolved Oxygen Sensor CL, cl Color sensor ET, et Water level sensor MC, mc Motor control To interface with a sensor or motor , t yp e its acronym and the command you want to send it. Commands for sensors can be found at the Atlas scientific website (go to https://www.atlas-scientific.com/embedded.html and look for the datasheets). Commands for motors follow the form mc<motor port number><command>. The commands are h, m, l, and x, which tell the motor to run at high speed , medium speed, low speed, and stop respectively. By default, some sensor circuits will continuously read and print values. If you see, for example, "PH, 7.00" continously printing, type "phe" to end the continuous print mode. Here are some example commands and the results: clr read color etr read water level phx reset ph circuit to factory setting phL1 enable ph circuit debug LED mc1h turn on motor 1 to high speed (h=high, m=middle, l=low) mc4x turn off motor 4 Step 6: Driving the Sensor-Hub in Python (optional) If you got this far, you may wonder if the terminal commands can be automated based on sensor readings. Yes, take a look at https://github.com/BioMONSTAAAR/reactor/tree/master/src/rPi. The "oneport_csv_io.py" file will allow a computer or other device connected to the Arduino to interface with it using CSV files, allowing the writing of control loops. Related Instructables BioMONSTAAAR' Heating and Raspberry Pi Cooling System manager for BioMONSTAAAR by algae bioreactor AticoComparte by benbongalon BioMONSTAAAR' H/C Control board by jrsikken How To Make an Algae Test Photo Bioreactor Part ... Five by dsieg58 Biomonstaaar's Fluorescent Li g hts b y SunnyAllen How To Make an Algae Test Photo Bioreactor Part ... Three by dsieg58 http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/ " id="pdf-obj-5-59" src="pdf-obj-5-59.jpg">
How To Make an Algae Test Photo Bioreactor Part ... Five by dsieg58
How To Make an
Algae Test
Photo
Bioreactor Part ...
Five by dsieg58
Step 4: Wiring Now wire up the sensors based on the table. The Rx and Txhttps://github.com/BioMONSTAAAR/reactor/tree/mast ... Open it with the IDE and hit Ctrl+u, the code shall be compiled and then loaded to the Arduino Mega. Hit Ctrl+shift+m to open the Serial Monitor. Sensors and motors are interfaced with the following acronyms: PH, ph pH sensor OR, or ORP sensor EC, ec Conductivity sensor DO, do Dissolved Oxygen Sensor CL, cl Color sensor ET, et Water level sensor MC, mc Motor control To interface with a sensor or motor , t yp e its acronym and the command you want to send it. Commands for sensors can be found at the Atlas scientific website (go to https://www.atlas-scientific.com/embedded.html and look for the datasheets). Commands for motors follow the form mc<motor port number><command>. The commands are h, m, l, and x, which tell the motor to run at high speed , medium speed, low speed, and stop respectively. By default, some sensor circuits will continuously read and print values. If you see, for example, "PH, 7.00" continously printing, type "phe" to end the continuous print mode. Here are some example commands and the results: clr read color etr read water level phx reset ph circuit to factory setting phL1 enable ph circuit debug LED mc1h turn on motor 1 to high speed (h=high, m=middle, l=low) mc4x turn off motor 4 Step 6: Driving the Sensor-Hub in Python (optional) If you got this far, you may wonder if the terminal commands can be automated based on sensor readings. Yes, take a look at https://github.com/BioMONSTAAAR/reactor/tree/master/src/rPi. The "oneport_csv_io.py" file will allow a computer or other device connected to the Arduino to interface with it using CSV files, allowing the writing of control loops. Related Instructables BioMONSTAAAR' Heating and Raspberry Pi Cooling System manager for BioMONSTAAAR by algae bioreactor AticoComparte by benbongalon BioMONSTAAAR' H/C Control board by jrsikken How To Make an Algae Test Photo Bioreactor Part ... Five by dsieg58 Biomonstaaar's Fluorescent Li g hts b y SunnyAllen How To Make an Algae Test Photo Bioreactor Part ... Three by dsieg58 http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/ " id="pdf-obj-5-67" src="pdf-obj-5-67.jpg">
How To Make an Algae Test Photo Bioreactor Part ... Three by dsieg58
How To Make an
Algae Test
Photo
Bioreactor Part ...
Three by dsieg58

http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/

Comments

http://www.instructables.com/id/Arduino-system-for-Biomonstaaar-bioreactor/