Author Topic: question with accelerometers  (Read 2694 times)

0 Members and 1 Guest are viewing this topic.

Offline atbrownTopic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 0
question with accelerometers
« on: January 02, 2010, 07:35:06 PM »
I'm fairly new to robotics yet have made a few small spin-offs of the $50 robot.  I have a basic question about accelerometers.  My goal is to place a sensor on an obstacle and when the obstacle is moved the sensor will turn on a pre-recorded message similar to those greeting cards that play a tune when opened.  If you must know, I want to place it in my shoes, so when the dog tries to run off with my damn shoes again, it'll get yelled at...stupid?...I know!!  Obviously this is just something I'm doing for fun while bored, so I want this to be very affordable and I'm hoping the cheapest accelerometer will work.  What type and specs should I look for in the particular accelerometer and does anyone have a simple schematic that acts similar that I may be able to use (ie. turns on an LED, etc.)?

Thank you.

Offline z.s.tar.gz

  • Supreme Robot
  • *****
  • Posts: 540
  • Helpful? 5
  • Linux Guru
Re: question with accelerometers
« Reply #1 on: January 02, 2010, 07:41:45 PM »
You're more than likely going to need a microcontroller to read the accelerometer, but for an even cheaper solution, you could do like they do in light-up pens and stuff like that:
Put a little spring inside a little metal cylinder to where they're almost touching. That way when you move it around, the spring touches the cylinder completing the circuit.
Since you don't actually need a numerical value for acceleration, that would be a far cheaper option.
Save yourself the typing. Just call me Zach.

Offline madsci1016

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,450
  • Helpful? 43
    • Personal Website
Re: question with accelerometers
« Reply #2 on: January 02, 2010, 08:28:08 PM »
If you are dead set on using a accelerometer, you can use an "Op-Amp Comparator" to trigger a device when the accelerometer is moved.



Read about it here: (scroll down a bit)

http://www.swarthmore.edu/NatSci/echeeve1/Class/e72/E72L2/Lab2%28OpAmp%29.html

Accel's output an analog voltage based on accel due to gravity. So you would set the comparator to trigger to what voltage (and there by force/orientation ) to trigger at.

Offline madsci1016

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 1,450
  • Helpful? 43
    • Personal Website
Re: question with accelerometers
« Reply #3 on: January 02, 2010, 08:32:33 PM »
And you could use this to play a message:

http://www.radioshack.com/product/index.jsp?productId=2102855

and a sensor like this is fine

http://www.sparkfun.com/commerce/product_info.php?products_id=252

So total project cost would be around 30-40 bucks.

Offline HyperNerd

  • Robot Overlord
  • ****
  • Posts: 139
  • Helpful? 5
  • N3rd1n80r
Re: question with accelerometers
« Reply #4 on: January 03, 2010, 05:30:21 AM »
I saw a message greeting card thing once which let you record your own message, and you could do it multiple times.

If you were to gut one of these cards then modify it a bit, it could be a very cheap way (with the spring in a cylinder thing) to make your device.

 -HyperNerd
There are 10 types of people in the world - those who understand binary, and those who don't.

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: question with accelerometers
« Reply #5 on: January 03, 2010, 02:25:25 PM »
Hi,

If you must know, I want to place it in my shoes, so when the dog tries to run off with my damn shoes again, it'll get yelled at.
No need for an accelerometer to do that. A simple trembler switch will do.

Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

 

SMF spam blocked by CleanTalk