Shaggy74
Posts: 2
Joined: Sun Nov 26, 2017 11:34 pm

Receive and store accelerometer data?

Sun Nov 26, 2017 11:37 pm

Hi,

I am looking at building a circuit that would receive data from an accelerometer fitted to dc motor to provide vibration data

it would then store the vibration data before transferring the data via Bluetooth to a laptop/tablet.

This idea is based on the transfer of Health Usage Monitoring Ststem (HUMS) IN a Wildcat Helicopter. Instead of using a PCMCIA card the data would be transferred via Bluetooth

Would the raspberry pi be capable of this idea? What other components would be needed? having never done any coding before and am struggling massively with this

thank you in advance for your time and expert opinions over this,

Best regards

Mark Sheldon 

User avatar
The Traveler
Posts: 363
Joined: Sat Oct 21, 2017 3:48 pm

Re: Can it be done?

Mon Nov 27, 2017 2:38 am

My opinion: start with something simpler, light up and blink some leds, wire a few simple switches, turn a motor on and off, that sort of thing. Gain some basic experience first Grasshopper. Your project will still be there waiting for you ...

And, yes, I believe it can be done. ;)

Cheers.
Retired IT professional, C programmer and "beardie weirdie".
RPi interests: Developing an Infinite Improbability Drive
“Thinking outside of the box allows you to get rewards outside of your reach.” Matshona Dhliwayo

QMESAR
Posts: 55
Joined: Wed Sep 06, 2017 10:41 am

Re: Can it be done?

Mon Nov 27, 2017 3:45 am

Hi.

I think the pi has the processing power for what you need however correct me if I am wrong your accelerator is a 3 axis which output 3 voltage signals(1 per axis) ? then you will need an ADC converter between the pi and the accelerator something like an MCP3208 or MC3008 depending on the bit weight(resolution) need .The pi communicates with the ADC chip over SPI there are many such interface boards available for the pi.
Once you have the axis data in the pi it should be fine as the pi has bluetooth HW

Kind Regards
QMESAR

Shaggy74
Posts: 2
Joined: Sun Nov 26, 2017 11:34 pm

Re: Receive and store accelerometer data?

Mon Nov 27, 2017 6:23 pm

When it comes to applying coding is this readily available from websites or would there be a requirement for me to design a code myself? This is where I’m stuttering

User avatar
bensimmo
Posts: 4623
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Receive and store accelerometer data?

Mon Nov 27, 2017 6:39 pm

Sensor is easy, buy what you need and use the given code.
If it's just to learn then adafruit/pimoroni provide sensors and code to just get the numbers. Only a few wires needed (they use i2c so none of that adc mentioned).

You just then need to figure out how to make a BT 'network' or serial connection at both ends. No idea there.
See the data over, traditional serial come style/address and ports style/IoT style like mqqt. Again no idea what you'll find best.

You may need to be learning NodeRed and /or Python.

Return to “General discussion”