## Task Examples (Arduino) The six training stages of the *Follow the Light* task (see [Task Examples (Bpod)](tasks_bpod.md)), run by an Arduino instead of a Bpod (`BEHAVIOR_CONTROLLER` set to `OTHER`). Each page has the task and the part of the firmware that runs its trials. All of them use the same firmware, [village_arduino.ino](village_arduino.md), uploaded once to the board. | File | What it shows | | :--- | :--- | | [arduino_1_habituation.py](arduino_1_habituation.md) | Arduino version of [bpod_1_habituation.py](bpod_1_habituation.md): the same task and states (see its diagram), run by an Arduino that reports every state and poke to the Raspberry Pi. | | [arduino_2_passive.py](arduino_2_passive.md) | Arduino version of [bpod_2_passive.py](bpod_2_passive.md): the same task and states (see its diagram), run by an Arduino that reports every state and poke to the Raspberry Pi. The ITI and the penalty, if any, are timed by the Raspberry Pi. | | [arduino_3_active.py](arduino_3_active.md) | Arduino version of [bpod_3_active.py](bpod_3_active.md): the same task and states (see its diagram), run by an Arduino that reports every state and poke to the Raspberry Pi. The ITI and the penalty, if any, are timed by the Raspberry Pi. | | [arduino_4_center_initiated.py](arduino_4_center_initiated.md) | Arduino version of [bpod_4_center_initiated.py](bpod_4_center_initiated.md): the same task and states (see its diagram), run by an Arduino that reports every state and poke to the Raspberry Pi. The ITI and the penalty, if any, are timed by the Raspberry Pi. | | [arduino_5_introduce_penalty.py](arduino_5_introduce_penalty.md) | Arduino version of [bpod_5_introduce_penalty.py](bpod_5_introduce_penalty.md): the same task and states (see its diagram), run by an Arduino that reports every state and poke to the Raspberry Pi. The ITI and the penalty, if any, are timed by the Raspberry Pi. | | [arduino_6_delay.py](arduino_6_delay.md) | Arduino version of [bpod_6_delay.py](bpod_6_delay.md): the same task and states (see its diagram), run by an Arduino that reports every state and poke to the Raspberry Pi. The ITI and the penalty, if any, are timed by the Raspberry Pi. | They need the same calibrations as the Bpod ones (see [Water Calibration](../calibrations/water.md) and [Sound Calibration](../calibrations/sound.md)): - **Stages 2 to 6:** water, for ports 1 and 3. - **Stages 5 and 6:** also the `tone_600` sound, for speaker 0 (left) at 70 dB: the penalty tone. The example [training protocol](training_protocol.md) moves the subjects through the Bpod tasks. To use it with these ones, change the task names in it (`Bpod1Habituation` → `Arduino1Habituation`, `Bpod2Passive` → `Arduino2Passive`...): they read the same settings and register the same values.