Vibration Compensated Tilt Sensor

11 views
Skip to first unread message

Byron Blue

unread,
Oct 26, 2009, 12:44:19 PM10/26/09
to PIC24 Assembly-to-C Book
I'm new to using the PIC24 controllers.
I started last week with the Sparkfun units as listed on the site
below.
http://www.reesemicro.com/Home/projects/vibration-compenstated-tilt-sensor
I have compiled and loaded the code for the tilt sensor however the
tilt sensor is reading about 45 degrees in either direction when flat.
I do not see (in the code or on the page) who the author of this code
is for minor assistance. Has anyone built/tested one of these units?
Any advice?
Thank you so much,
Byron

Bob

unread,
Oct 26, 2009, 3:39:44 PM10/26/09
to PIC24 Assembly-to-C Book
Yes, I am the one who built it still have on a breadboard --- I demo
it to students at the beginning of the semester. I have not compiled
the code since I tested it in the summer. I just downloaded the
archive and gave it a try - the compilation failed because a problem
in common/pic24_configbits.c which is because I have upgraded to the
latest PIC24 compiler (this was fixed in the main archive a while
back). I updated to the latest pic24_configbits.c file, compiled and
programmed in my board and the demo worked fine.

I updated the tilt_sensor.zip archive with the latest
pic24_configbits.c and left the .hex file in there
(tilt_sensor.hex).

If the pitch/roll is working, but it is just not calibrated correctly,
you can follow use the calibration project to find the min/max values
of the X,Y,Z accelerometers and the zero values of the X,Y gyros and
enter these in the board.h file (however, I would expect any mis-
calibration to be off only by a few degrees, not 45 degrees).

For it to be off 45 degrees, it seems like this is either a sensor
wire is swapped, or the sensor is not working.


On Oct 26, 11:44 am, Byron Blue <byronb...@hotmail.com> wrote:
> I'm new to using the PIC24 controllers.
> I started last week with the Sparkfun units as listed on the site
> below.http://www.reesemicro.com/Home/projects/vibration-compenstated-tilt-s...

Srin

unread,
Jun 19, 2014, 5:22:18 AM6/19/14
to pic24-assemb...@googlegroups.com
Hi Robert,
            Can you please advise on the accuracy level achieved for the angle sensing.For eg: Roll measurement.

Regards
Sri

Bryan A. Jones

unread,
Jun 23, 2014, 5:46:19 PM6/23/14
to pic24-assemb...@googlegroups.com
I don't know offhand, but I suspect that simply checking the datasheet for the devices which do the sensing would tell you.


--
You received this message because you are subscribed to the Google Groups "PIC24 Assembly-to-C Book" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pic24-assembly-to-...@googlegroups.com.
To post to this group, send email to pic24-assemb...@googlegroups.com.
Visit this group at http://groups.google.com/group/pic24-assembly-to-c-book.
For more options, visit https://groups.google.com/d/optout.



--
Bryan A. Jones, Ph.D.
Associate Professor
Department of Electrical and Computer Engineering
231 Simrall / PO Box 9571
Mississippi State University
Mississippi state, MS 39762
http://www.ece.msstate.edu/~bjones
bjones AT ece DOT msstate DOT edu
voice 662-325-3149
fax 662-325-2298

Our Master, Jesus Christ, is on his way. He'll show up right on
time, his arrival guaranteed by the Blessed and Undisputed Ruler,
High King, High God.
- 1 Tim. 6:14b-15 (The Message)
Reply all
Reply to author
Forward
0 new messages