#1858

  Рет қаралды 4,760

IMSAI Guy

IMSAI Guy

Күн бұрын

Пікірлер: 44
@user.A9
@user.A9 6 ай бұрын
Everyone loves chip of the day!
@ryan_nstuff
@ryan_nstuff Ай бұрын
Thank you! This is the most updated and in-depth video on working with the attiny's(that aren't the 85)
@PeetHobby
@PeetHobby 6 ай бұрын
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.
@muwatter
@muwatter 6 ай бұрын
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.
@roflchopter11
@roflchopter11 6 ай бұрын
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?
@muwatter
@muwatter 6 ай бұрын
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.
@TheElectronicDilettante
@TheElectronicDilettante 6 ай бұрын
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. 🙏🏼
@stevepence9869
@stevepence9869 6 ай бұрын
Enjoyed the tour of slac
@CasualInventor
@CasualInventor 6 ай бұрын
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! :)
@IMSAIGuy
@IMSAIGuy 6 ай бұрын
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
@CasualInventor
@CasualInventor 6 ай бұрын
@@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.
@CasualInventor
@CasualInventor 6 ай бұрын
@@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_TechLab
@MSP_TechLab 6 ай бұрын
​@@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 😅.
@AndyFletcherX31
@AndyFletcherX31 6 ай бұрын
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.
@leonerduk
@leonerduk 6 ай бұрын
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.Langstrumpf
@Pippo.Langstrumpf 6 ай бұрын
The bad thing is the reduction to 10Mhz for 3.3V.
@chrisharper2658
@chrisharper2658 6 ай бұрын
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-janrozema5396
@klaas-janrozema5396 6 ай бұрын
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.
@sdp8483
@sdp8483 6 ай бұрын
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.
@VEC7ORlt
@VEC7ORlt 6 ай бұрын
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.
@____________________________.x
@____________________________.x 6 ай бұрын
Given that reset/watchdog chips are so expensive, it would be great to replace them with one of these
@hanelyp1
@hanelyp1 6 ай бұрын
Single line programming through the nominal !reset line could be a game changer for small pin count microcontrollers.
@uwezimmermann5427
@uwezimmermann5427 6 ай бұрын
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.
@hanelyp1
@hanelyp1 6 ай бұрын
Reusing the SPI pins is possible, but a bit tricky to do right. Unless you use jumpers for those pins.
@uwezimmermann5427
@uwezimmermann5427 6 ай бұрын
@@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
@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.Langstrumpf
@Pippo.Langstrumpf 6 ай бұрын
UPDI is cool shit. I use it since one year
@jimomertz
@jimomertz 6 ай бұрын
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?
@jazzjohn2
@jazzjohn2 6 ай бұрын
Source for the cheap usb to serial board please? Thanks.
@IMSAIGuy
@IMSAIGuy 6 ай бұрын
aliexpress: FTDI FT232RL USB to TTL Serial Converter Adapter Module 5V and 3.3V For Arduino
@edgeeffect
@edgeeffect 6 ай бұрын
Under the hood... without the Arduino IDE.... I wonder if this works with AVRDude????
@ConsultingjoeOnline
@ConsultingjoeOnline 3 ай бұрын
Where did you get the breakout board? Link? Ty
@IMSAIGuy
@IMSAIGuy 3 ай бұрын
search eBay or elsewhere for 'so-16 adapter'
@noggin73
@noggin73 6 ай бұрын
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)
@NickNorton
@NickNorton 6 ай бұрын
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.
@GeorgeGraves
@GeorgeGraves 6 ай бұрын
So is that considered "high voltage" programming?
@hanelyp1
@hanelyp1 6 ай бұрын
No, programming at the normal operating voltage.
@ewavr
@ewavr 6 ай бұрын
If you change UPDI pin function by fuse to reset or gpio pin, you must use 12v programming.
@AttilaAsztalos
@AttilaAsztalos 6 ай бұрын
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.
@frankowalker4662
@frankowalker4662 6 ай бұрын
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.)
@spicemasterii6775
@spicemasterii6775 6 ай бұрын
You can buy em by the pound
@t1d100
@t1d100 6 ай бұрын
👍👍👍
@AnalogDude_
@AnalogDude_ 6 ай бұрын
pretty good specs for 0.68us$.
#1859 LM1117-3.3
10:17
IMSAI Guy
Рет қаралды 4,6 М.
MicroPython: Blinking LED
7:36
James Electronics Tutorials
Рет қаралды 86
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,7 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 106 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
#2037 RF2126 Amplifier  Fixed
9:24
IMSAI Guy
Рет қаралды 3,2 М.
UPDI - The Next Best Thing Since Bread Came Sliced
18:44
Det Builds Stuff
Рет қаралды 5 М.
A bit of Op-Amp History and Applications
34:13
Thoren Scientific
Рет қаралды 19 М.
#1855 BSS138 Logic Level Translation
12:19
IMSAI Guy
Рет қаралды 7 М.
Keyboard interface hardware
28:27
Ben Eater
Рет қаралды 329 М.
BBC Micro PiTubeDirect Raspberry Pi Coprocessor
14:11
backofficeshow
Рет қаралды 25 М.
Shrink Your Projects with ATtiny - Beyond Arduino #5
19:42
Sine Lab
Рет қаралды 7 М.
#1794 PCA9557 I2C 8-bit Extender
8:24
IMSAI Guy
Рет қаралды 4,4 М.
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
#1876 Micronta Digital DVM
8:52
IMSAI Guy
Рет қаралды 3,4 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,7 МЛН