
Electrode Tester PCB
blakehourigan/Photologic-Experiment-Rig
All CAD files, code, circuity, and documentation for the new Samuelsen lab experiment rig.

All CAD files, code, circuity, and documentation for the new Samuelsen lab experiment rig.
Final PCB is an open-source printed circuit board by blakehourigan, from the blakehourigan/Photologic-Experiment-Rig repository on GitHub, published under the MIT licence. It is a 2-layer board of 182.6 × 75.3 mm with 88 parts on 78 nets, routed with 641 tracks and 39 vias.
It is built around the MBR0540 and IPL1-108-01-L-D-RE1-K-WT. Its parts include 26 resistors, 16 diodes, 16 transistors and 7 capacitors.
This project was created to enable novel experiments regarding smell and taste in Dr. Chad Samuelsen's research laboratory. The primary improvements that this rig provide include a photologic lick detection mechanism, and a simplified, non-motorized approach to stimulus delivery providing a more reliable experience during experimentation.
This repository contains all files needed to reproduce a experimental rig of this type, including all 3d models, CNC machining files, code, and circuit design.
Rig Controller Code
Documentation for the Rig Controller Code can be found at this link.
To use this program with the Arduino board controlling the rig peripherals (motors, optical sensors, etc) on a Windows machine, you must have the Arduino IDE installed. Failing to meet this dependency will result in the Arduino boards failure to connect to the controlling computer.
To install the program on windows, there are two options.
Exe Installer File - To simplify this portion of the rig assembly / installation, a simple .exe installer has been provided. It can be found here.
Running the Source Code - For those that would rather run the program via source code, the process for getting the source code up and running can be found below.
Photologic-Experiment-Rig\Code\Photologic Rig Main Application Code. Once here, you can setup a virtual environment that will contain all depencies for the program by running the following command in a terminal window at this directory: `python -m venv venv'. This may take a few moments.venv\Scripts\Activatesource venv/bin/activate pip install -r requirements.txt.python main.py, the program should now startup.There is no installation file for linux-based systems. Follow the 'Running the Source Code' steps described above.
For those that create new versions of the program to better suit their needs or to fix bugs that will undoubdedly arise through the usage of this program, a Github Gist has been put together detailing the steps you can take to create a new executable file and installer that will make installation/distribution of the program much simpler.
Arduino Code
To upload this code, you will need either the arduino-cli or the Arduino IDE. The Arduino IDE will be easiest to work with and can be found here.
On Windows machines, the Arduino IDE is an optional package in the control software Exe installer discussed above.
If you choose to use the Arduino IDE, you must follow these steps to ensure smooth upload of this code to the Arduino, and proper communication between the Arduino and the control software.
Once the Arduino IDE is installed, open the IDE with the Arduino Mega 2560 board connected to your PC. Your PC will recognize the board and the packages that it needs to install to communicate with it. There will be multiple pop-up windows asking if you would like to install drivers for this board. You must click install on all of these pop-ups. If you do not see these pop-ups and have used your Arduino board previously, you may have these packages already installed, try moving to the next step.
The code used for the Arduino in this project has one external dependency that must be fulfilled. This external dependency is the AccelStepper library by Mike McCauley. The version in use at the time of writing is version 1.64. You will need to install this version in the IDE. To do this, look for the library icon on the left hand side of the Arduino IDE window. It is the third button down. Once clicked, a slide-out window with the heading 'library manager' will open with a search box at the top. Click inside of the search bar and enter 'AccelStepper'. The first result should be the one you are looking for. Click the box filled with the version number (something like 1.64), and look for version 1.64. Click on this version, then click install, it should install rather quickly. Now you can now exit the library manager.
Now, the Arduino code may be uploaded to the board. In the top left hand corner, click 'File', then 'Open', and search for the ArduinoCode directory in the Photologic-Experiment-Rig structure. The file you are looking for will be found at Photologic-Experiment-Rig/Code/ArduinoCode/ArduinoCode.ino. Locate this .ino file and double click on it to select it.
Once this file is open in the IDE, ensure that your board is recognized and selected in the IDE by clicking the dropdown menu just below the 'help' section of the top bar. Here you will see any Arduino boards recognized by the PC. Select your Arduino Mega 2560 board.
With the file open and your board selected, press the green upload button. It is the arrow that looks like this: '-->', the second button of three in the top left hand side of your screen. This will just take a moment, and you will see a 'Done Uploading' message in the bottom right of your screen if it completes successfully.
NOTE - If you see lots of red messages and this code does not upload successfully, please make absolutely sure you installed the 'ArduinoStepper' library and that the board is connected and selected. You might try the board selection dropdown again to make sure of this. If this does not work, try disconnecting and reconnecting the board, and restarting your PC.
At this point your Arduino board and your PC are ready to communicate with each other for your experiments.
3D Printing:
Under contruction
Machining:
Under Contruction
Assembly:
Under contruction
Optical Fiber Setup:
Under contruction
Circuitry:
Under contruction
how to configure the system once assembled.
A SOP (Standard Operating Procedure) for using this rig in an experiment can be found here [blocked].
Each subdirectory in this project contains a README that explains the structure of the files contained within.
This project is licensed under the MIT License - see LICENSE.txt for details.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 18 | 220 Ω | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_Horizontal | R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24, R25 +2 |
| 16 | MBR0540 | Diode_THT:D_DO-15_P15.24mm_Horizontal | D1, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16 |
| 16 | Q_NMOS_GDS | Final_PCB_Footprint:TO-220-3_Vertical | Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q11, Q12, Q13, Q14, Q15, Q16 |
| 7 | IPL1-102-01-L-S-RE1-K-WT | IPL1-102-01-L-S-RE1-K-WT:SAMTEC_IPL1-102-01-L-S-RE1-K-WT | 12V_Power_pins1, Arduino_Power1, IFE91D_2, IFE91D_SPT1, Motor_CTL_Pins1, XTRA_LED_SPT1, XTRA_LED_SPT2 |
| 4 | IPL1-102-01-X-D-RE1-K-WT | IPL1-102-01-L-D-RE1-K-WT:SAMTEC_IPL1-102-01-L-D-RE1-K-WT | IFD97_SPT1, IFD97_SPT2, LED_Logic_Harness1, Motor_Wires1 |
| 3 | 1 uF | Capacitor_THT:CP_Radial_D5.0mm_P2.00mm | C1, C4, C6 |
| 2 | 10 uF | Capacitor_THT:CP_Radial_D10.0mm_P5.00mm | C2, C5 |
| 2 | 1K Ω | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2, R6 |
| 2 | 2.4K Ω | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R5 |
| 2 | 47K Ω | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R3, R7 |
| 2 | Conn_01x02 | Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_Vertical | LEDSPT1, LEDSPT2 |
| 2 | Conn_02x04_Counter_Clockwise | Package_DIP:DIP-8_W7.62mm | OP07C_1, OP07C_2 |
| 1 | 56 Ω | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R8 |
| 1 | 1 uF | Capacitor_THT:CP_Radial_D5.0mm_P2.00mm | C3 |
| 1 | 47 uF | Capacitor_THT:CP_Radial_D4.0mm_P2.00mm | C7 |
| 1 | 56 Ω | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R4 |
| 1 | Conn_02x08_Counter_Clockwise | Final_PCB_Footprint:Motor_Driver_A4988 | MOTOR_DRIVER1 |
| 1 | IPL1-108-01-L-D-RE1-K-WT | IPL1-108-01-L-D-RE1-K-WT:SAMTEC_IPL1-108-01-L-D-RE1-K-WT | ARD2_to_Mosfet_Gates1 |
| 1 | IPL1-108-01-L-D-RE1-K-WT | IPL1-109-01-L-D-RE1-K:SAMTEC_IPL1-109-01-L-D-RE1-K | LED_BOARD_PINS1 |
| 1 | IPL1-116-01-X-D-RE1-K-WT | IPL1-116-01-X-D-RE1-K:SAMTEC_IPL1-116-01-X-D-RE1-K | Valve_Connector1 |
| 1 | MountingHole_3.7mm | MountingHole:MountingHole_3.7mm | MOUNT |
The 85 most common of 88 parts.

blakehourigan/Photologic-Experiment-Rig
All CAD files, code, circuity, and documentation for the new Samuelsen lab experiment rig.

blakehourigan/Photologic-Experiment-Rig
All CAD files, code, circuity, and documentation for the new Samuelsen lab experiment rig.

vroland/epdiy-hardware
Hardware design files for EPDiy: https://github.com/vroland/epdiy.


kbob/MinimumViableSynth
A virtual analog synthesizer with lots of knobs and buttons.



OnionDAO-git/oniondao-badge
An open-source, hacker-conference-style electronic badge built around the ESP32-S3-WROOM-1-N8R8 (8 MB flash + 8 MB Octal PSRAM), with swappable RF / audio / storage modules, an e-paper (or TFT) display socket, a secure…

M0LTE/pi-transceiver
An attempt to build a complete ham radio transceiver around a Raspberry Pi

It measures 182.6 × 75.3 mm and has 2 copper layers, 1.6 mm thick.
88 parts, built around the MBR0540 and IPL1-108-01-L-D-RE1-K-WT. 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 blakehourigan/Photologic-Experiment-Rig repository on GitHub, at the commit this page was made from: the board is Circuitry/Final_PCB/Final_PCB.kicad_pcb and its schematic Circuitry/Electrode Tester PCB/Electrode Tester PCB/Electrode Tester PCB.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).