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
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Enhancing a Magnifying Headband with Auto Sensing Light -- Episode 585
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 12 Jan 2023 4:58 PM Date Created
  • Last Updated Last Updated: 13 Jan 2023 8:24 AM
  • Views 24458 views
  • Likes 8 likes
  • Comments 27 comments

Enhancing a Magnifying Headband with Auto Sensing Light -- Episode 585

Do you often use a illuminated magnification headband? Do you get annoyed that you need to turn it off and on when looking away from your work? This project contains 2 solutions, a basic tilt sensor option that can be added in minutes, and a more complex distance detecting circuit which will change the illumination depending on how far away the object you are looking at is.

Watch the Video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Bonus Content:

  • Download Code and Schematics

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
LC1780USB Magnifier, Spectacles & Headband, 1x, 1.5x, 2x, 2.5x & 3.5x LIGHTCRAFT 1 Buy Now
102010328 Arduino Microcontroller Board, SAMD21G18, ARM Cortex-M0+ SEEED STUDIO 1 Buy Now
STMICROELECTRONICS Daughter Board, VL53L0X Gesture and Ranging Sensor, FlightSense STMICROELECTRONICS 1 Buy Now
MICROCHIP Power MOSFET, N Channel, 60 V, 200 mA, 5 ohm, TO-92, Through Hole MICROCHIP 1 Buy Now
COMUS (ASSEMTECH) Tilt Switch, 15 °, 60 Vac, 0.25 A, Nickel COMUS (ASSEMTECH) 1 Buy Now
 

element14 presents

element14 presents  |  About Katie Dumont |  Project Videos

  • tilt
  • e14p_KD
  • magnification
  • Xiao
  • Distance sense
  • illuminate
  • modify
  • friday_release
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • hifromkatie
    hifromkatie over 3 years ago in reply to DAB +1
    Thanks, it hard to find the culprit further than "something under the epoxy blob", by bypassing the switch circuit which has the auto power off and other stuff hidden under expoxy, the problem is resolved…
Parents
  • Workshopshed
    Workshopshed over 3 years ago

    Could be power or it could be software.

    You can check if it is the latter with the following code which should turn the LEDs on for 5s then off for 5s. If you still get flickering then it's probably not to do with your code.

     unsigned long time;

    bool led = 0;

    void setup() {
    pinMode(ledPin, OUTPUT);
    digitalWrite(ledPin, LOW);

    if (!lox.begin()) {
    while(1);
       }

    time = millis();
    }

    void loop() {
    VL53L0X_RangingMeasurementData_t measure;

    lox.rangingTest(&measure, false); // pass in 'true' to get debug data printout!

    if (measure.RangeStatus != 4) { // phase failures have incorrect data
    distance = measure.RangeMilliMeter;
    }

    if (millis() - time > 5000) {
          led = !led;
          digitalWrite(ledPin, led);
          time = millis()

    }

    delay(100);

    There's also a different example you can base your solution on which is the continuous scan. 

    https://github.com/adafruit/Adafruit_VL53L0X/blob/master/examples/vl53l0x_continuous/vl53l0x_continuous.ino


    You mentioned a blob chip on the visor. We can speculate what this might do, it could be something like an LED driver or perhaps something that does an auto power off? It might also be a voltage booster depending on how the LEDs are being driven.
    Obvious thing is to try and bypass that and drive the LEDs yourself. You've got a microcontroller there so you could use an PWM output to drive your FED instead of a simple digital one.






    github.com/.../vl53l0x_continuous.ino

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hifromkatie
    hifromkatie over 3 years ago in reply to Workshopshed

    I'd tested the software and it isn't that, but seemed the likely cause to begin with. Powering from USB it works perfectly, removing the switch with the "blob" which appears to be a switch IC with power off timeout also fixes it. So it seems the cause is that blob type circuit, which is a pain, as the moulded switch would have been nice to keep, and the auto timeoff is a nice feature

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • hifromkatie
    hifromkatie over 3 years ago in reply to Workshopshed

    I'd tested the software and it isn't that, but seemed the likely cause to begin with. Powering from USB it works perfectly, removing the switch with the "blob" which appears to be a switch IC with power off timeout also fixes it. So it seems the cause is that blob type circuit, which is a pain, as the moulded switch would have been nice to keep, and the auto timeoff is a nice feature

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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 © 2026 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