Integrating touch sensor with FED3 through Bonsai

30 views
Skip to first unread message

Leina Gries

unread,
Mar 12, 2026, 4:12:45 PMMar 12
to FEDforum
Hi all! I am running an experiment involving mice physically touching their noses to various stimuli. We monitor this by attaching the stimuli to a capacitive touch sensor, which runs through Bonsai. I am hoping to use the FED3 interface to train mice to touch these stimuli with a specific part of their nose. My ideal setup: the mouse touches the stimuli, the touch sensor activates and triggers bonsai to send a signal to the FED to dispense a pellet. The touch sensor is very mobile - it basically attaches to a wire and then can be put wherever, although I do need to be able to film the mouse closely interacting with the stimuli, so it would not be ideal to put it inside the beam break port. 
I am not sure whether I would need to wire the touch sensor into FED to accomplish this. Is there a way to trigger a pellet delivery from an event other than a beam break, ideally through bonsai? 
Thank you so much for your help!
Leina

Lex

unread,
Mar 12, 2026, 8:34:32 PMMar 12
to Leina Gries, FEDforum
Hi Leina,
I think FED3 can do what you want out of the box.  FED3 has an output/input port (the mono 3.5mm audio port on the side) that you can use to send pulses, or receive pulses to control FED3.  

If you send a pulse from Bonsai to FED3 through that port you can use the Dispenser example in the FED3 library to have it drop a pellet.  I assume you're controlling an Arduino Uno with Bonsai, you'll just need a cable like this one to connect that Uno to FED3.  

Have fun! -Lex

image.png




--
You received this message because you are subscribed to the Google Groups "FEDforum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedforum+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/fedforum/26355c8c-87e2-4b69-9ac6-96f969320e50n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages