Driver which turns on a new AMC7135 chip for each click of the button

Almost certainly not impossible.. But not trivial to lay out on a 17mm board...

PPtk

From playing with the programmable Asgard driver and using each 7135 at a time (total of 8, so 12.5% steps), I don't think it would be particularly useful like that. You'll need at least one and maybe two low modes that are less than a single full-on 7135, and then something like 1-2-4-8-chip modes. The jump between 75%/6 chips and 100% is barely noticeable.

What MCU are you guys planning to use? I see a 20pin SSOP mentioned but then the diagram shows an 8-pin device. The text looks like Z8F04 to me...if it is I should point out that the max input voltage is only 3.6V.

I've probably got it wrong though!

Comfychair,

Actually MCU Pin 1 on post #7 is a PWM. So you can set the lowest mode from 80uA to 350mA or in steps of 1/4196 (using 16 bit PWM). You can set 1 or two modes in less than a single full-on.

Example modes:
Moonlight = 1mA >
Low = 175mA >
Low Med = 1 AMC7135 (full ON) >
Med = 2 AMC7135 >
Med HI = 4 AMC7135 >
High = 8 AMC7135 >

You can program any mode from 80uA to #AMC7135*350mA Ex. 8*350 = 2800mA).
or if stacked to 11, 11*350mA = 3850mA. I think I like this setup versus one PWM controlling all 8 AMC7135.
:beer:

Totally agree. Great setup.

Mattaus,

The original request was to individually turn on each 7135 from BHSimon. Initially I thought about using a 20pin SSOP but it looks like it’s too big for the board

PPtk’s input is to use binary addressing of 7135s which is really a great idea! We can use then an 8-pin MCU.

The diode drops the Vcc to the MCU to 4.2 - 0.7V which is around 3.5V. Testing at MFG usually test them at higher level than 3.6V so it’s OK. I have actually tested it at VBat=4.5V using a bench PS. See my DIY project here.

Have you got a link to the MCU you plan to use? Preferably from digikey or mouser?

Z8F042A (4K) Digikey Standard Temp
Z8F042A (4K) Digikey Extended Temp
Z8F042A (4K) Mouser

The 4K version is hard to find now so I recommend the 8K version:

Z8F082A (8K) Digikey
Z8F082A (8K) Future

I’ll submit a product request to FastTech! :slight_smile: :beer:

You've linked 2 different 8K MCUs there...I'm assuming you're planning on using the 8pin version?

Yes Mattaus, 8 pin SOIC. :beer:

Learn to use AVR chips… an 8K Tiny85 is like $.65 in onesies… also a LOT more people are equipped to use them. Sure, they’re not quaint and steam driven like the Zilog chips, but they are rather nice.

Agreed.. The driver would be far more appealing to the mass-market if it were driven by an AVR... or even a PIC..

I was thinking the same thing. I started doing a PCB layout last night. I used an Attiny25 SOIC SSU as a placeholder until I figured out what chip tivo532 was actually using. Give me an hour when I get home (in 5hours Cry) and I will have it finished.

Of course if someone beats me to it then let me know so I don't waste my time!

- Matt

EDIT: Oh, and the other advantage to the AVR is that so many people around here program them using the SOIC clips that on board break out points won't be needed which will save a tonne of space on the PCB.

It was tricky enough fitting everything on a 17mm PCB (with a 1mm thick GND ring so only 15mm of usable space either side) especially when you take into account that there are 4 groups of individual signal lines to connect back to the MCU (normally only 1).

Removing the need for programming points makes it MUCH easier.

Good points/suggestions. It just that I’m familiar with the Zilog chip. With the problems I’m seeing members modifying and programming code, I find it much easier on Zilog tools. It’s a complete free windows IDE with a full blown C-compiler/debugger:

1. Edit
2. Rebuild All
3. Download Code
4. Stop and disconnect

I think for me the price is not that much compare to the other parts of the flashlight. And for the advantages to me (maybe not for the others here).
As for the test clip, I think it can be done. Except I opted not to open the driver by having the programming pins accessible on the spring side.

Maybe FastTech can offer the MCU cheaper. :beer:

AVR Studio is the free development environment for all the AVR chips. It is VERY comprehensive and people swear by it. I HATE IDE’s, though. I do all my work outside of AVR Studio except for running the STK500 programmer that I use.

I use the WINAVR compiler. It is a full blown C compiler based upon GCC. WINAVR is no longer being developed and has been superseded by another package (I forget the name).

Pyro,

The $0.65 looks good! But when I look at Digikey it shows $3.61/unit. Any link for $0.65? Thanks.

:beer:

You like WINAVR, pyro? I found the generated code to be significantly larger and slower than that generated by AVRStudio itself, and a LOT larger and slower than that generated by IAR Workstation. I swear by IAR Workstation for both AVR and STM8..

http://www.digikey.com/product-detail/en/ATTINY25-20SSN/ATTINY25-20SSN-ND/2357360

They're a few cents more if you buy just one.. And this is a link to the extended temperature part that is operational to 105C

Hmmm, looks like the price went up a little in the last few weeks… you now to buy 100 for that price (or the old price was an error). http://il.mouser.com/ProductDetail/Atmel/ATtiny85-20SU/?qs=sGAEpiMZZMtkfMPOFRTOlzm3F7l5sNgt

Thanks PPtk/Pyro!
:beer: