Skip to content

Control camera onset and offsets through PySerial, MedPC, and http

Notifications You must be signed in to change notification settings

sronilsson/MedPC-Camera-Control-PySerial-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Controls cameras from MedPC connection panel. Aligns data from DeepLabCut pose-estimation output + MedPC tables + TTLs.

alt-text-1

  • Controls White Matter cameras using http requests and json.
  • Each MedPC control box is connects to a 24V-5V optocoupler which output runs to an Arduino mega.
  • The pins are read by the arduino script and parsed by PySerial.
  • The camera recording status on when 5V is coming out of the optocopler.
  • Displays camera status, last onset and offset times, and the number of recorded sessions, for 12 cameras, in terminal window.
  • Rendered example on YouTube.
  • Press q to disconnect all cameras when session is complete.

About

Control camera onset and offsets through PySerial, MedPC, and http

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published