logo-mobile

ROHM

ROHM
Menu
  • Arduino –
  • Raspberry Pi –
  • Trending –
  • Others –
  • About –
  • Contact –

Arduino

Let’s Make Arduino LED Holiday Lighting using Proximity Sensor

Device Plus Editorial Team
Published by Device Plus Editorial Team at December 16, 2017
Categories
  • Arduino
Tags
  • Arduino
  • christmas
  • holiday
  • led

led holiday lighting

In Let’s Make Arduino LED Holiday Lighting, we made a decorative lighting using Arduino and a full color LED string light. This time we’re going to incorporate ROHM proximity sensor and make the lighting more interactive, so once an object is nearby the LEDs will light up in fancy colors!

Today’s Electronic Recipe

Estimated time to complete: 60 minutes

Parts needed:

  • Arduino UNO R3
  • WS2811 5M LED Strip 240 SMD 5050
  • ROHM Sensor Evaluation Kit

Table of contents

  1. Connecting proximity sensor
  2. Customizing the program
  3. Let’s light up!

 

1. Connecting proximity sensor

We’ll be using ALS/proximity sensor (RPR-0521RS) introduced in ROHM Sensor Evaluation Kit Overview. Let’s connect the sensor shield and the sensor to the Arduino.

When an object (e.g. your hand) is brought close to the proximity sensor, radially arranged LEDs are triggered and will give off crazy fancy lighting effect.

 

led holiday lighting


Figure 1. RPR-0521RS proximity sensor added to the sensor shield and Arduino

Let’s take a look at the location and the voltage required for the sensor shown below. Since the proximity sensor is I2C, it’s placed in the blue area, and the required voltage is 3V, so we need to set the jumper pin to 3V in the middle.

led holiday lighting

Figure 2. Sensor placement location on Sensor Shield

As for the power supply of the LED string, we need another 5V power other than Arduino. If we try to take the power from Arduino’s VCC or 5V, Arduino may fry due to the large amount of current consumed by the LED string light.

led holiday lighting

Figure 3. Power is supplied via external power adapter separately from Arduino

Last time we used only one LED string, but this time we’ll connect 3 LED string lights in parallel. Since connection method is parallel, power supply and GND share common points. We may connect more LEDs but how many depends on the number of LEDs that can actually shine with LED string and the current capacity of the power adapter.

Operating current is about 20 mA per one LED on the LED string. Since the supply current is 1.3A, about 65 pieces can be lit all together.

led holiday lighting

Figure 4. Parallel connection of LED tapes

led holiday lighting

Figure 5. LED strings extending from Arduino body

Now that the hardware part is done, let’s move on to program the LED string light.

1 2 3
Device Plus Editorial Team
Device Plus Editorial Team
Device Plus is for everyone who loves electronics and mechatronics.

Check us out on Social Media

  • Facebook
  • Twitter

Recommended Posts

  • Let’s Make Arduino LED Holiday LightingLet’s Make Arduino LED Holiday Lighting
  • Raspberry Pi WebIOPi IOT – Full-Color LED Christmas DecorationRaspberry Pi WebIOPi IOT – Full-Color LED Christmas Decoration
  • Make an LED Arduino Christmas Tree with ROHM Sensor KitMake an LED Arduino Christmas Tree with ROHM Sensor Kit
  • Glowing Christmas Snowman Using ESP-WROOM-02 & Weather APIGlowing Christmas Snowman Using ESP-WROOM-02 & Weather API
  • Using ESP-WROOM-02 Wifi Module As Arduino MCUUsing ESP-WROOM-02 Wifi Module As Arduino MCU
  • Step By Step Guide To Your First Project With ArduinoStep By Step Guide To Your First Project With Arduino
Receive update on new postsPrivacy Policy

Recommended Tutorials

  • How to integrate an RFID module with Raspberry Pi How to integrate an RFID module with Raspberry Pi
  • How to Use the NRF24l01+ Module with Arduino How to Use the NRF24l01+ Module with Arduino
  • How to Run Arduino Sketches on Raspberry Pi How to Run Arduino Sketches on Raspberry Pi
  • Setting Up Raspberry Pi as a Home Media Server Setting Up Raspberry Pi as a Home Media Server

Recommended Trends

  • SewBot Is Revolutionizing the Clothing Manufacturing Industry SewBot Is Revolutionizing the Clothing Manufacturing Industry
  • All About The Sumo Robot Competition And Technology All About The Sumo Robot Competition And Technology
  • 5 Interesting Tips to Calculating the Forward Kinematics of a Robot 5 Interesting Tips to Calculating the Forward Kinematics of a Robot
  • Go Inside the Drones That Are Changing Food Delivery Go Inside the Drones That Are Changing Food Delivery
Menu
  • Arduino –
    Arduino Beginner’s Guide
  • Raspberry Pi –
    Raspberry Pi Beginner's Guide
  • Trending –
    Updates on New Technologies
  • Others –
    Interviews / Events / Others

Check us out on Social Media

  • Facebook
  • Twitter
  • About
  • Company
  • Privacy Policy
  • Terms of Service
  • Contact
  • Japanese
  • 简体中文
  • 繁體中文
Don’t Forget to Follow Us!
© Copyright 2016-2023. Device Plus - Powered by ROHM
© 2023 Device Plus. All Rights Reserved. Muffin group

istanbul escort istanbul escort istanbul escort