Sticking an accelerometer on a driver?

23 posts / 0 new
Last post
throwton
throwton's picture
Offline
Last seen: 1 day 10 hours ago
Joined: 06/06/2017 - 12:05
Posts: 31
Location: Oregon
Sticking an accelerometer on a driver?

Hey guys, I’ve been thinking about this for awhile, and wanted to get some feedback just to see if the concept is viable.

Does it make sense to design a driver that has an accelerometer based (or assisted) UI? Or what about an ALS (ambient light sensor) that automatically adjusts the output? I think there is plenty (a.k.a, several square mm Big Smile ) of room to squeeze one into a 20mm driver, probably even a 17mm. It seems to me that we want our flashlights to have a lot of modes and features, but don’t want to cycle through them all with a single button interface. An accelerometer would allow you to get to a mode with a single gesture, without having to push a button several times.

What do you think? Is this a stupid idea or not?

I've only been wrong once, and that's when I thought I was wrong.

hIKARInoob
hIKARInoob's picture
Offline
Last seen: 3 hours 48 min ago
Joined: 08/28/2016 - 08:15
Posts: 1936

It already exists. Maglite XL200. Interesting UI actually.

Edit:

I like the idea. Maybe it’s not going to be as great as a regular UI with a side switch, but you can custom tailor the UI to your liking. The Maglite uses a rotating motion to increase or decrease brightness. So it’s using the accelerometer as a G-force sensor. But you can also use the same sensor to register tapping, or a tapping pattern as an UI input. To make it work successfully you do need to fiddle with the firmware. Honestly it sounds like good fun to me if you have the capability to do this. Cool

throwton
throwton's picture
Offline
Last seen: 1 day 10 hours ago
Joined: 06/06/2017 - 12:05
Posts: 31
Location: Oregon

I’m pretty comfortable with hardware design and pcb layout, and somewhat competent with writing code. I have done a couple projects with accelerometers before, so they’re nothing new to me.

I've only been wrong once, and that's when I thought I was wrong.

hIKARInoob
hIKARInoob's picture
Offline
Last seen: 3 hours 48 min ago
Joined: 08/28/2016 - 08:15
Posts: 1936

Sounds like an awesome project then; it’s going to be really unique. I would also say that it’s not about whether using an accelerometer is already done or not, but how you’re going to implement it. I’d say go for it! Party

EasyB
Offline
Last seen: 17 hours 15 min ago
Joined: 03/09/2016 - 15:24
Posts: 1167
Location: Ohio

I’m interested in non-standard UIs, but it seems to me like there would be too much accidental activation with an accelerometer based UI. The flashlight is going to be moving all around during the various activities we use lights for. Maybe it could work well if the gestures were unique and defined well.

throwton
throwton's picture
Offline
Last seen: 1 day 10 hours ago
Joined: 06/06/2017 - 12:05
Posts: 31
Location: Oregon

Yeah, I agree. Maybe something like moving it in a clockwise circle for more output, counterclockwise for less. Pretty hard to mistake a gesture like that.

I've only been wrong once, and that's when I thought I was wrong.

CRX
CRX's picture
Offline
Last seen: 5 hours 8 min ago
Joined: 04/02/2013 - 15:27
Posts: 1973
Location: Scotland

I think it could be cool. Implementing the feature into the driver would be really good.
I made a light with a simple mercury switch controlling auxiliary red LED’s. Fun.

rizky_p
rizky_p's picture
Offline
Last seen: 45 min 33 sec ago
Joined: 03/01/2011 - 05:06
Posts: 700
Location: Indonesia

nitecore SENS have gesture control, but not sure if its uses accelerometer.

TBone
Offline
Last seen: 6 hours 15 min ago
Joined: 01/27/2016 - 16:42
Posts: 137
Location: Europe

It is not a stupid idea at all. Some people realize that a single button may not be the best way to control a flashlight with many different modes.

“Imagine the folly of an automobile with one pedal replacing the brake and accelerator (press once to accelerate, press three times and hold to brake)!” (Source)
.

Using more buttons, control rings or sliders is one way to go. Sensors that make the light ‘smarter’ is another.

  • Nitecore uses a remarkable ‘Active Dimming Technology’ in their SENS series (review). I do not like rotating the head to switch the light on/off and for me the light is too small to be useful. But once you got it running the brightness adjustment works amazingly well. I would love to see that on a 17 mm driver for larger lights.
  • Maglite’s ‘Motion Control’ system on the XL100 lets you rotate the light around its axis. Strange. Here is a view at the internal components.
  • Surefire uses a light sensor for its ‘Intellibeam’ technology. The output power immediately adapts to the amount of light reflected.
  • Petzl uses a distance sensor on their NAO headlight.
Trevi_lux
Trevi_lux's picture
Offline
Last seen: 6 hours 10 min ago
Joined: 09/04/2012 - 10:52
Posts: 1624
Location: Galicia-Spain

Fenix E20 2014 also have some type of acelerometer:

ryansoh3
ryansoh3's picture
Offline
Last seen: 1 day 7 hours ago
Joined: 08/04/2012 - 08:21
Posts: 3856
Location: US

Which accelerometers have you worked with?

BLF ≠ B-grade Flashlight Forum

 

throwton
throwton's picture
Offline
Last seen: 1 day 10 hours ago
Joined: 06/06/2017 - 12:05
Posts: 31
Location: Oregon
ryansoh3 wrote:
Which accelerometers have you worked with?

I’ve worked with LSM303D (3 axis accelerometer + 3 axis magnetometer) and LSM6DSL (3 axis accelerometer + 3 axis gyroscope).

I've only been wrong once, and that's when I thought I was wrong.

WTF
Offline
Last seen: 2 days 5 hours ago
Joined: 03/05/2017 - 20:13
Posts: 66

It would be good for mountain biking, automatically going to low when going really slow or stopping.

Being able to sense actual speed and filter out bumps to make lighting levels speed sensitive would be the best. It would maximize battery life and minimize overheating allowing for smaller helmet mounted lights. It would probably require mounting the accelerometer on the wheel with a wireless connection.

If you were just going to do gesture based commands, can it be done on an attiny or would it require a more powerful mcu?

ryansoh3
ryansoh3's picture
Offline
Last seen: 1 day 7 hours ago
Joined: 08/04/2012 - 08:21
Posts: 3856
Location: US
throwton wrote:
ryansoh3 wrote:
Which accelerometers have you worked with?

I’ve worked with LSM303D (3 axis accelerometer + 3 axis magnetometer) and LSM6DSL (3 axis accelerometer + 3 axis gyroscope).

Nice, if the implementation is well done, it’ll be quite useful. Unfortunately, even well known flashlight manufacturers haven’t done anything novel with it.
I’ve worked with some accelerometer from AD (analog voltage output) and they’ve worked pretty well too.

BLF ≠ B-grade Flashlight Forum

 

throwton
throwton's picture
Offline
Last seen: 1 day 10 hours ago
Joined: 06/06/2017 - 12:05
Posts: 31
Location: Oregon

WTF wrote:
It would be good for mountain biking, automatically going to low when going really slow or stopping.

Being able to sense actual speed and filter out bumps to make lighting levels speed sensitive would be the best. It would maximize battery life and minimize overheating allowing for smaller helmet mounted lights. It would probably require mounting the accelerometer on the wheel with a wireless connection.

It would be really neat if it could use the accelerometer to sense speed, but in practice this is extremely difficult, even more so on an attiny.

WTF wrote:
If you were just going to do gesture based commands, can it be done on an attiny or would it require a more powerful mcu?

Many (if not most) accelerometers have built in gesture recognition algorithms, so I think it’s not too much for an attiny to handle.

I've only been wrong once, and that's when I thought I was wrong.

WalkIntoTheLight
Offline
Last seen: 5 hours 9 min ago
Joined: 12/05/2015 - 10:26
Posts: 855
Location: Canada

WTF wrote:
It would be good for mountain biking, automatically going to low when going really slow or stopping.

Being able to sense actual speed and filter out bumps to make lighting levels speed sensitive would be the best. It would maximize battery life and minimize overheating allowing for smaller helmet mounted lights. It would probably require mounting the accelerometer on the wheel with a wireless connection.

I think I had something like that on my bike when I was 8 years old. A headlight, powered by a small motor that rested on the wheel. The faster I biked, the brighter the light! If I stopped, no light. Maybe not the safest kind of bike light, but back in the good ol’ days, we kids were disposable.

Aurora
Offline
Last seen: 2 days 2 hours ago
Joined: 08/26/2015 - 16:23
Posts: 31
Location: Alaska

This is a really cool idea. I have no where near the right kind of skills to do anything with it, but the possibilities seem endless.

Use the button to lock out gestures, only allow them to be recognized when held to prevent accidental input.

Here is just an idea of what a UI could look like.

  • Hold button and rotate around minor horizontal axis to ramp brightness. (How cool would it be to control ramp speed by how fast you flick your wrist!?)
  • Rotate left then right around minor horizontal axis to check battery voltage
  • Hold button and rotate around major axis to change modes
  • Hold and shake for strobe. (Or just get rid of strobe entirely!)
  • Enter config mode with 3 sharp taps (Just tap it on a table or something)
throwton
throwton's picture
Offline
Last seen: 1 day 10 hours ago
Joined: 06/06/2017 - 12:05
Posts: 31
Location: Oregon

Aurora wrote:
This is a really cool idea. I have no where near the right kind of skills to do anything with it, but the possibilities seem endless.

Use the button to lock out gestures, only allow them to be recognized when held to prevent accidental input.

Here is just an idea of what a UI could look like.

  • Hold button and rotate around minor horizontal axis to ramp brightness. (How cool would it be to control ramp speed by how fast you flick your wrist!?)
  • Rotate left then right around minor horizontal axis to check battery voltage
  • Hold button and rotate around major axis to change modes
  • Hold and shake for strobe. (Or just get rid of strobe entirely!)
  • Enter config mode with 3 sharp taps (Just tap it on a table or something)

I really like those features, especially the first one.

Another idea: if you integrated a magnetometer, you could even turn it into a crude compass. Might be useful to hikers and outdoorsy people.

I've only been wrong once, and that's when I thought I was wrong.

WalkIntoTheLight
Offline
Last seen: 5 hours 9 min ago
Joined: 12/05/2015 - 10:26
Posts: 855
Location: Canada

throwton wrote:
Aurora wrote:
This is a really cool idea. I have no where near the right kind of skills to do anything with it, but the possibilities seem endless.

Use the button to lock out gestures, only allow them to be recognized when held to prevent accidental input.

Here is just an idea of what a UI could look like.

  • Hold button and rotate around minor horizontal axis to ramp brightness. (How cool would it be to control ramp speed by how fast you flick your wrist!?)
  • Rotate left then right around minor horizontal axis to check battery voltage
  • Hold button and rotate around major axis to change modes
  • Hold and shake for strobe. (Or just get rid of strobe entirely!)
  • Enter config mode with 3 sharp taps (Just tap it on a table or something)

I really like those features, especially the first one.

Another idea: if you integrated a magnetometer, you could even turn it into a crude compass. Might be useful to hikers and outdoorsy people.

By the time you add all the features, aren’t you just trying to invent a smart phone?

Aurora
Offline
Last seen: 2 days 2 hours ago
Joined: 08/26/2015 - 16:23
Posts: 31
Location: Alaska

Yea, it might be a bit complex to start with. But on the other hand, I know that when multimode lights were introduced, the same kinds of things were said. Look where we are now!

Tom E
Tom E's picture
Offline
Last seen: 38 min 48 sec ago
Joined: 08/19/2012 - 08:23
Posts: 10237
Location: LI NY

I  have a NiteCore SENS, but not overly thrilled with it. Interesting if someone can come up with a real vision of an intuitive UX that makes use of it.

throwton
throwton's picture
Offline
Last seen: 1 day 10 hours ago
Joined: 06/06/2017 - 12:05
Posts: 31
Location: Oregon

Thanks for the feedback guys, maybe this will have to be my next project Big Smile

I've only been wrong once, and that's when I thought I was wrong.

ToyKeeper
ToyKeeper's picture
Offline
Last seen: 59 min 10 sec ago
Joined: 01/12/2013 - 14:40
Posts: 6006
Location: (469219) 2016 HO3

I may try some accelerometer UI stuff eventually, but not necessarily on a flashlight. I’m making some light saber drivers, and it’s a lot more relevant for that.