Attiny25/45/85 FW Development Thread

Ok. i will do that. Ive not done this before, but i already know the circuit. so if i can learn how to do a basic layout, it shouldnt be too hard.
I guess ill try DipTrace then since i know it will interface with oshpark

In reference to the schematic above “[schematic]”:Attiny25/45/85 FW Development Thread - #1005 by DEL .

Comparing three options, C1 + C2, C1 only and finally C1 moved to the C2 position:

This time trace 2 is the voltage at the C1/D1 node on the schematic. Zero for all traces is again the 1st div line from the bottom. Traces 1 and 2 are scaled 1 V/division. Traces 3 and 4 are 2 V/division to fit the peaks.

R5 gives a major improvement on what we had before with all three options.

Removing C1 and changing C2 to 10 uF looks pretty good at pin8 (yellow), but keep in mind trace 2 (light blue) is what is going to R1+R2 (the ADC). We can always move R1 as well, this is what is done on the nanjg 105 drivers. But then we have to fudge a number for the D1 voltage drop in firmware.

Not recommended, C1 removed and C2 only 0.1 uF, but it gives an idea of what the MCU will put up with:

Note the peaks at pin 8 (yellow trace) is at 6.6 V. Imagine where it is at when the MCU starts to freak out. Tough little chips.

I honestly can’t recommend it enough over Eagle. After using diptrace for a few minutes I uninstalled eagle as I knew I would never ever use it.

Seeing as they are both free, you can naturally try both but I highly recommend you start with Diptrace.

I will try to snap some screen shots of my work in progress SRK driver later.

It is used by a lot of deisgn firms so it would not surprise me if your coworkers use it.

It may not be the best thing out there but it is Free and is 10x easier and more capable then eagle.

Yep, it allows you to draw out the schmatic (or download one naturally) then you can transfer it to PCB design mode, draw out the PCB size and then it will try to place the components automatically. Although with these tiny boards we use it is generally best to lay it out yourself.

It can then auto-rought the traces but once again this is generally best done yourself with these tiny boards. This is quite easy though as it knows where everything should connect and will tell you if you make a mistake.

The best part is when it comes time to change things later, you simply change a component in the Schmatic, import that change into the PCB and it takes care of the rest!

There are a few learning curves but I picked it up in under an hour. Where as with eagle I never could get it to do what I wanted, how I wanted. They also have great video walk-throughs for Diptrace.

The biggest hurdle I had was drawing the exposed copper pads to soldering springs to and the like, it is not that hard to do, just took some creative thinking to get it right.

I downloaded diptrace but the first component I needed was not in the database. With these programs, do you need to import the components you need? The component I needed was the TP4056.

You can generally find components online but there is another program that is part of the diptrace “suite” that allows you to build a new component from the data sheet easily.

Although honestly for what we do, all that really matters is that it is the right type of component so the schematic shows the right symbol (although this is not even a must as long as you are only making the layout for yourself).

The one thing that must match is the package of the component, in your case SOP-8. As long as you find a component with an SOP-8 package it will work fine. There are a few ways to search the database as well, some work better then others for finding specific parts and you can also search by package as well.

On a common package like that you can pick a random component in that package, we don’t generally care about the exacts of the components, that is more for mainstream production. As long as the package is correct and you properly connect the pins it will work.

Here is a picture of a badly laid out tripledown schematic done in diptrace as a test:

Here it is imported into the PCB design I was also using as a test, rough but you get the idea.

Ok. I may not be searching correctly as there are many components I cannot find. Such as the attiny. I’ll keep working with it some more. I really don’t know enough to be asking the appropriate questions.

Check out the video tour: Guided Tour - DipTrace

There are lots of videos on youtube as well.

For the Attiny you can find that easily. Simply click on the filter button and then select all libraries in the top menu and enter Attiny in the name search box. Should list a whole bunch of versions of the attiny.

You can narrow the search by adding more filters but to start with just search everything till you get the hang of it.

Nice via layout TA :wink:

LOL thanks, yeah I was just tossing them on at first but getting them evenly spaced was proving interesting so I figured why try? You see the results of that.

Would these changes to the Q8 e-switch driver also improve with clicky drivers?

Starting to work on a 22mm tripledown driver and since I have a bit of extra space figure I might as well toss in the new parts if they would help.

The schematic I was using is above, it is just copied from reverse-engineering PD68’s design into diptrace (obviously there are too many 7135’s to fit on the board and I am sure other mistakes since it was an early experiment but you get the idea)

Well, yes - for all 25/45/85's, might even be a benefit for 13A's. Not sure yet if DEL settled on final values of the caps and resistors though.

Only difference might be in the FET area - we are testing only with the SIR800DP, which I think all mods would equally apply to the SIR404DP (higher performance). For the other FET's, not sure, but can't hurt.

For us typical none EE's, it's hard to understand and justify at first. I've built 25 and 85 drivers where things seem to work ok, then seems like same exact build again, and it doesn't work - sometimes the resistor of FET gate to grnd fixes it, sometimes boosting C1 helps, sometimes I need to add a C2 (0.1 uF cap) to fix it. Then again, I'm not doing any of the testing DEL has done of worse case scenarios - high amps, low PWM values, etc., temperature checking of parts, plus the wear+tear part lifetime issues we can't easily test at all.

When the circuit results in spikes that are out of tolerance of part specs in the design, I guess it comes down to rolling the dice -- can you get an acceptable failure rate in mass production? WIll you get a decent life time of usage? Will you be creating a lot of unexpected heat? Will suddenly a new batch from the manufacturer be more sensitive to these out of tolerance voltage spikes than previous batches?

We run across bad drivers on occasion, and assume it's one of the parts, but could be the parts are 100% good, just that one part is more sensitive to bad spikes, or the particular traces or reflow on a board is making the bad spike even worse.

So here is what appears to be the ideal hardware setup for a tiny25 or higher clicky driver I suppose? Any comments?

https://s31.postimg.org/l33smx08r/Capture.jpg

We removed the zener from our latest layout - we (DEL ) feels confident it's not needed now. For the rest, DEL would be better than I to provide feedback. He had PD68 do some tweaks on the layout, but not sure how that looks in a schematic. For example, where traces need to be beefier and/or shorter, etc.

The zener is for running 2s or more on a clicky firmware :wink:

I will put the driver together and then see what DEL says then.

I generally don’t have an issue with needing beefier traces, I always try to cram the biggest ones I can even for things that don’t need them.

It’s a Texas thing lol.

Ohh - but the 7135's can take the 2S? Can't recall when/where/who, but thought someone said they can't take the higher voltage well. Of course you could go 2S and just not use the single and bank of 7135's in the firmware, and drive everything via PWM on the FET, but not sure if PB4 can support PWM?

They can technically take it if well heatsinked but in practice they are generally limited to around 25-30% duty IIRC I figure I can either just not use them or use them for moon modes ect.

Although the driver is mostly aimed at 1s setups. I more just want a single driver that does it all so I can order several and keep them on hand for any and all projects that may come up later.

By having a zener, 7135’s and FET I cover basically all the options and can build them to suite each case that comes up.

Yeah, PB4 can support PWM, at least it is doing so in Bistro, which is the firmware this will be running.

Anyone have experience using 0603 or 0402 components in drivers? I think I could figure out how to get it all on there with 0805 but it would not be as efficient (aka more vias and no room for a pass through).

I think you got it. No difference for clicky or eswitch, except maybe larger R1/R2 for eswitch.

Suggested part values are up in this thread somewhere: post

You can get away without either C1 or C2 if space is tight (it is amazing what we have been getting away with before). If C1 is taken out, C2 needs to be up-sized to a few uF. It is a compromise: For greater integrity of the MCU power supply, keep C2. For more accurate/easier ADC input and firmware manipulation, keep C1.

See how the CAD software shows pins 4/8 together? - That is partly to make the decoupling circuit more obvious…that is where C2 should be shown and eventually routed.
Similarly R1 should be routed directly off C1 (or C2), there are ugly things on the Cell±R5-C1-GND line. (Though you will have to run the ADC in 10-bit mode to see the difference.)

So I think these are the changes you are referring to? Far from an expert in circuit design myself, just have a reasonable understanding of how it works once together and how to actually put it together.

https://s31.postimg.org/nahnximcr/Capture.jpg

It is proving interesting trying to fit everything on the board at all, is it better to leave out C1/C2 and/or R4 and place them in the “ideal” location or to leave them in and put them wherever it will fit?

My gut says leave them in and put them wherever they can fit. Which won’t be like the schematic based on how tight things are as is.

Ohh - bout the 0603 and 0402 parts, I've used 0402's, but just one, on Richard's new MTN-17DDm driver - didn't have any problems. 0603's are not bad - still readable markings, and ok to reflow.