element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Light Up Your Life
  • Challenges & Projects
  • Design Challenges
  • Light Up Your Life
  • More
  • Cancel
Light Up Your Life
Forum RGB Flashlight #02: Arduino integration attempt / misc planning
  • News
  • Forum
  • Projects
  • DC
  • Leaderboard
  • Files
  • Members
  • More
  • Cancel
  • New
Join Light Up Your Life to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 0 replies
  • Subscribers 50 subscribers
  • Views 37 views
  • Users 0 members are here
  • würth elektronik
  • Light Up Your Life
  • arduino
Related

RGB Flashlight #02: Arduino integration attempt / misc planning

CADi_Master
CADi_Master 8 days ago

Last time I settled on using Würth Elektronik LED #1315050930002 for my prototype flashlight since it had the best balance of easy soldering and brightness output. Unfortunately I still had some trouble getting the soldering down. Overall my progress for this contest was more on paper than on PCB. But thankfully the paper progress led to a cool new project idea, which I'll describe in my summary post at the end.

The complexity of my project lies more in the physical design and software control of the LEDs than advanced use cases of the LEDs themselves. If each of the 1315050930002 LEDs can output roughly 1 candela of light, there will be limited useful range for this as a flashlight. Thinking about it as more of a desk lamp now. But that's fine!

I'd like for my light to be able to store specific lighting color profiles to switch between at the press of a button rather than just using dials or something for inexact values. Luckily the LED itself (DIN → internal controller → actual colors) does most of the heavy lifting. The challenge is figuring out:

  • How should the human user tell the light what to do?
  • How can the Arduino interpret those human decisions?
  • And what “modes” make sense for a small handheld RGB flashlight or desk lamp?

Thus began my journey into control architecture.

image

Würth Elektronik LED #1315050930002 is basically a tiny NeoPixel/WS2812-style smart pixel with 4 pins (VDD, VSS, DIN, DOUT).

1 - VSS: Ground pin, will connect to Arduino Zero pin GND.

2 - DIN: Data In. Will connect to Pin ~6 on Arduino (PWM).

3 - VDD: Power supply. +5V pin on Arduino.

4 - DOUT: Data out. Would go to the next LED in series (I think) but I'm starting with only one LED for now.

Basic circuit diagram

This is about all I'd need (save for the memory card, power input, and the optional capacitor). My soldering skills are unfortunately not up to par, so I wasn't able to actually get this working even with sample code from Arduino. 

I found in interesting learning about all the different pins on the Arduino, and the differences between PWM and SPI. The Neopixel library by Adafruit has all kinds of great tools built for controlling these LEDs. I wish I had gotten the physical construction down better in time. I'll keep progressing with this though. I tried running this sample code but didn't get any output from the LED: https://github.com/adafruit/Adafruit_NeoPixel/blob/master/examples/simple/simple.ino. 

Regarding the controls for the device, I'll need more time to test options. Not sure whether dials are better than buttons for what I need. Ideally I'd also like a way for users to calibrate their profiles to their particular vision needs. More planning needed! I've seen plenty of RGB flashlights on the market but they all just let you use a single LED at a time. I want something more robust.

To any readers: What features would you like in an RGB flashlight or desk lamp?

I'll document my soldering attempts more in my next post. I shall prepare now for my public shaming.

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube