Welcome, Guest
You have to register before you can post on our site.

Search Forums

(Advanced Search)

Latest Threads
Rotary Encoder Module v2 ...
Forum: Hardware
Last Post: rk96
01-31-2023, 11:46 PM
» Replies: 0
» Views: 158
Analog Input Module Firmw...
Forum: Hardware
Last Post: Josh
01-26-2023, 05:26 PM
» Replies: 1
» Views: 229
Bpod Console Manual Overr...
Forum: Hardware
Last Post: Josh
01-23-2023, 07:26 PM
» Replies: 1
» Views: 577
Hifi module bugs
Forum: Hardware
Last Post: trose_neuro
01-13-2023, 02:44 PM
» Replies: 5
» Views: 2,298
Standing Desk Makes Your ...
Forum: Neuro Technology Chat
Last Post: electricstandingdesk
12-18-2022, 04:36 PM
» Replies: 0
» Views: 1,989
trial manager
Forum: Software
Last Post: Josh
12-17-2022, 01:46 AM
» Replies: 1
» Views: 1,419
issue accessing SD card
Forum: Software
Last Post: Josh
12-07-2022, 01:38 AM
» Replies: 1
» Views: 506
connect to Bonsai via the...
Forum: Software
Last Post: chris
12-01-2022, 05:36 AM
» Replies: 2
» Views: 719
Changing the threshold fo...
Forum: Hardware
Last Post: Josh
11-29-2022, 07:04 PM
» Replies: 3
» Views: 1,944
unable to upload Firmware...
Forum: Hardware
Last Post: chris
11-27-2022, 06:43 PM
» Replies: 4
» Views: 1,159

  Rotary Encoder Module v2 analog output
Posted by: rk96 - 01-31-2023, 11:46 PM - Forum: Hardware - No Replies


For the REM v2 description, it says "two analog output channels configurable to report the wheel position or to deliver 3.3V sync pulses."
How do I configure these channels? 

Thank you.

  Analog Input Module Firmware Incompatible Despite Updates
Posted by: is.a.vampire - 01-24-2023, 06:46 PM - Forum: Hardware - Replies (1)

I recently got an Analog Input Module to use with our BPOD State Machine 2.5. I am using python written code to interact with it, but even when I use it on MATLAB, I kept getting the error: "Analog Input Module with future firmware found. Please update your Bpod software from the Bpod_Gen2 repository." Despite updating the firmware to 2.3 and updating the software too, it is still giving the same error. In addition, it also changed the COM Ports for the BPOD from 'COM5' to 'COM10' and 'COM14', but neither will connect on Pybpod.  Huh

  Bpod Console Manual Override bug
Posted by: Kovax - 01-16-2023, 02:14 PM - Forum: Hardware - Replies (1)


I am using Bpod statemachine r05, with firmware 22 with Matlab with Bpod Console v1.64 and i have this bug, that during a trial manually opening the valves by pressing the vlv1 button turns it green and pressing it again in order to close the solenoid, it does not close the solenoid, the green light turns red, but water still comes through the solenoid, this error persist on another setup with same r05 statemachine same FW and Matlab. Is there are a way i can fix this issue? I am doing a hard behavioral protocoll for mice, and in order to help them i want to use this manual override.

Thanks so much!


  Standing Desk Makes Your Life Better
Posted by: electricstandingdesk - 12-18-2022, 04:36 PM - Forum: Neuro Technology Chat - No Replies

[Image: format,webp]
1. Why do you need to know about standing desks?

Recently, I found a super good furniture product: a standing desk, which makes my life more healthy and orderly. I think you can understand that the advantages of this product outweigh the disadvantages or it doesn't have disadvantages.
[Image: D2C_IMAGE_3010492_1200x.jpg?v=1667288956]
2. Why it is necessary to buy a standing desk?

The standing desk is not an ordinary desk. It has the function of raising and lowering, and it does not need to manually adjust the height of the desk, but intelligently adjust it. You can adjust the height you want with the key setting. There is an/two/three internal motor drive to stably adjust the height of the table. Extremely good sense of use. Some people may wonder why it is necessary to buy a stand up desk because most modern people spend too much time at the desk. For learning, working, or playing games, sitting for a long time does great harm to the human spine. A standing desk that can adjust the height stably and set simply can avoid the harm of sitting for a long time. Of course, there are still many types of lifting tables, It is important to choose a lifting table that suits you. Here are some types of lifting tables that you can buy according to your own situation or preferences.
3. Three different standing desks are recommended for you!
1. Triple Motor L-Shaped Standing Desk
[Image: D2C_IMAGE_3011112_500x.jpg?v=1667288956]
The L-shape makes the desk more flexible to adapt to home and office. It helps create a better work environment allowing you to move throughout your day. Also the standing L shaped desk is designed for our customers, who need to work with plenty of electric devices. it is sturdy and has plenty of workspaces to fit your needs. You're confident that adding a third 27” screen and still have plenty of room. Of course, this corner standing desk is also suitable for placing in the corner of a relatively small room, maximizing the use of space in the corner. And the power of the triple-motor system is stronger, ensures more stability of standing desks, and provides full support.
To sum up, when there is only one corner of your room where is for an office table, and more electronic equipment and other learning or office supplies need to be placed on the table, you can consider buying it.
2. Regular rectangular Electric Standing Desk
[Image: quality,Q_90]
The regular rectangular electric desk is not like the L-shaped standing desk, which can be placed in the corner. It is suitable for places with large spaces. Of course, you can also choose the size. There are small standing desk small with different desktop sizes, such as 40 '' * 24 "long and 48 '' * 24" wide. There are also a variety of desktop designs, including splicing, arc-shaped, and standard styles. It is worth mentioning that the desktop has a round edge to protect you from scratches and injuries. The legs of the desk are equipped with anti-skid pads to make the standing desk more stable and firm.
An height adjustable desk is equipped with more motors, the faster the lifting speed is, the more stable the lifting is, and the heavier the weight it can bear. A single-motor regular standing desk can bear a maximum weight of 176 pounds, while a dual-motor conventional lifting table can bear a maximum weight of 220 pounds. A conventional electric standing desk has three choices: single-motor mode, dual-motor mode, and three-motor mode, You can make decisions according to your own budget.
3. The best standing desk with a drawer
A standing desk with drawers is more convenient for storing things on the desktop so that pens, pencils, and other office sundries can have storage space, and the desktop is more tidy, the computer display screen can be placed on the top of the drawer, and the rest is our hands' area of operation. Of course, there is also a keyboard tray under the desk, which makes up for some of the desktop space occupied by the top two drawers and provides a hierarchical work space. The monitor stand at the top holds the monitor, and the keyboard tray below holds the keyboard and mouse. This allows your thin laptop/tablet to sit in the middle of your desk without worrying about blocking the top screen. Maximize table space.
[Image: format,webp]
Above three standing desks, which do you prefer?
I want to you know that these three kinds of standing computer desk all have 4 basic functions.
Equipped with a standard keyboard. The Standard Keypad includes up & down features and adds memory and anti-collision features:
*Memory features: Remember your favorite height for different scenes. Then you can free your hands and no need to press the button during the lifting process.
*Anti-collision features: Protect the desk from collision. The desk will stop automatically when it meets beneath desk items during the lifting process such as coffee cups, books, etc.
Under Desk Hooks: Great for hanging your headphones.
Equipped with standard keyboard Cable Management Tray: A clever solution to organize under desk cables and create a tidier desktop.
No matter how great your office chair is, sitting on it all day is not good for your body. However, standing up a lot is also not good for your comfort or health. A motorized or height-adjustable standing desk offers you the best of both worlds. Want to increase productivity and energy? Push a button to lift the desk so you can move around while you work. Want to lean back in your chair for deep focus? Press another button to lower the desk.

In a 7-week study, participants who used standing desks reported less stress and fatigue than those who sat all day. In addition, 87% of those who used standing desk with keyboard tray reported increased energy and stamina throughout the day. Overall mood returned to its original level after returning to the original desk.
Anyway which type of best standing gaming desk do you like, you can find your favorite adjustable standing desk (maybe with a perfect configuration:ergonomic office chair)on this website: Fezibo is a company specializing in providing standing desks. All types of standing desks are sold on its website. You can trust the quality and price of its products, People's lifelong pursuit is to live a better and healthier life. If good products can greatly improve your quality of life, why not consider them? I wish you a happy life.

  trial manager
Posted by: X_G - 12-14-2022, 05:53 PM - Forum: Software - Replies (1)

Hi Josh,

I have some problems with the trial manager- when I try to prepare the state machine and run the first trial using this code:

%% Prepare and start first trial
sma = PrepareStateMachine(S, TrialTypes, 1, []); % Prepare state machine for trial 1 with empty "current events" variable
TrialManager.startTrial(sma); % Sends & starts running first trial's state machine. A MATLAB timer object updates the
                              % console UI, while code below proceeds in parallel.

I get the following error:

Error using TrialManagerObject/startTrial

Error: The last state machine sent was not acknowledged by the Bpod device.Error in TrialManager (line 94)

TrialManager.startTrial(sma); % Sends & starts running first trial's state machine. A MATLAB timer object updates the error in run (line 91)

evalin('caller', strcat(script, ';'));Error in NewLaunchManager>LaunchProtocol (line 717)

If you have any ideas on how to solve it- it would be highly appreciated!


  issue accessing SD card
Posted by: benjamin - 12-06-2022, 05:19 PM - Forum: Software - Replies (1)


I've been using a pulse pal for over a year now. Today, I tried to load some settings and I received the error message "!Error reading SD Card!". I'm also unable to save new settings. Is there anything that I can do?


  connect to Bonsai via the virtual serial COM using r2 state machine
Posted by: chris - 11-24-2022, 02:07 AM - Forum: Software - Replies (2)

Hi Josh,

I am trying to send messages to Bonsai through the virtual serial COM on state machine r2 with v23 firmware. 
Here is my matlab code:

function ConnectBonsai
% Open water Valve to clean the tube - LY, 12/19/2019
global BpodSystem
Interval = 5 ;

%% main section
for currentTrial=1:10
   sma = NewStateMatrix();

%         sma = AddState(sma, 'Name', 'GETSoftCode2APP', ...
%         'Timer', 0,...
%         'StateChangeConditions', {'APP_SoftCode10', 'SendSoftCode2APP'},...
%         'OutputActions', {});

   sma = AddState(sma, 'Name', 'SendSoftCode2APP', ...
       'Timer', 0.1,...
       'StateChangeConditions', {'Tup', 'Interval'},...
       'OutputActions', {'APP_SoftCode', 1});

   sma = AddState(sma, 'Name', 'Interval', ...
       'Timer', Interval,...
       'StateChangeConditions', {'Tup', '>exit'},...
       'OutputActions', {});

   disp(['Trial #' num2str(currentTrial)]);

   if BpodSystem.Status.BeingUsed== 0

Attached is my Bonsai workflow.
I am not sure about the settings in the BaudRate of CreateSerialPort node and the newline of SerialStringRead node. 
Can you help me make this work?


  Changing the threshold for lick detection using "S" terminal on the interface board
Posted by: malda - 11-21-2022, 10:21 PM - Forum: Hardware - Replies (3)


I am using the S and GND terminals on the interface board to detect licks (along the line described in In detail, we connect a S terminal with a water lickport, and GND terminal with a plastic tube covered with a copper sheet where a mouse would enter and sit inside during an experiment (the latter connection is through a banana cable; a male banana cable is connected to the GND terminal, and a female banana cable jack is connected to the copper sheet). So, the idea is that when a mouse licks the lickport while sitting inside the tube, the lickport will be short-circuited, and there will be a current from S to GND leading to a lick detection. I confirmed that the lick detection works very well when I directly touch the lickport with the male banana cable connected to the GND terminal, or with the copper sheet covering the tube (of course now the male banana cable is connected to the tube). But, it doesn't work when the mouse licks the lickport, or when I touch the lickport with one hand and the copper sheet with the other hand. Based on these observations, I believe the issue may have to do with the threshold for lick detection, i.e. the threshold current required for the lick detection is too high, so the lick detection doesn't work when the resistance between S and GND is high enough. Is there a way to solve this problem?

Many thanks,

p.s. A couple days ago, we tried to connect an additional circuit to the interface board to resolve the issue, but this still had problems b/c of the weakly pulled up 5V at S terminal. We removed a resistor on the interface board that we believe is responsible for the weak pull up, but the weak pull up persisted. We believe that the weak pull up is maintained internally by an arduino inside the state machine. Is there a way to remove this weak pull up without messing up other things? We are thinking of changing the firmware to remove it, and it would be great if you could comment whether it's safe to do so, or what's the best way to do it.

  unable to upload Firmware for Bpod Rotary Encoder Module
Posted by: chris - 11-16-2022, 01:49 AM - Forum: Hardware - Replies (4)

Hi Josh,

I just received new Rotary Encoder Module v2. However, when I tried to upload the firmware (, it failed. I already changed HARDWARE_VERSION to 2 and uncomment #include "QuadEncoder.h".
The error message was:
prototype for 'void ArCOM::writeUint16(short unsigned int)' does not match any in class 'ArCOM'

Can you give me some suggestions? I am also not sure which type of board I should select during uploading.


  Valve Driver Power Leakage
Posted by: BrainScientist - 11-01-2022, 11:13 PM - Forum: Hardware - Replies (1)


We have been using a number of Valve Driver modules for a few years now, with State Machine 2. Recently, we accidentally figured out that a couple of modules show 18-19V running in the circuit when the valve is closed, and 24V when open. For example, in one module, valves 1, 3, 4 and 8 show 0V when the circuit is supposedly closed, and 24V when open - that's what I expected. However, circuits for valves 2, 5, 6, and 7 show 19v even when those circuits (and all others) are closed, but 24V in the open channel when it is opened. The pattern holds if the VM is disconnected from the State Machine, but the valve module power supply is left connected.

Now, we wonder, are those modules fried? The Module seems to be otherwise functional in terms of being operable, but obviously running 19 V through a valve all the time doesn't seem to be a good thing.

Related: what's the recommended power supply specifications, for using 24V valves with the ValveModule? Based on specs on the Valve Module page ("12-24V; >1.5A"), we have been using a 24V, 3A power supply. Is that OK?

The guidance is confusing, since the recommended power supply seems adequate to power 12V valves, but not 24V valves.

Any help would be appreciated,
Thanks, Avinash