Author Topic: Cheap tilt sensor  (Read 1998 times)

0 Members and 1 Guest are viewing this topic.

Offline JdogTopic starter

  • Robot Overlord
  • ****
  • Posts: 259
  • Helpful? 3
Cheap tilt sensor
« on: March 15, 2009, 03:39:16 PM »
I found this instructable which might be beneficial to some people on this sight.
http://www.instructables.com/id/Five_cent_Tilt_Sensor/
Although, I don't like the way he wired it. I would personally recommend wiring positive to the nickel, negative to a 10k resistor and to the nickel, and then each corner pin to a digital input. I think that makes more sense.

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: Cheap tilt sensor
« Reply #1 on: March 15, 2009, 03:54:59 PM »
You don't need a 10k resistor, or have positive connected. Just connect the nickel to ground and the pins to the digital inputs and treat them as buttons.
« Last Edit: March 15, 2009, 03:56:02 PM by Razor Concepts »

Offline JdogTopic starter

  • Robot Overlord
  • ****
  • Posts: 259
  • Helpful? 3
Re: Cheap tilt sensor
« Reply #2 on: March 15, 2009, 04:10:23 PM »
Every time I've seen a button I've always seen it with a 10k resistor.

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: Cheap tilt sensor
« Reply #3 on: March 15, 2009, 06:31:46 PM »
Every time I've seen a button I've always seen it with a 10k resistor.


Probably because the resistor is when you want a Pull-Up or Pull-Down design - meaning the input pin will constantly be HIGH or LOW until the button is pressed, in which case it becomes the inverse logic value( constant HIGH would become LOW , etc.)
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
    • RazorConcepts
Re: Cheap tilt sensor
« Reply #4 on: March 15, 2009, 06:40:46 PM »
With AVRs you can just enable an internal pull-up resistor in the programming.

Offline JdogTopic starter

  • Robot Overlord
  • ****
  • Posts: 259
  • Helpful? 3
Re: Cheap tilt sensor
« Reply #5 on: March 16, 2009, 08:08:48 PM »
Every time I've seen a button I've always seen it with a 10k resistor.


Probably because the resistor is when you want a Pull-Up or Pull-Down design - meaning the input pin will constantly be HIGH or LOW until the button is pressed, in which case it becomes the inverse logic value( constant HIGH would become LOW , etc.)

Oh that makes sense, I always wondered why they did that.

 


Get Your Ad Here