Analog circuits
The Arduino is great at dealing with a wide range of different inputs (digital and analog), and there is an ever-expanding range of dedicated chips for dealing with different types of signals, however it's good to know a few analog circuits for detecting things and getting them into the range for reading with the Arduino or with your favorite digital acquisition boards.
![](https://static.wixstatic.com/media/6912cb_da38e1b50f664461bcbefd39a26d4def.png/v1/fill/w_140,h_125,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/6912cb_da38e1b50f664461bcbefd39a26d4def.png)
IR beam break circuit
This circuit consists of an IR led aimed at (or reflecting toward) a photodetector such as a phototransistor or photodiode. This is useful for detecting whether an animal has reached a particular part of your behavioral arena (such as a choice or reward port, or a specific arm of a multi-arm maze).
![](https://static.wixstatic.com/media/6912cb_d888fed80532422889e3d351c1836ad3.jpg/v1/fill/w_140,h_108,al_c,q_80,usm_0.66_1.00_0.01,enc_avif,quality_auto/6912cb_d888fed80532422889e3d351c1836ad3.jpg)
Opamps
Many volumes can be written on the use of opamps for diverse purposes. We're only going to talk about a few things that we've used them for, and some things to keep in mind when working with them.
![](https://static.wixstatic.com/media/6912cb_9ef05f65390846ef9c9c3c2a1dd0b15f.png/v1/fill/w_122,h_141,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/6912cb_9ef05f65390846ef9c9c3c2a1dd0b15f.png)
Transistors as switches or amplifiers
Transistors are the fundamental building blocks of modern technology, and they are still quite useful at the laboratory scale. I mostly use them either as switches for when I don't need to use a whole H-bridge, or as amplifiers for certain types of signals (it's most often better to use opamps for this purpose however).
![](https://static.wixstatic.com/media/6912cb_2b96d4c2cacd459e8ed40fe836a69cb9.jpg/v1/fill/w_140,h_76,al_c,q_80,usm_0.66_1.00_0.01,enc_avif,quality_auto/6912cb_2b96d4c2cacd459e8ed40fe836a69cb9.jpg)
Other circuits
This is a section for odds and ends that might be useful, such as using 555 timer chips for building Scmitt triggers.