Manual control of Bpod

Using pybpod-api, you can directly interact with the Bpod hardware. This may be useful for testing and debug purposes.

After installing pybpod-api, open a python terminal and run the following commands:

from pybpodapi.protocol import Bpod # import Bpod main class

# connect to bpod

my_bpod = Bpod() # Start bpod

# set poke led connected on port 1 to maximum intensity
my_bpod.manual_override(Bpod.ChannelTypes.OUTPUT, Bpod.ChannelNames.PWM, channel_number=1, value=255)

# set poke led connected on port 1 to half intensity
my_bpod.manual_override(Bpod.ChannelTypes.OUTPUT, Bpod.ChannelNames.PWM, channel_number=1, value=128)

# turn off poke led connected on port 1
my_bpod.manual_override(Bpod.ChannelTypes.OUTPUT, Bpod.ChannelNames.PWM, channel_number=1, value=128)

# disconnect from bpod
my_bpod.close()