Arduino Beginner Series: Project 13: Tilt Sensing LED

Hello everyone!! Welcome to this post on Arduino LED Projects!!
Need a short introduction to what the Arduino is then click on LINK
Check out the breadboard intro right HERE


This is what my project looked like:
(Sorry you can maybe hear my younger brother yelling in the background )

Things Required:

  1. Arduino UNO
  2. Breadboard
  3. Jumper Wires
  4. Tilt Switch
  5. LED
  6. 220 ohm resistor
  7. Arduino IDE on computer

Functions used:

  1. digitalWrite()
  2. digitalRead()
  3. pinMode()

Reference Material:

So I made this one on my own. It’s a very simple project and you can refer to this video (LINK).


View on/ Download from : (LINK)

int redled=8;
int tilt_switch=2;

void setup() {
  // put your setup code here, to run once:
  pinMode(redled, OUTPUT);
  pinMode(tilt_switch, INPUT);

void loop() {
  // put your main code here, to run repeatedly:
    digitalWrite(redled, HIGH);
  } else {
    digitalWrite(redled, LOW);


Stay Tuned for upcoming posts on Arduino Projects! We’re on the basic newbie projects right now and slowly, gradually move on to those cool, ultra techy projects!! Want to be the first to know when a new and amazing post comes up?? Then feel free to subscribe!

Happy Learning!!

Leave a Reply


Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this:
search previous next tag category expand menu location phone mail time cart zoom edit close