Adventures in TinyAVR 1-Series

I should say that I do ship internationally, but I think the last time I sent something to your way the shipping cost was like $15 USD. If people are fine paying that, I’m ok with it. And if anyone wants to buy several (say to distribute locally), I can make you a good deal.

Yes, you can use this directly with avrdude, no other board / adapters / etc. I guess your computer might need to have the CH340 drivers installed, but I think those are included in most OS’s without any extra installations these days.




I’ve gone ahead and whipped up a V2 that includes these CC pulldown resistors. I think that should do the trick. I also removed the PRG LED (programming status) as I don’t think it works properly and I also don’t find it necessary. Note… the PWR LED must not have a 3D layout defined, I swear it’s actually there in the design.

It ain’t sexy, but I just fabbed up the CC pulldown resistors with some airwires, tombstoned resistors, and delicate soldering. The test went great and I’ve been able to flash a driver using a USB-C to USB-C cable, so I think I’ll probably move forward with this V2 design.

:+1:

Well, received that recommended USB to serial adapter from Alixpress. Windows recognized it and installed drivers automatically. AVRdude 7 with AVRDudes recognizing it as a SerialUPDI. All looks fine, but cant test it because have no MCU for now.

If you need some to build a driver, LCSC has 6000 in stock. Digikey also announces ~90 000 for October.

The new version has arrived! I’ve confirmed compatibility with USB-C to USB-C connections, including hooking it up to my phone and using the freshly updated ZFlasher AVR app. Man, that really does make flashing a breeze. PM me if you’re interested in one.

:+1:

AVR DD are available, they have a 10bit DAC and 1.024V/2.5V reference, which means a resolution of 1:2497 vs 1:1159 for the 1 series.

https://www.mouser.fr/c/?marcom=107567063

Up to 32KB in QFN-20 3x3mm
Too bad they have a different pinout :frowning:

AVR DU supposedly has USB support which could be interesting for USB flashing/configuration, though it’s not out yet.

Would supporting these need a lot of work ?

Too bad that they switched the pinouts :frowning: It’s good to have options though. I haven’t looked fully into coding these, but at least in glancing through the datasheet, I see that the AVR DD still uses UPDI and the register names look to be the same as on 1-Series. So I’m guessing that using these should be an easy change, just new circuit boards to accommodate the pinout.

USB support could be interesting. I’ll have to keep an eye out on these new AVR offerings.

AVR DD support was merged in avr-gcc some months ago. So with the latest avr-gcc it should be possible.

I was making the symbol and noticed that there 2 VDD pins, the second pin is used for PORTC pins if Multi voltage I/O is used (page 188) :

The problem is that the two VDD pins are not next to each other and that can be problematic for layouting. Or VDDIO2 can be left unconnected in dual-supply mode ( ? ) but then say goodbye to PORTC pins.

I thought adapting LIN15 would be faster but the layouting is more difficult with these.

https://oshpark.com/shared_projects/2Y84gB42

Everything is possible. If… :wink:

I had to use an ADC1 pin for the voltage divider in a driver. Do I need to replace every mentions of ADC0 by ADC1 in fsm-adc.c and is that all what is needed ?

Ugh, I did that once and never again. After looking at the code, I decided it was just easier to solder an airwire to an ADC0 pin (and eventually redesign the board). Voltage sensing and temperature sensing code are mingled together with both pulling from ADC0. To get it working, you’d need both ADC0 running (for temp regulation) and ADC1, which means you’d need to duplicate a bit of code. Maybe it’s easier than I remember, but I would be hesitant.

Oh no, I don’t really have a choice regarding the layout, or I’ll need to use a 4 layer board, not that it’s the end of the world but I would have preferred to keep it at 2 layer.

Edit : I actually managed to reroute to an ADC0 pin.

Airwire to the rescue.

1 Thank

Nice skills, there! Airwires on those tiny 3x3mm QFN chips are no easy task.

Thanks :slight_smile: Thankfully I could wire it to a side pin, in the middle that’s much harder.

Is it possible to wire RGB Aux LEDs to different ports ? Like R to a portC pin and B and G to portA pins ? On small and intricate boards it’s often difficult to wire them all to the same port.