Thank you! This is the most updated and in-depth video on working with the attiny's(that aren't the 85)
@PeetHobby6 ай бұрын
I love those Attiny series 0 and 1. Since you will be working on an ADC project soon, you might find this information useful: The ADC of Attiny series 0 and 1 can perform hardware accumulation of 64 ADC samples per Conversion, they will get added together in 16-bit registers without using the CPU. I used that to increase the ADC resolution of the Attiny16x4 to 12 bits, along with a couple of bits of digital averaging filtering. However, you can use it in any ratio you like-whether with no filtering and full 16-bit result, which will be noisy, or a very stable 10-bit ADC with all samples used for digital filtering, and anything in between.
@muwatter6 ай бұрын
This is a very useful feature, since the first thing we usually do when using an ADC is write an ISR that accumulates individual readings into a variable, then sets a flag when the accumulation is complete.
@roflchopter116 ай бұрын
Thats really cool. Is the filtering just shifting, or can it do fancier DSP-like things to, for example, low pass filter as the accumulation happens?
@muwatter6 ай бұрын
Check out the event system that these devices (and others in the “new” attiny family) have. For example, you can set it up for low latency signaling/triggering between peripherals even when the CPU is in sleep mode. This way you can use the event system in lieu of an ISR thereby reducing power consumption and giving you a bound and very low latency.
@TheElectronicDilettante6 ай бұрын
That was the best tutorial on how to setup/ compile/ upload in the Arduino IDE. I’ve been struggling with coding since I started this adventure of learning Radio, ECE, etc. If ever you need a video topic, I vote for a 1 hour tutorial on coding and a 1 hour tutorial on the Arduino IDE, and the STM32Cube IDE. 🙏🏼
@stevepence98696 ай бұрын
Enjoyed the tour of slac
@CasualInventor6 ай бұрын
My (friendly) 2 cents worth regarding remark at 2:51 ("you had to commit 4 lines to programming those things"). Actually that's not right. ATTiny85's (and friends) absolutely CAN be programmed in-circuit without sacrificing any GPIO functionality. I've been doing it for many years. Don't forget, an MCU holds it's GPIO pins in High-Z state when the chip's in reset. Likewise, when the programming device isn't actually programming the chip it holds the programming device's connections in High-Z state so as not to interfere with your circuit in development. Love your channel, thanks for the interesting content; I hadn't known about the Tiny414 until I saw this. Cheers! :)
@IMSAIGuy6 ай бұрын
what if the tiny85 lines are inputs and being driven by the project circuit. seems like that is a no go. the project circuit will over power the programmer
@CasualInventor6 ай бұрын
@@IMSAIGuy Fair question. In such a case typically one would implement a way to gradually bring up the system in stages. Perhaps use jumpers or solder bridges to enable or disable certain parts before others. This is common in industrial situations also. But a good design wouldn't be sinking more than a couple of milliamps into a microcontroller pin anyway, so it's likely that the programmer could handle this easily.
@CasualInventor6 ай бұрын
@@IMSAIGuy ...or to put it another way, being able to easily compartmentalise different subsystems in your board can greatly aid testing and production operations.
@MSP_TechLab6 ай бұрын
@@IMSAIGuy it is not a problem in many cases, just put 1k resistor in the line as atmel's appnote suggest. Real problem is wnen you need to use it as output. In one of my projects I can now control programming progress by relay clicks 😅.
@AndyFletcherX316 ай бұрын
I've been looking at the CH32V003 which is a RISC-V chip. Small quantity prices on LCSC are coming out at under $0.20 and they will also do single pin programming.
@leonerduk6 ай бұрын
Couple of comments: 1. You're using a 4k7 resistor for doing UPDI but lately we've found that it's best to use 1k, so then it manages to talk to the AVR DA/DB parts that have slightly different characteristics on the UPDI pin. 2. There's an even newer series of chips now; the ATtiny 2-series (e.g. ATtiny824). Those are a newer version of this chip, extra peripherals (e.g. two USARTs on most chips), and a bunch of bugfixes/minor changes too. Probably want to look at those for new designs.
@Pippo.Langstrumpf6 ай бұрын
The bad thing is the reduction to 10Mhz for 3.3V.
@chrisharper26586 ай бұрын
The thing I like about the smaller ATtiny85/13 chips is that you can get them in a DIP package so buy a bunch of 8 pin dip sockets and your good to go. But I also made a dedicated programing socket using a cheap USBtinyISP just for the job. I'll have to see how AVRdude works with the one wire 414 chips.
@klaas-janrozema53966 ай бұрын
Love it. Didn't knew you could use a RS232 to USB board to program it. I bought the Atmel ICE because I didn't knew that. I have the Attiny3224. No too expensive either.
@sdp84836 ай бұрын
I really like this family of AVRs and reach for them first. It works great with Platformio so i can use VSC as my development environment.
@VEC7ORlt6 ай бұрын
These don't even use fuses - you select anything and everything on the fly. At this point I ate tens of thousands of these. UPDI is also a debugger, which is way cooler.
@____________________________.x6 ай бұрын
Given that reset/watchdog chips are so expensive, it would be great to replace them with one of these
@hanelyp16 ай бұрын
Single line programming through the nominal !reset line could be a game changer for small pin count microcontrollers.
@uwezimmermann54276 ай бұрын
2:55 That's not true, you can easily re-use the SPI pins for in-circuit programming and other purposes without compromise. I do it all the time on my projects - no problem at all. But yes, these new ATtinys are interesting small fellows.
@hanelyp16 ай бұрын
Reusing the SPI pins is possible, but a bit tricky to do right. Unless you use jumpers for those pins.
@uwezimmermann54276 ай бұрын
@@hanelyp1 you don't need jumpers, you can directly attach LEDs, transistors and other inputs to any of the SPI pins, yes, you cannot directly use these pins as inputs for external signals, but even this can often be done by just placing a significantly large resistor in series with the external signal source.
@Ticktok_of_OzАй бұрын
ugh. Easy to miss, but if you're following along, make when you pick your board you DO NOT pick the one w/optiboot.
@Pippo.Langstrumpf6 ай бұрын
UPDI is cool shit. I use it since one year
@jimomertz6 ай бұрын
I use MPLAB IDE for all my development. I see that it supports this chip. I might have to try one. Or the smaller ATTiny85. I wonder if you can use the Pickit programmer? Or do you have to use that thing you used?
@jazzjohn26 ай бұрын
Source for the cheap usb to serial board please? Thanks.
@IMSAIGuy6 ай бұрын
aliexpress: FTDI FT232RL USB to TTL Serial Converter Adapter Module 5V and 3.3V For Arduino
@edgeeffect6 ай бұрын
Under the hood... without the Arduino IDE.... I wonder if this works with AVRDude????
@ConsultingjoeOnline3 ай бұрын
Where did you get the breakout board? Link? Ty
@IMSAIGuy3 ай бұрын
search eBay or elsewhere for 'so-16 adapter'
@noggin736 ай бұрын
I really need to look into these. Have many AtTiny 13/85s etc vscode with the PlatformIO plugin is nicer IMHO (and supports the Arduino libraries)
@NickNorton6 ай бұрын
Arduino IDE 2.* is a tragedy. The built in Serial Plotter opens in a new window. Cool, as expected. The built in Serial/UART monitor only displays output in the same window as the code editor, just at the bottom. I'm sure this is totally acceptable if you code on a Macbook with one screen. If you're coding a UART user interface/multiple monitors. It's horrible.
@GeorgeGraves6 ай бұрын
So is that considered "high voltage" programming?
@hanelyp16 ай бұрын
No, programming at the normal operating voltage.
@ewavr6 ай бұрын
If you change UPDI pin function by fuse to reset or gpio pin, you must use 12v programming.
@AttilaAsztalos6 ай бұрын
For maximum hilarity you can even install a USB bootloader in these and from then on simply just connect the chip directly to any USB port to download a new program, serial adapter not needed after that.
@frankowalker46626 ай бұрын
I've used the AtTiny 85 in a few projects. I found they don't usualy last more than a year. (I might have been slightly over volting them though.)