This is the second repository, in a three-part series, which contains code for behavioral programs which can be used with DIY-NAMIC boxes. This first repository includes build instructions for DIY-NAMIC hardware build instructions. The third repository has code to analyze the data generated from the DIY-NAMIC boxes data analysis repository.
This repository hosts code for some behavioral paradigms that we have run on DIY-NAMIC boxes which are controlled by an Arduino UNO. The paradigms are written in Arduino, which is based on C++. (Note however that the Arduino IDE environment is different, so don't expect all the standard C/C++ features and libraries to work in the IDE.)
Each page will have a logic flow diagram of the programs to aid the reader.
Hardware Testing Program
NOT CURRENTLY USED
- 1. Port Habituation
- 2. Continuous Cue Training:
- 3. Random Forced Choice
- 4. Trial Initiated Reward - Part 1
- 5. Trial Initiated Reward - Part 2 (omission)
- 6. Trial Initiated Reward - Part 3 (delay window)
- 7. Trial Initiated Reward - Variant 2 (Mid On) - Not a Link
- 8. Trial Initiated Reward - Variant 3 (Mid Blink) - Not a Link
- Bugs or Errors in Code
- Refactoring Current Code into a State Machine
- Any GUI (Graphical User Interface) Implementation to change simple parameters
- Typos or grammar mistakes
Feel free to open an issue or submit a pull request or email [email protected].
A big thanks to the open Arduino Forum and the anonymous contributors on the forum. I especially want to thank darrob who provided the initial structure of the code. I don't know who you are but I'm really grateful!
For any questions or issues Jun Ho Lee at [email protected] or Katherine Nautiyal at [email protected].