The DIY-NAMIC system is integrated into the homecage of standard mouse cages. A, The Arduino and all components of the DIY-NAMIC system are enclosed within the red encasing with the exception of a syringe for water or liquid reward, mounted on the outside. Modified cages remain compatible with most standard high-density ventilated racks. B, Inside homecage view of the DIY-NAMIC system including three noseports with blue LEDs illuminated, each of which contain a spout for liquid reward. C, The inside of the apparatus is shown including LEDs, solenoids, and IR head entry detectors wired to an Arduino UNO through an OpenMaze (OM1) shield. D, Schematic wiring diagram shows the wiring of one set of components (for one noseport of three total) to the OM1 shield. Blue rectangles indicate location of stacking headers for connection to Arduino. Red rectangles indicate locations of chip socket for H-bridge (h), push button for flush (b), and barrel jack (j). Green rectangles indicate location of female headers for connection to IR (LED and photodetector), cue LED, and solenoid components.