More on Tilt sensor
Archiver
Posts: 46,084
Another idea is to use a discarded PC mouse.
There are 2 optotransceivers each with perforated wheel. They are
configured as incrmental/decremental encoders and communicate with the PC
using standard RS232 interface. This could be easily translated to 0/+5V
for the BS with just a 5V zener and a resistor.
Fixing the position of the wheel shaft with a wire arm and a weight, would
give an in/de/cremental serial signal that could be input to the BS using
SERIN command.
Two problems:
- Low accuracy as there is no mechanical multiplication of the movement
(tilt) because no big rubber ball is used...
- The need to detect Zero degrees tilt with a different device (could be
the second optotransceiver coupled to the same wheel but using an
additional single hole in a second row). The position of this hole and
coupler should coincide with the horizantal position of the robot platform.
Good for very handcrafty people that really like to go everything-digital.
That's why I think my previous idea of a conventional liner pot+ arm+
weight would do the job nicely.
At 19:41 26/09/2001 -0500, you wrote:
>You could also mate a single mercury switch to a stepper shaft. After
>calibration, you simply spin the stepper and pole the mercury switch at each
>step. When it changes state, you look up the tilt via look-up table. Just
>a thought........
>
>ag
>
>
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
There are 2 optotransceivers each with perforated wheel. They are
configured as incrmental/decremental encoders and communicate with the PC
using standard RS232 interface. This could be easily translated to 0/+5V
for the BS with just a 5V zener and a resistor.
Fixing the position of the wheel shaft with a wire arm and a weight, would
give an in/de/cremental serial signal that could be input to the BS using
SERIN command.
Two problems:
- Low accuracy as there is no mechanical multiplication of the movement
(tilt) because no big rubber ball is used...
- The need to detect Zero degrees tilt with a different device (could be
the second optotransceiver coupled to the same wheel but using an
additional single hole in a second row). The position of this hole and
coupler should coincide with the horizantal position of the robot platform.
Good for very handcrafty people that really like to go everything-digital.
That's why I think my previous idea of a conventional liner pot+ arm+
weight would do the job nicely.
At 19:41 26/09/2001 -0500, you wrote:
>You could also mate a single mercury switch to a stepper shaft. After
>calibration, you simply spin the stepper and pole the mercury switch at each
>step. When it changes state, you look up the tilt via look-up table. Just
>a thought........
>
>ag
>
>
>
>
>_________________________________________________________
>Do You Yahoo!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Comments
two axis accelerometer that's easy to interface with the Basic
Stamp--they even give you code...
You'll want to get it on their evaluation board:
http://www.analog.com/techsupt/eb/ADXL202EB_0.pdf
which is $30+shipping.
Notes on using it as a tilt sensor:
http://www.analog.com/techsupt/application_notes/car_app.pdf
Notes in interfacing it with the stamp:
http://www.analog.com/techsupt/application_notes/StampXL202.pdf
Rory
This makes them real cheap if you only want 1 or 2
Regards
Peter Rogers
Original Message
From: "Rory MacKean" <rmackean@n...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, September 29, 2001 2:32 AM
Subject: [noparse][[/noparse]basicstamps] Re: More on Tilt sensor
> I don't remember anyone mention the Analog Devices ADXL202. It's a
> two axis accelerometer that's easy to interface with the Basic
> Stamp--they even give you code...
>
> You'll want to get it on their evaluation board:
> http://www.analog.com/techsupt/eb/ADXL202EB_0.pdf
> which is $30+shipping.
>
> Notes on using it as a tilt sensor:
> http://www.analog.com/techsupt/application_notes/car_app.pdf
>
> Notes in interfacing it with the stamp:
> http://www.analog.com/techsupt/application_notes/StampXL202.pdf
>
> Rory
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>