Android sensor logging

19 views
Skip to first unread message

alex kelly

unread,
Feb 14, 2021, 5:12:21 AM2/14/21
to Sheffield Hardware Hackers
Hello,

Does anyone know of an app or a way to log an Android sensor data to a file ( or  database whether local or cloud)?  I want to measure the accelerometer and record it to the phone or somewhere to look after an event 

cheers

david mason

unread,
Feb 14, 2021, 5:35:00 AM2/14/21
to sheffield-har...@googlegroups.com
I used android studio a while back to do something similar. Does require creating your own app of sorts though hah!


From: sheffield-har...@googlegroups.com <sheffield-har...@googlegroups.com> on behalf of alex kelly <alex.k...@gmail.com>
Sent: Sunday, February 14, 2021 10:12:08 AM
To: Sheffield Hardware Hackers <sheffield-har...@googlegroups.com>
Subject: [SHH:16802] Android sensor logging
 
Hello,

Does anyone know of an app or a way to log an Android sensor data to a file ( or  database whether local or cloud)?  I want to measure the accelerometer and record it to the phone or somewhere to look after an event 

cheers

--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sheffield-hardware-hackers/CAOEBfee-b5%3DQOgtvjgqiEZX-Pra56Kihn2Sus6xGZTPCMNd1ig%40mail.gmail.com.

alex kelly

unread,
Feb 14, 2021, 5:44:01 AM2/14/21
to Sheffield Hardware Hackers
Cheers, I saw a stackoverflow post that was suggesting that but it's kind of a detour that I was hoping not to go down. I was hoping for a dump in a text file from maybe app that i can send via email or cloud.  Is a complicated workflow to getting the Android studio installed, app working on a particular hardware and troubleshooting?

Thanks

Philip Martin

unread,
Feb 14, 2021, 5:47:04 AM2/14/21
to Sheffield Hackspace
I don't know if MIT App Inventor would do the job. You'd also need to code an app yourself but it's in block code and pretty easy to use.

Phil

david mason

unread,
Feb 14, 2021, 5:48:02 AM2/14/21
to sheffield-har...@googlegroups.com
Erm honestly not really.

I think following a tutorial I got my first app running (the app version of hello world) in like 30 mins including install. I'm not a prolific programmer by any means.

But yeah, I'd like to think someone has already wanted to try the same thing and made it publicly available!

Sent: Sunday, February 14, 2021 10:43:47 AM

To: Sheffield Hardware Hackers <sheffield-har...@googlegroups.com>
Subject: Re: [SHH:16804] Android sensor logging
 

James KW Moore

unread,
Feb 14, 2021, 7:29:53 AM2/14/21
to sheffield-har...@googlegroups.com
This might be possible with traccar - but that will need quite a lot of work since you need to host a traccar server and then have your phone talk back to the server.

Not sure about time resolution / which sensors it will access, I use it for tracking walks and GPS only.

James. 

John Jordan

unread,
Feb 14, 2021, 7:54:36 AM2/14/21
to sheffield-har...@googlegroups.com
I’m racking my brain to try and remember but there is an app I have played with that will do this. 

And I remembered sensoduino is the app. 

Sent from my iPhone

Paul M

unread,
Feb 14, 2021, 10:06:46 AM2/14/21
to sheffield-har...@googlegroups.com
Hi,

Have a look at Physics Toolbox Sensor Suite - https://play.google.com/store/apps/details?id=com.chrystianvieyra.physicstoolboxsuite

I've played with that in the past.

Regards,
Paul M


On Sun, 14 Feb 2021 12:54:30 +0000
John Jordan <chillicl...@gmail.com> wrote:

> I’m racking my brain to try and remember but there is an app I have played with that will do this.
>
> And I remembered sensoduino is the app.
>
> Sent from my iPhone
>
> > On 14 Feb 2021, at 12:29, James KW Moore <j.k....@sheffield.ac.uk> wrote:
> >
> > This might be possible with traccar - but that will need quite a lot of work since you need to host a traccar server and then have your phone talk back to the server.
> >
> > Not sure about time resolution / which sensors it will access, I use it for tracking walks and GPS only.
> >
> > James.
> >
> >> On Sun, 14 Feb 2021, 10:48 david mason, <slzer_...@hotmail.co.uk> wrote:
> >> Erm honestly not really.
> >>
> >> I think following a tutorial I got my first app running (the app version of hello world) in like 30 mins including install. I'm not a prolific programmer by any means.
> >>
> >> But yeah, I'd like to think someone has already wanted to try the same thing and made it publicly available!
> >>
> >> Get Outlook for Android
> >>
> >>
> >> From: sheffield-har...@googlegroups.com <sheffield-har...@googlegroups.com> on behalf of alex kelly <alex.k...@gmail.com>
> >> Sent: Sunday, February 14, 2021 10:43:47 AM
> >> To: Sheffield Hardware Hackers <sheffield-har...@googlegroups.com>
> >> Subject: Re: [SHH:16804] Android sensor logging
> >>
> >> Cheers, I saw a stackoverflow post that was suggesting that but it's kind of a detour that I was hoping not to go down. I was hoping for a dump in a text file from maybe app that i can send via email or cloud. Is a complicated workflow to getting the Android studio installed, app working on a particular hardware and troubleshooting?
> >>
> >> Thanks
> >>
> >> On Sun, 14 Feb 2021 at 10:35, david mason <slzer_...@hotmail.co.uk> wrote:
> >> I used android studio a while back to do something similar. Does require creating your own app of sorts though hah!
> >>
> >> Get Outlook for Android
> >>
> >>

Adrian Godwin

unread,
Feb 14, 2021, 10:25:53 AM2/14/21
to Sheffield Hackspace
https://pslab.io/ might also do what you want. It can log data from the phone's own sensors or an attached board.

Peter Green

unread,
Feb 14, 2021, 2:22:28 PM2/14/21
to Sheffield Hackspace
There are a few ways to do this and a few tutirals that would help you out, depending on the no of updates a minute/ hour, do you want to record data for a long periods like months or just a few records a day or only part of the day.

ESP32 / ESP8266 micro controllers, are a good way to do this as they can run a web server to give you data to the phone, theses also allow for Bluetooth connections also. Have a look at Random Nerd Tutorial's for tutorals for both Web services, Bluetooth connection mehtods. Another technology that can be looked at would be an Arduino boards, and Rasberry Pi Pico but someof these do not have wireless or Ethernet connections and would use a wired serial (UART) to be able to read and write data to the Phone so would need a computer to be running 24 /7 if yuo need this.

Programming langaues could be arduino, micropython, and

The Rasberry Pi zero and above, can be used in the same way, but as these  are small computers they can hold the data on the SD card and then you can process it in any way that you like on the PI, That can then lead to Home Automation (openHab/ Home assistant) both require a large learning curve.

Other methods could use MQTT as the transport layer over Wifi or eithernet in pace of Wifi or Bluetooth. there are tutorals on most of these subjects on the Random Nerd Tutorials, Instructables a google search will also link to different methods of doing this.

Hope that gives you more tutorials and ideas to look at, and thta I've not overwhelmed with ideas.

Peter G


alex kelly

unread,
Feb 14, 2021, 2:59:04 PM2/14/21
to Sheffield Hardware Hackers
Thanks everyone, I've dug around and tested a few and the best i've found is a app called Sensor Logger.  No need to mess waste time with ide environments/coding just to get some test data and can save the output and email it :-)   Some awesome suggestions as always, thanks everyone.


--
You received this message because you are subscribed to the Google Groups "Sheffield Hackspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sheffield-hardware-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages