[WIP] 17mm DD+single-7135 driver / single sided / Dual-PWM

505 posts / 0 new
Last post
ToyKeeper
ToyKeeper's picture
Offline
Last seen: 32 min 11 sec ago
Joined: 01/12/2013 - 14:40
Posts: 10105
Location: (469219) 2016 HO3
bdiddle wrote:
But your right, using the light to illuminate the shower shows the pwm pretty bad.

I got the 1.2 / 2.4 kHz thing from the header comment in a STAR firmware file. I don’t know if it’s correct. Smile

In any case, the shower is actually pretty bad at showing PWM. The reason is because water droplets change shape as they fall, and small droplets change shape very quickly. So, the droplets will appear to flicker even under a constant-output light.

To test PWM I recommend quickly waving a white notecard (or other thin white stiff sheet) through the beam instead. Here are a couple images showing 488 Hz PWM versus 4.5 kHz PWM:

These images fairly accurately show how the lights actually look to my eyes under regular use… but I’m unusually sensitive to the flickering.

wight
Offline
Last seen: 2 weeks 18 hours ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

Good images ToyKeeper. I missed your last post and was pretty confused about bdiddle’s post after that saying that someone was right. Hence my rather pedestrian response.

bdiddle… the current firmware can be confusing to setup. Please post (not here – use somewhere else like pastebin or whatever you want) examples of you the entire program you used with Phase Correct and then with Fast PWM. It’s reasonably possible that you were not actually making the changes correctly.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

DB Custom
DB Custom's picture
Offline
Last seen: 4 hours 45 min ago
Joined: 01/13/2013 - 22:28
Posts: 20383
Location: Heart of Texas

TK, if you don’t mind will you please share the camera settings you used to determine those PWM’s?

So many variables with shutter speed, wondering how you got there. (I can freeze a high speed object, or make a snail look fast, depends on what I’m trying to achieve) Point being, how do you do the math after determining shutter speed.

I have found that with all the road construction in my area there is always dust in the air, this dust will show PWM quite well. I would imagine snow flakes would too. (not like I have those to shoot, it was around 70º today)

I wonder what settings it would take to show the faster PWM? Might be fun trying, I’d like to see what some of mine are actually doing but need some info. Wink

Thanks

Edit: Isn’t it also pertinent to establish speed of the card in fps to get an accurate frame count?

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

DBCstm wrote:
TK, if you don’t mind will you please share the camera settings you used to determine those PWM’s?

Oh, um… I didn’t.

I measure PWM speed with a very small microphone and a guitar tuner app called PitchLab. When the pulsing is audible, the sound is by far the easiest way to get the frequency.

For some reason, most lights will get louder when they’re aimed point-blank at fabric. I don’t know why that happens, but it’s pretty helpful for measurement.

The pictures are just to give a rough idea what the resulting beam looks like, and how to visually check for PWM. I can only get a ballpark idea what the speed is through visual means. This is at least enough to sanity-check my sound-based measurements though.

DBCstm wrote:
I have found that with all the road construction in my area there is always dust in the air, this dust will show PWM quite well. I would imagine snow flakes would too.

I haven’t found airborne particles to be very useful for PWM. For example, this ice fog was shot with a 4.5 kHz PWM light. The particles were small enough to hang in the air instead of falling, and they showed no sign of flickering in the camera as the wind blew them around.

(click to enlarge)

Fritz t. Cat
Fritz t. Cat's picture
Offline
Last seen: 1 year 1 week ago
Joined: 05/07/2013 - 00:33
Posts: 2535
Location: Si Valley

WarHawk-AVG wrote:
Nice..single 7135 for low modes and a FET for DA POWAH!

Awesome build wight…good job!


+1
All the way from stable moonlight modes to direct drive with huge trace widths and many vias, on a one sided board.

Flashlight designers should look at lighthouses and pottery.
这些谁设计的手电筒应该看灯塔,以及在陶器。

bdiddle
Offline
Last seen: 1 year 3 months ago
Joined: 12/14/2012 - 14:36
Posts: 811

wight wrote:

bdiddle… the current firmware can be confusing to setup. Please post (not here – use somewhere else like pastebin or whatever you want) examples of you the entire program you used with Phase Correct and then with Fast PWM. It’s reasonably possible that you were not actually making the changes correctly.

I posted a pastebin of the code I am using in the Star firmware thread, here

Newb

musicmagic
Offline
Last seen: 4 years 9 months ago
Joined: 10/28/2013 - 09:53
Posts: 984
Location: CT

toykeeper:
http://budgetlightforum.com/node/30031
http://en.wikipedia.org/wiki/Photoacoustic_effect

try black fabric, it should be louder

thats a cool idea about the guitar tuner app.

If you can’t blind them with your brilliance, baffle them with your bullcrap.

The real currency in the world is not money, it’s trust.

Fritz t. Cat
Fritz t. Cat's picture
Offline
Last seen: 1 year 1 week ago
Joined: 05/07/2013 - 00:33
Posts: 2535
Location: Si Valley

Annother thing about the large copper area is that it reduces unwanted high frequency effects. It stabilizes ground at high frequencies with the capacitance between the layers.

Flashlight designers should look at lighthouses and pottery.
这些谁设计的手电筒应该看灯塔,以及在陶器。

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

musicmagic wrote:
toykeeper:
http://budgetlightforum.com/node/30031
http://en.wikipedia.org/wiki/Photoacoustic_effect

try black fabric, it should be louder

thats a cool idea about the guitar tuner app.


That’s one of the coolest things I’ve seen in a long time. I had no idea it was caused by the dark fibers rapidly absorbing and releasing heat.

Now I really kind of want to make a firmware which will play tunes when aimed at black fabric. Smile

cajampa
Offline
Last seen: 3 years 5 months ago
Joined: 08/01/2014 - 01:55
Posts: 1963
Location: Sweden

Do it Smile it would amazingly cool to be able load an midi file in to a firmware and have a hidden mode that plays the lights theme song Wink

Not only disco modes anymore but an actual music producing disco mode Big Smile

Although i suspect something like that would take up alot of room in the attiny, but with all these new bigger attiny’s being discussed maybe someday it could be possible……

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

It’s cool, but with all the floppy drive symphonies and Tesla coil synthesizers, I think it’s already well-trodden territory. I think I’ll try to focus on making more useful stuff instead, like that off-time dual-pwm firmware people keep requesting.

cajampa
Offline
Last seen: 3 years 5 months ago
Joined: 08/01/2014 - 01:55
Posts: 1963
Location: Sweden

Yeah you are right of course Wink

But if you would just happen to run out of useful ideas, remember the one about the disco modes that actually sings Wink

Fritz t. Cat
Fritz t. Cat's picture
Offline
Last seen: 1 year 1 week ago
Joined: 05/07/2013 - 00:33
Posts: 2535
Location: Si Valley

ToyKeeper wrote:
musicmagic wrote:
toykeeper:
http://budgetlightforum.com/node/30031
http://en.wikipedia.org/wiki/Photoacoustic_effect

try black fabric, it should be louder

thats a cool idea about the guitar tuner app.


That’s one of the coolest things I’ve seen in a long time. I had no idea it was caused by the dark fibers rapidly absorbing and releasing heat.

Now I really kind of want to make a firmware which will play tunes when aimed at black fabric. Smile


People might be surprised by an infrared flashlight with good throw doing that.

Flashlight designers should look at lighthouses and pottery.
这些谁设计的手电筒应该看灯塔,以及在陶器。

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

Okay, that would indeed be a fun project… infrared laser programmed to play music on objects in the distance. Smile

I’m not aware of whether lasers can turn on and off fast enough, but otherwise it seems like it should work. Maybe I should ask over at the laser forums. A quick wikipedia scan suggests it should be feasible though.

Fritz t. Cat
Fritz t. Cat's picture
Offline
Last seen: 1 year 1 week ago
Joined: 05/07/2013 - 00:33
Posts: 2535
Location: Si Valley

You can’t do it with a laser, because it might hurt people’s eyes. It takes a good deal of power.

Flashlight designers should look at lighthouses and pottery.
这些谁设计的手电筒应该看灯塔,以及在陶器。

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

Perhaps a wide-beam laser instead of a narrow beam? Like, more focused than a SK-68 but not as much as a typical laser pointer? It’d be really cool to be able to trigger the effect from across a room.

DB Custom
DB Custom's picture
Offline
Last seen: 4 hours 45 min ago
Joined: 01/13/2013 - 22:28
Posts: 20383
Location: Heart of Texas

Do different fabrics create different “songs”?

At a party, people could walk into the projected wide beam laser that is creating the disco ball effect and have their shirt/jacket/dress/chest hair/whatever sing their own specific pattern. Smile

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 3 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

Quote:
No Zener! Sorry MT-G2 folks, you’ll have to stack a Zener between D1 and R2. Or maybe kind of wedge it between R2 and the FET.

So let’s just say I do want to stack a zener. Can you extrapolate on the above^^? It’s my first time messing with a zener.

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

wight
Offline
Last seen: 2 weeks 18 hours ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

The Zener is really actually pretty easy. There’s a “limiting” or “load” resistor, that’s the 100 ohm or 200 ohm or whatever resistor that’s placed on D1’s normal location. So one end of that resistor is wired directly to the MCU’s Vcc. The Zener is also wired directly to the MCU’s Vcc as well as GND. The cathode (striped end) goes towards Vcc, the other end goes to GND.

The Zener will self destruct without a current limiting resistor. It behaves sort of like a low-resistance short to GND. That’s why we add the resistor between Vin (BAT+) and the Zener, it prevents things from getting out of control and allows the Zener to pull Vcc down to the desired voltage.

I’d either put mine diagonally across D1 and R2 (from Vcc to GND) or horizontally from D1 across to FET pins 1-3 (GND).

Post a picture with the Zener laying in place and I’ll verify whether it’s correct.

EDIT: please try and fix the strike-through in your quote of the OP. For whatever reason it’s not working and I’d rather not have anyone get confused. Stacking on C1 is not acceptable for this driver.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 3 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

wight wrote:
The Zener is really actually pretty easy. There’s a “limiting” or “load” resistor, that’s the 100 ohm or 200 ohm or whatever resistor that’s placed on D1’s normal location. So one end of that resistor is wired directly to the MCU’s Vcc. The Zener is also wired directly to the MCU’s Vcc as well as GND. The cathode (striped end) goes towards Vcc, the other end goes to GND.

The Zener will self destruct without a current limiting resistor. It behaves sort of like a low-resistance short to GND. That’s why we add the resistor between Vin (BAT+) and the Zener, it prevents things from getting out of control and allows the Zener to pull Vcc down to the desired voltage.

I’d either put mine diagonally across D1 and R2 (from Vcc to GND) or horizontally from D1 across to FET pins 1-3 (GND).

Post a picture with the Zener laying in place and I’ll verify whether it’s correct.

EDIT: please try and fix the strike-through in your quote of the OP. For whatever reason it’s not working and I’d rather not have anyone get confused. Stacking on C1 is not acceptable for this driver.


Which FET Pins are 1-3? the outboard pins? or from the inner pad of D1 to the outer pad of R2?

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

wight
Offline
Last seen: 2 weeks 18 hours ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

Look at the PCB. Zoom in on OSH Park images if you need to.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 3 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

I couldn’t get a good picture of the real thing, so this will have to suffice.

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

wight
Offline
Last seen: 2 weeks 18 hours ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

Looks fine.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 3 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

Wight, any chance you could stretch this out to 20mm?

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

wight
Offline
Last seen: 2 weeks 18 hours ago
Joined: 11/27/2013 - 16:40
Posts: 4969
Location: Virginia, USA

pilotdog68 wrote:
Wight, any chance you could stretch this out to 20mm?
Yes, I will stretch this soon.

Still fine, still on a break. One day I’ll catch up with you folks! previous wight catchup Wink
list of my drivers & variants (A17DD, FET+1 stuff, WIP stuff, etc)

pilotdog68
pilotdog68's picture
Offline
Last seen: 3 weeks 3 days ago
Joined: 05/30/2013 - 23:31
Posts: 6420
Location: Held against my will in IOWA, USA

noob question: If I have no modes, only on/off, what did I do wrong? I’m assuming I have a short somewhere, but what is the most common place to look?

My Favorite Modded Lights: X6R, S8 , X2R , M6, SP03

Major Projects:  Illuminated Tailcap, TripleDown/TripleStack Driver

RMM
RMM's picture
Offline
Last seen: 1 month 1 day ago
Joined: 07/23/2013 - 13:47
Posts: 4006
Location: USA

pilotdog68 wrote:
noob question: If I have no modes, only on/off, what did I do wrong? I'm assuming I have a short somewhere, but what is the most common place to look?

LED- to ground.  Reflector is the most common, but I would also look at the connection point on the back of the FET.  

Mountain Electronics : batteries, Noctigon, and much more! What's new? 

DB Custom
DB Custom's picture
Offline
Last seen: 4 hours 45 min ago
Joined: 01/13/2013 - 22:28
Posts: 20383
Location: Heart of Texas

You can also double check that the black lead contact is clear on the star. I’ve seen that either touch the copper star or the side of the pill and give that result.

Check like Richard said that the lead on the mosfet isn’t touching the pill when it’s installed. The black lead from the driver, grounded out, bypasses the driver and goes direct drive.

nitroz
nitroz's picture
Offline
Last seen: 1 week 2 days ago
Joined: 07/11/2012 - 16:57
Posts: 204
Location: Monroe

Just ordered some of these to play! Thanks for putting this out there.

Rufusbduck
Rufusbduck's picture
Offline
Last seen: 9 months 2 days ago
Joined: 04/04/2012 - 15:34
Posts: 10389
Location: Golden state

pilotdog68 wrote:
noob question: If I have no modes, only on/off, what did I do wrong? I’m assuming I have a short somewhere, but what is the most common place to look?

If the solder on the mcpcb sticks up you can carve it off with a knife or cover it with kapton tape(RMM sells thus stuff too).

Three Tanna leaves to give him life, nine to give him movement. But what if he eats the whole bag?

Scott

Pages