intan accelerometer output

385 views
Skip to first unread message

Korey Kam

unread,
Nov 10, 2015, 10:51:59 PM11/10/15
to Bonsai Users
Hi all,

In addition to the open-ephys board, I'm using the intan headstage with a 3 axis accelerometer. I'd like to read the accelerometer output in bonsai (which are auxiliary analog inputs on the RHD2132).

Is bonsai able to stream the auxilary accelerometer data from an RHDeval board source? If so, could someone point me on how to do that in a workflow?

Much appreciated,
Korey

goncaloclopes

unread,
Nov 11, 2015, 2:59:57 AM11/11/15
to Bonsai Users
Hi Korey,

We were having a discussion over here as well over whether the accelerometer data was being streamed correctly. Can you try using the attached workflow and let us know if it works for you? Just holding the accelerometer in your hand and turning it should give you an idea of whether it's working.

Thanks,
accelerometer.bonsai

Korey Kam

unread,
Nov 11, 2015, 11:06:01 PM11/11/15
to Bonsai Users
Thank you for sharing that Goncalo.

I think there may be an issue with bonsai reading the aux channels (see attached png). Only the "yellow" channel in the bonsai plot responds to movement. The blue and orange one remain static even with jiggling of the headstage.

As a comparison, I did some similar scientific jiggling and plotted those 3 aux signals from the open ephys gui.

Inline image 1

Is there an option to select the aux channels in bonsai? Maybe the first two (blue/orange) correspond to non-accel signals like chip voltage or non-amp signals. 

--
You received this message because you are subscribed to a topic in the Google Groups "Bonsai Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bonsai-users/5mZUYWxZ-1k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bonsai-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/905b578d-453f-4c77-9a7c-4334be7db91a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

goncaloclopes

unread,
Nov 13, 2015, 7:06:38 AM11/13/15
to Bonsai Users
Hey Korey,

Thanks for setting up a test rig. You were right, there was indeed an error in how the auxiliary input data was extracted from the Rhd2000DataBlock. In fact, the data was in there somehow but completely messed up. I've reconstructed the correct data structure and I'm attaching a pre-release version of the patch. Can you try upgrading to this version and running your tests on the attached workflow to see if it makes sense now? (follow instructions here to install local custom packages; don't forget to set the package manager option to "Include Prerelease")

One major thing I've realized with the restructuring: accelerometer data is sampled at 1/4 the sampling rate of the amplifiers, so you get buffers of 15 samples instead of 60. For saving this is the preferred format. We can discuss later strategies for upsampling the data if somehow this would be useful for online analysis, but for now I'm mostly curious to see if the data looks right.

Bass, if you're checking in this thread, you should try installing this package as well (this fix has been long overdue!).

Cheers,
Bonsai.Ephys.2.1.1-beta.nupkg
testaccel.bonsai

Korey Kam

unread,
Nov 18, 2015, 8:59:28 PM11/18/15
to Bonsai Users
Hi Goncalo,

The pre-release patch works great! 

Attached is an example of the headstage face up (+Z), headstage face down (-Z), and getting jiggy with it.

Offline, I can cal to g's and upsample via interp, though online would be cool too (maybe in the "not necessarily now" category).

Appreciate your help as always,
Korey

--
You received this message because you are subscribed to a topic in the Google Groups "Bonsai Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bonsai-users/5mZUYWxZ-1k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bonsai-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/bonsai-users.
accel.png

Peter Lambert

unread,
May 13, 2021, 4:29:20 PM5/13/21
to Bonsai Users
Hi All,

I'm setting up to record simultaneous video EEG from 4 animals with an open ephys system and I was hoping to use bonsai to record the video, eeg, and accelerometer data in one program. I am currently using 4 16ch Intan heastages with accelerometers, and am able to get the video from two cameras and EEG data from all four headstages without issues. My problem is that I'm only able to see accelerometer data from one headstage, which is always the one plugged into the lowest input port on the open ephys board (for example if I unplug the headstage from input A, the accelerometer data from the headstage plugged into input B on the ephys board is streamed). Is there a way to collect the accelerometer data from all four headstages simultaneously? (I am able to see accelerometer data from all four headstages if I'm just acquiring ephys data in the openephys GUI) 

Thanks,
Peter

EEG Capture.bonsai

Gonçalo Lopes

unread,
May 16, 2021, 3:29:22 PM5/16/21
to Peter Lambert, Bonsai Users
Hi Peter,

Thanks for trying this, I have confirmed there is an issue reading out multiple auxiliary streams, which apparently had not been spotted before!

I have flagged this as an issue and will try to release a patch for you to try soon:


You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/4d1b0d3c-8113-4aff-bb19-64bb985f4accn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages