Sensors and Raspberry Pi

A shrunk down Leonardo-compatible board, thumb drive sized with native USB support. [Product info]
Post Reply
timmylamoule
Posts: 4
Joined: Tue Apr 28, 2015 9:04 am

Sensors and Raspberry Pi

Post by timmylamoule » Tue Apr 28, 2015 9:17 am

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.....

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Sensors and Raspberry Pi

Post by andrew » Tue Apr 28, 2015 10:12 pm

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.

timmylamoule
Posts: 4
Joined: Tue Apr 28, 2015 9:04 am

Re: Sensors and Raspberry Pi

Post by timmylamoule » Wed Apr 29, 2015 7:19 am

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 ?

User avatar
stryker
Posts: 267
Joined: Sat Jan 14, 2012 2:44 pm

Re: Sensors and Raspberry Pi

Post by stryker » Wed Apr 29, 2015 8:37 am

What will the pi do? Is it purely to aggregate the leostick data and retransmit over wifi?

timmylamoule
Posts: 4
Joined: Tue Apr 28, 2015 9:04 am

Re: Sensors and Raspberry Pi

Post by timmylamoule » Wed Apr 29, 2015 9:35 am

The Pi is to retransmit data over wifi to the laptop "server".

timmylamoule
Posts: 4
Joined: Tue Apr 28, 2015 9:04 am

Re: Sensors and Raspberry Pi

Post by timmylamoule » Mon May 04, 2015 1:29 pm

So folks, do you think it's possible ? Hardcore task ? ^^

andrew
Freetronics Staff
Freetronics Staff
Posts: 978
Joined: Sun Jul 14, 2013 7:06 am
Location: Melbourne, Australia
Contact:

Re: Sensors and Raspberry Pi

Post by andrew » Mon May 04, 2015 10:33 pm

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.

Post Reply