#1858

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025
  • Episode 1858 chip of the day
    8 bit micro with one wire programming interface
    Be a Patron: / imsaiguy

ความคิดเห็น • 41

  • @user.A9
    @user.A9 9 หลายเดือนก่อน +14

    Everyone loves chip of the day!

  • @stevepence9869
    @stevepence9869 9 หลายเดือนก่อน +5

    Enjoyed the tour of slac

  • @ryan_nstuff
    @ryan_nstuff 4 หลายเดือนก่อน

    Thank you! This is the most updated and in-depth video on working with the attiny's(that aren't the 85)

  • @PeetHobby
    @PeetHobby 9 หลายเดือนก่อน +14

    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 9 หลายเดือนก่อน +1

      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 9 หลายเดือนก่อน

      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 9 หลายเดือนก่อน +3

    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.

  • @AndyFletcherX31
    @AndyFletcherX31 9 หลายเดือนก่อน +3

    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.

  • @МаксимГрищенко-н1с
    @МаксимГрищенко-н1с 8 วันที่ผ่านมา

    Thank You!

  • @TheElectronicDilettante
    @TheElectronicDilettante 9 หลายเดือนก่อน

    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. 🙏🏼

  • @bobdoritique7347
    @bobdoritique7347 หลายเดือนก่อน

    Top! I love it.

  • @klaas-janrozema5396
    @klaas-janrozema5396 9 หลายเดือนก่อน

    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.

  • @chrisharper2658
    @chrisharper2658 9 หลายเดือนก่อน

    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.

  • @leonerduk
    @leonerduk 9 หลายเดือนก่อน

    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.

  • @sdp8483
    @sdp8483 9 หลายเดือนก่อน

    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.

  • @hanelyp1
    @hanelyp1 9 หลายเดือนก่อน

    Single line programming through the nominal !reset line could be a game changer for small pin count microcontrollers.

  • @NickNorton
    @NickNorton 8 หลายเดือนก่อน +1

    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.

  • @uwezimmermann5427
    @uwezimmermann5427 9 หลายเดือนก่อน +5

    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 9 หลายเดือนก่อน

      Reusing the SPI pins is possible, but a bit tricky to do right. Unless you use jumpers for those pins.

    • @uwezimmermann5427
      @uwezimmermann5427 9 หลายเดือนก่อน +1

      @@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.

  • @Pippo.Langstrumpf
    @Pippo.Langstrumpf 9 หลายเดือนก่อน +1

    UPDI is cool shit. I use it since one year

  • @noggin73
    @noggin73 9 หลายเดือนก่อน

    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)

  • @____________________________.x
    @____________________________.x 9 หลายเดือนก่อน +1

    Given that reset/watchdog chips are so expensive, it would be great to replace them with one of these

  • @Ticktok_of_Oz
    @Ticktok_of_Oz 4 หลายเดือนก่อน

    ugh. Easy to miss, but if you're following along, make when you pick your board you DO NOT pick the one w/optiboot.

  • @VEC7ORlt
    @VEC7ORlt 9 หลายเดือนก่อน +1

    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.

  • @jimomertz
    @jimomertz 9 หลายเดือนก่อน

    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?

  • @ConsultingjoeOnline
    @ConsultingjoeOnline 6 หลายเดือนก่อน

    Where did you get the breakout board? Link? Ty

    • @IMSAIGuy
      @IMSAIGuy  6 หลายเดือนก่อน

      search eBay or elsewhere for 'so-16 adapter'

  • @frankowalker4662
    @frankowalker4662 9 หลายเดือนก่อน +2

    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.)

  • @Pippo.Langstrumpf
    @Pippo.Langstrumpf 9 หลายเดือนก่อน +2

    The bad thing is the reduction to 10Mhz for 3.3V.

  • @edgeeffect
    @edgeeffect 9 หลายเดือนก่อน

    Under the hood... without the Arduino IDE.... I wonder if this works with AVRDude????

  • @AnalogDude_
    @AnalogDude_ 9 หลายเดือนก่อน +1

    pretty good specs for 0.68us$.

  • @jazzjohn2
    @jazzjohn2 9 หลายเดือนก่อน +1

    Source for the cheap usb to serial board please? Thanks.

    • @IMSAIGuy
      @IMSAIGuy  9 หลายเดือนก่อน +3

      aliexpress: FTDI FT232RL USB to TTL Serial Converter Adapter Module 5V and 3.3V For Arduino

  • @GeorgeGraves
    @GeorgeGraves 9 หลายเดือนก่อน

    So is that considered "high voltage" programming?

    • @hanelyp1
      @hanelyp1 9 หลายเดือนก่อน

      No, programming at the normal operating voltage.

    • @ewavr
      @ewavr 9 หลายเดือนก่อน +1

      If you change UPDI pin function by fuse to reset or gpio pin, you must use 12v programming.

  • @t1d100
    @t1d100 9 หลายเดือนก่อน

    👍👍👍

  • @AttilaAsztalos
    @AttilaAsztalos 9 หลายเดือนก่อน

    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.

  • @spicemasterii6775
    @spicemasterii6775 9 หลายเดือนก่อน

    You can buy em by the pound