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 24453 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…
  • DAB
    DAB over 3 years ago

    Nice build Katie.

    You are probably going to have to search through you circuit and get some accurate current readings to trace down the culprit.

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

    I just recently discovered that this kind of thing exists:

    image

    Ultra-thin gooseneck, with M4 thread : ) 

    image(Image source: Aliexpress)

    I feel this could be key for some sort of lighting solution.

    The hole through it is big enough for a a few very thin wires to pass through (I tested with a couple of lengths of 30AWG insulated wire, but perhaps 3 wires could fit, not much more!).

    I originally got it for a PCB microscope, but as usual, feature creep has occurred and I'm still working on it.

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

    This is another interesting and useful looking project.

    Attention to the quality of lighting these days is often hard to find and it appears that brightness has more often than not taken priority over the quality or control of lighting.

    A comfortable head-worn light with a good level of light control, producing even light without hot-spotting, would be a valuable visual aid for all sorts of activities.

    A bit late to the party perhaps but I noticed that the SAMD21 power manager has a 'reset cause' register (RCAUSE) which can tell you the reason why the device reset.

    image
     https://ww1.microchip.com/downloads/en/DeviceDoc/SAM_D21_DA1_Family_DataSheet_DS40001882F.pdf#page=158

    Mapping these to some GPIO pins might help with diagnosing future issues.

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

    I see.. I hadn't noticed the black blob comment (I watch all YouTube videos at high speed) but can imagine there's something there that may be interfering. 

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

    So this is wired after the headset on/off switch?  How about wiring it before the headset on/off switch and just add a new switch.

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

    Just a minor note.

    measure.RangeMilliMeter returns an unsigned 16-bit integer and you're storing the value in a signed variable and then doing a "less than" comparison. Probably not an issue overall, but it is kind of messy.

    • 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
  • hifromkatie
    hifromkatie over 3 years ago in reply to shabaz

    Yes, the schematic includes that for the red LED that I was using whilst testing on breadboard. The LED on the magnifier had a 10ohm resistor on the PCB with the switch component on it going to the LED moulded in the plastic housing.

    Interestingly it isn't causing a brownout, the micro continues to be. up, and in comms with the sensor the whole time.
    Removing the switch and replacing it with a latching switch fixes the flickering (There may be a slight hint, but I may also be seeing things by this point!)

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

    Thanks, it was a neat little project, and I like it when a project can be useful.

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

    That would be a good call based on the time interval, and the range check, but I did try that and it made no difference

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