Skip to content
HugoGreenhill edited this page Dec 5, 2024 · 7 revisions

Setup information for hardware and software

Arduino - Start-up

Set-up for arduino environments

Download the Arduino IDE here (for Win64) NOTE - If you download all arduino libraries FIRST, you will not need to add them to your environment, the bootstrapper will do so for you.

All Arduino Libraries are held here, or accessed via Headfixed_5sipper (main) >> Setup >> Arduino_Libraries

Download all Arduino libraries (as .ZIP files) and upload to Arduino IDE via Sketch (top-left corner) >> Include Library >> Add .ZIP Library

Arduino Functions

Load the functions from Arduino Code into your Arduino IDE.

Descriptions of functions:

  1. Button.ino >> checkbuttons() | Allows adjustment of spout in boot-up while checking buttons B & C, runtime updated on OLED screen.
  2. Dispense.ino >> dispense(int selection) | Dispenses appropriate amount of solution through the spout selection. Volume is pre-set requires editing: switch statement and global variable volume should be implemented
  3. Display.ino >> UpdateDisplay() | Updates OLED display
  4. Retract_Extend.ino >> retract() - allows retraction of the spout via servo || extend() - allows extension of the spout via servo -- implemented to go to position pos (defined at Arduino boot) requires editing: closed-loop with lickometer to adjust if over-extended/not far enough
  5. Rotate.ino >> spoutPosition(int num) | Uses _num _to define which spout is being used, and rotates the spouts such that appropriate spout is in front of mouse.
  6. Timeout.ino >> timeout(int low, int high) | Uses a a timeout of random duration between low and high seconds to prevent continuous trials
  7. Tone.ino >> playtone(int frequency, int duration) | Plays a tone of frequency pitch for duration time || noise() | Plays a random set of tones (20ms each) for 1 second (50 random tones)
  8. Wash.ino >> dispenses through all 5 ports, to be implemented with EtOH and H2O
  9. customDelay.ino >> customDelay(int milliseconds) | does nothing over _milliseconds _of time and updates display after delay. This allows gravity-fed alteration of dispensed volume

Bonsai - Start-up

Download and initialize Bonsai

Download the Bonsai installer here, and if applicable the portable .ZIP folder

Setting up your environment:

You can use Bonsai.config from a previous user of Bonsai to record installed dependencies for a setup (stored in same location as executable) >> Finds and downloads all packages necessary to recover the expected state. OR follow the following list of packages:

  1. AForge
  2. AForge.Video
  3. AForge.Video.DirectShow
  4. Bonsai
  5. Bonsai - Allied Vision Library
  6. Bonsai - Arduino Library
  7. Bonsai - Audio Library
  8. Bonsai - CMT Library
  9. Bonsai - Core Library
  10. Bonsai - DeepLabCut Library
  11. Bonsai - DeepLabCut Design Library
  12. Bonsai - Design Library
  13. Bonsai - Visualizers Library
  14. Bonsai - Dsp Library
  15. Bonsai - Dsp Design Library
  16. Bonsai - Editor
  17. Bonsai - Ephys Library
  18. Bonsai - Ephys Design Library
  19. Bonsai - Harp Library
  20. Bonsai - Numerics Library
  21. Bonsai - Osc Library
  22. Bonsai - Photon Counting Library
  23. Bonsai - Player
  24. Bonsai - PointGrey Library
  25. Bonsai - PointGrey2 Library
  26. Bonsai - Scripting Library
  27. Bonsai - Shaders Library
  28. Bonsai - Spinnaker Library
  29. Bonsai - Starter Pack
  30. Bonsai - System Library
  31. Bonsai - System Design Library
  32. Bonsai - Video Library
  33. Bonsai - Video Design Library
  34. Bonsai - Vision Library
  35. Bonsai - Windows Input Library
  36. CMT.NET
  37. FTD2XX_NET Managed Wrapper
  38. IronPython
  39. IronPython Standard Library
  40. ScintillaNET Source Editing Component
  41. Math.NET Numerics
  42. Neurophotometrics
  43. Neurophotometrics.Design
  44. OpenAL Redist
  45. OpenCV Overlay
  46. OpenCV.NET
  47. OpenTK
Clone this wiki locally