Using a Tilt Sensor

I was experimenting with tilt sensor this morning. The AdaFruit tutorial wasn’t clear enough and the Arduino tutorial seems incomplete. So I decided to publish one here.

I used below steps to build the circuit:

1. Connect one end of the tilt sensor to the +5V. Connect the other end to Arduino digital pin#5
2. Connect a 10K resistor in series with the digital pin#5. Connect the other end of the resistor to the GND.
3. Connect the negative leg (short) of the LED to the GND. Connect the positive leg (long) to Arduino digital pin#3
4. Connect a 330 ohm resistor in series with the digital pin#3. Connect the other end of the resistor to the GND.

tilt_sensor_bb

You can use the sketch to test the tilt sensor. If everything goes fine, you should see the LED glow when the sensor is tilted. You can also check the print message in the Arduino serial monitor.

Advertisements

2 thoughts on “Using a Tilt Sensor

  1. That’s Great they did a wireless temperature sensor and I am wanting to build one but cant find the list of items or the package project can you help me with that?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s