Dual channel EEG system using PIC16F877A

Obtaining data from various hardware devices
Post Reply
BMI's
Posts: 4
Joined: Tue Aug 30, 2011 2:33 am

Dual channel EEG system using PIC16F877A

Post by BMI's »

Hi there Friends...
I am BSc student and working on my BCI project ..
I have made 2 channel EEG system and communicate it through RS232 ( USB to RS converter ) with my laptop..
I want to use openvibe software to acquire my EEG signal and to process them for further interfacing with robotic arm..
Now I have to introduce my usb driver in acquisition server rite... ?
I have thoroughly studied this link
http://openvibe.inria.fr/documentation/ ... river.html
But I want little bit more descriptions and details to get started...
So please if you people can help me in any way or give any suggestions ..
greatly thankful for the help and ideas... :mrgreen:

BMI's
Posts: 4
Joined: Tue Aug 30, 2011 2:33 am

Re: Dual channel EEG system using PIC16F877A

Post by BMI's »

I am doing the following

1- Download openvibe
2- Installed dependencies from SVN
3- generate files from skeleton generator for my my new acquisition driver
4- Introduced it in OvasCAcquisition Server
5- run win32-build.cmd

And got error :|
What wrong I am doing .. ?
Attachments
cmd.png
cmd.png (63.13 KiB) Viewed 13755 times

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Dual channel EEG system using PIC16F877A

Post by lbonnet »

Hi BMI's and welcome on board !
I have made 2 channel EEG system and communicate it through RS232 ( USB to RS converter ) with my laptop..
I want to use openvibe software to acquire my EEG signal and to process them for further interfacing with robotic arm..
Now I have to introduce my usb driver in acquisition server rite... ?
I have thoroughly studied this link
http://openvibe.inria.fr/documentation/ ... river.html
Good start !
And got error :|
What wrong I am doing .. ?
The log message is not related to your driver or even the acquisition server. So I guess you are not doing anything wrong.
It seems like the project "simple-visualisation" fails to compile because of a "missing file".

Windows cannot handle very long path, and the file it tries to access is is on a huge path in your case.
I faced this problem once, with a file I couldn't delete because its absolute path was too long (... :|)

In my opinion the compiler does not manage to read the file. To overcome this, unzip the source code directly in D:/openvibe/ instead of D:/openvibe/openvibe-0.11.0-svn3052-src/openvibe-0.11.0-svn3052-src/.

If this does not solve your problem please tell us !

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

BMI's
Posts: 4
Joined: Tue Aug 30, 2011 2:33 am

Re: Dual channel EEG system using PIC16F877A

Post by BMI's »

Okay Thank you .. that solved my problem .. :)
Now I want to ask that Modular EEG works on COM port so if I edit ovasCDriver file of modular EEG according to my specification will it works for me.... ?

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Dual channel EEG system using PIC16F877A

Post by lbonnet »

Indeed !
For your device the Modular EEG driver will be a good start.
I never used or implemented anything on this driver, so I won't be very helpful on the implementation details (e.g. COM port).
I guess the acquisition driver tutorial and the ModularEEG driver will be good to start with.

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

BMI's
Posts: 4
Joined: Tue Aug 30, 2011 2:33 am

Re: Dual channel EEG system using PIC16F877A

Post by BMI's »

Okay ... I changed baud rate , stopbits , flow control according to my device..
Now I start acquisition server and select modularEEG and click on connect so it says
Connection Succeed ... !

But when I clicked on PLAY , it gives error

after 5000 millisecond, did not receive anything from the driver, Timed out...

Please Help... !

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Dual channel EEG system using PIC16F877A

Post by lbonnet »

Now I start acquisition server and select modularEEG and click on connect so it says
Connection Succeed ... !
So the first step is ok: the driver successfully connected to the device. In your case, I assume it simply successfully connected to the COM port.
Even on my computer, without any modularEEG device plugged in, I can connect the "OpenEEG Modular EEG P2" driver given with openvibe.
But when I clicked on PLAY , it gives error

after 5000 millisecond, did not receive anything from the driver, Timed out...
When you press play, the driver asks the device for new samples. If it does not receive any sample within 5 seconds, it automatically stops.

It means that nothing has been receive on the COM port on which the driver is connected.

I am definitely not a specialist of communication through COM port... But I guess you could print some debug information in the driver, to ensure that their is something behind the COM port you're connected on.

Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

MGR
Posts: 7
Joined: Tue Oct 04, 2011 9:14 am

Re: Dual channel EEG system using PIC16F877A

Post by MGR »

Hi,

i just finnished to connect my 6 channels Modular EEG and i'm trying
to connect it to the computer.

I bought all from Olimex, with Firmware 2 (P2 packets).
I also use a serial-usb adaptator (marked as Arduino product).

Once the driver installed, i get a COM 3 virtual port over usb.

I can "connect" OpenVibe to COM 3, but when i start acquisition, i get the same 5s timeout !
"did not recieve anything from the driver"

I did try to monitor COM 3 input, and i can see that data are getting in..
the Transmission led is also blinking so we can assume that something is comming into the COM 3 port.
P2 packets are 17bytes messages, that we can clearly identify with a serial activity monitor tool..

I also checked bitrate, parity, etc.. without any success.

I got the same problem using ElectricGuru that also support Modular EEG.

I assume that it must be related to the serial usb converter,
so do you have suggestion conserning a serial - usb converter which will work ?
Which one did you use ?

Thanks !

Best regards

Thomas

MGR
Posts: 7
Joined: Tue Oct 04, 2011 9:14 am

Re: Dual channel EEG system using PIC16F877A

Post by MGR »

Hi again,

same problem under Linux : i can connect ttyUSB0 but when i start acquisition,
i get the 5000ms timeout "nothing recieved from the driver"

when using jpnevulator i can see data comming from ttyUSB0..

so there is data but OpenVibe do not recognize it..

any help ?

Thanks

lbonnet
Site Admin
Posts: 417
Joined: Wed Oct 07, 2009 12:11 pm

Re: Dual channel EEG system using PIC16F877A

Post by lbonnet »

Hi MGR, welcome on the forums!

As specified in the list of supported acquisition devices the OpenEEG driver is a community driver.
I don't have any openEEG device to test and help you directly.

Do you have some C/C++ knowledge and spare time to debug the driver on your side ?
The file is [openvibe-application/acquisition-server/trunc/src/openeeg-modulareeg/ovasCDriverOpenEEGModularEEG.cpp]
I can provide you support to understand the code. The main "acquisition" principles are quiet simple; the connection, reading and writing on the port may be tricky.


Laurent-
Follow us on twitter >> openvibebci

Checkout my (old) blog for some OpenViBE tips & tricks : here !

MGR
Posts: 7
Joined: Tue Oct 04, 2011 9:14 am

Re: Dual channel EEG system using PIC16F877A

Post by MGR »


Post Reply