Using the accelerometer item

View previous topic View next topic Go down

Using the accelerometer item

Post by Admin on Tue Mar 08, 2016 8:37 am

Using the accelerometer item

Here is how to use the accelerometer:
- select menu -> edit ui
- click on blank space where you want to add the accelerometer
- select accelerometer
- the accelerometer will appear in the interface
- move it by dragging the top left corner
- resize it by dragging the bottom right corner
- edit its options by clicking on it

set x id:
Set the id (a text stirng) for x axis. Accelerometer will send this id, followed by a space character (or not), followed by the x acceleration (a floating point number).
Example: "accX 2.106\n".

set y id:
Set the id for y axis.

set z id:
Set the id for z axis.

The accelerometer will send the data for x, y and z axis. If an id is set to empty string, that axis is disabled (ist data will not be sent).
Example:
x id = "accX"
y id = "accY"
z id = "" (empty string)
The accelerometer will send "accX 2.106\naccY 1.33\n"

set repeat period:
Set the time interval (in milliseconds) at which the accelerometer will send next data.

send / don't send space:
Send the space after ids or not.

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Using the accelerometer item

Post by AyoSoul on Wed Mar 23, 2016 4:12 pm

Are you sure of the "set repeat period" ?

I've tried this with my project and the results are as follows
1 - the default 20 : I could make, consume and wash up my cup of coffee.
2 - value 2000 : I see the results but still not fast enough to be appriciate by the stepper motors i'm trying to control

3 - 5000 plus it no longer sends any data.

4 - I've settled at 2500 for now, the stepper motors are responding, still seems a bit slow. But got to work on other parts of the project.

Would like to know your experience or a reason for my findings.

PS - I streamed the data to the serial monitor and my phone is HTC M8.

Also the data I'm getting back is between the values -3.00 and +10.13. Seems a bit strange and I wonder why that range, Any ideas ?

AyoSoul

Posts : 1
Join date : 2016-03-23

View user profile

Back to top Go down

Re: Using the accelerometer item

Post by Admin on Wed Mar 30, 2016 3:45 pm

Try using a program like netcat in linux, to view the messages that are sent from RoboRemo. Maybe the messages are sent, and the problem is somewhere else.
http://www.roboremo.com/Test-RoboRemo-communication-using-a-terminal-program.html
I tested with Alcatel One Touch Idol Mini, and Samsung Galaxy Y, and I get the accelerometer data quite fast. Make sure you don't turn off the phone's screen or it may save power and turn off the accelerometer.
About the value range, try to recalibrate the accelerometer if your phone has such option.

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Using the accelerometer item

Post by Markmi on Wed Apr 06, 2016 6:03 pm

Hi Admin

Can the min and max range be scaled or set min and max range?
Or convert from floating value to an integer?

Markmi

Posts : 1
Join date : 2016-04-06

View user profile

Back to top Go down

Re: Using the accelerometer item

Post by Admin on Fri Apr 08, 2016 7:09 pm

Hi,
Current version does not have such option unfortunately, but it will be added in the next update.

Admin
Admin

Posts : 111
Join date : 2016-03-08

View user profile http://roboremo.makeforum.net

Back to top Go down

Re: Using the accelerometer item

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum