Operant Box Upgrade - theunissenlab/lab-documentation GitHub Wiki
Notes on upgrade to ephys capable operant box
Feeder models
Arduino wiring
Setting TMC2208 current
to not overload the current, the current motor (NEMA 17 - 17hs3401) is rated at 1.8A
The LED, Power supply, and motor are added for this upgrade. If you remove them and all wires attached to them, the old wiring is there.
Arduino Code
This is the last step. The largest issue here is that arduinos are not capable of multithreaded code, as they have one core. This means that the logical way to do this, when you send a signal to feed, you commence a feeding loop, turning the motor at regular intervals, doesnt happen.
When adding box1 to plump:
- Change /etc/udev/rules.d/arduino.rules to add dev/ttyArduino_box1. Find serial by using: udevadm info -q all -a /dev/ttyACM4
- vim /data/pecking_test/configs/supervisord.conf
- change /etc/udev/rules.d/webcam.rules
- add box1 to local_tlab.py