Page 1 of 1

Sensors and Raspberry Pi

Posted: Tue Apr 28, 2015 9:17 am
by timmylamoule
Hey everyone,

I will explain my project first : the aim is to get data from sensors and load them into DB.
-> I get data from sensors (heart rate & GSR Galvanic Skin Response) to my LeoStick.
-> My leostick is plugged in my laptop and I've got a java program that get this data from serial comm'
-> This program save it into database (with timestamp)

My project is working well but I want to do upgrade it. :o :o

For instance, if I want to capture data from 3 persons who aren't in the same perimeters (let's say 5meters). I need to have 3 laptops or pc...

So my idea was to integrate Rasberry pi in this project. They will play the role of PC.

Can Leostick be plugged in USB with Raspberry. I know we can do this with I2C but I heard that I2C on Leostick is on D2 and D3.
And some Digital ports are used by sensors (especially D2 :twisted: )

If you have others ideas to replace PC's, I'll be glad to hear you !

Oh, and another question, I am on dualboot (W7 and ubuntu).
I don't know why but on W7 uploading sketches works great but on Ubuntu, it is impossible, I always get the error : couldn't find leonardo > try reset.....

Re: Sensors and Raspberry Pi

Posted: Tue Apr 28, 2015 10:12 pm
by andrew
If the distance is around five metres to each person, perhaps use a separate LeoStick for each person at the end of a long USB cable back to a USB hub and thus the computer. Then change your software to receive data from all the ports.

Re: Sensors and Raspberry Pi

Posted: Wed Apr 29, 2015 7:19 am
by timmylamoule
That was the idea : having several leostick but not connected to laptop.

The idea for me was : several (leostick + raspberry) => connected to laptop server.

Do you think it is possible ?

Re: Sensors and Raspberry Pi

Posted: Wed Apr 29, 2015 8:37 am
by stryker
What will the pi do? Is it purely to aggregate the leostick data and retransmit over wifi?

Re: Sensors and Raspberry Pi

Posted: Wed Apr 29, 2015 9:35 am
by timmylamoule
The Pi is to retransmit data over wifi to the laptop "server".

Re: Sensors and Raspberry Pi

Posted: Mon May 04, 2015 1:29 pm
by timmylamoule
So folks, do you think it's possible ? Hardcore task ? ^^

Re: Sensors and Raspberry Pi

Posted: Mon May 04, 2015 10:33 pm
by andrew
You can do it if you're up for it, however a hard-wired solution is going to be a lot simpler than using a Raspberry Pi with all of it.