ATtiny85 Microcontroller

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ต.ค. 2024
  • I show a quick example of the ATtiny processor comparing it to Arduino, ESP32, ESP32 and a few other controllers.

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

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

    Made my own board with an attiny1616, I am so happy that we live in an age where you can just easily design pcs and buy them.

  • @davidwensboposaric5498
    @davidwensboposaric5498 ปีที่แล้ว +3

    Tiny ship in an ocean of possibilities. Than you for the video captain.

  • @DirtBikingwithDonnie
    @DirtBikingwithDonnie ปีที่แล้ว +2

    Nice work! Your videos are helping me understand this hobby a little better.

  • @TheUnofficialMaker
    @TheUnofficialMaker ปีที่แล้ว +1

    I love to use them to make led's blink with a pb to cycle thru different timing cycles.

  • @Enigma758
    @Enigma758 ปีที่แล้ว +1

    A delay of 50ms should not vary across micro controllers even if they are running at slow CPU clock speeds. In other words, clock timers and CPU timers are independent.

    • @markgunnison
      @markgunnison  ปีที่แล้ว

      Per another comment on the video, the Arduino library assumes a different clock speed so it calculates time incorrectly.

  • @FridayHouseXYZ
    @FridayHouseXYZ ปีที่แล้ว

    One of the very first arduino devices I used was the Digispark usb board that uses the ATTINY85. Loved it!

    • @markgunnison
      @markgunnison  ปีที่แล้ว +1

      I'm not sure why I didn't try it sooner. Thanks for commenting.

  • @TonySwitzerland
    @TonySwitzerland 2 หลายเดือนก่อน +1

    I came to the same conclusion (see 5:30 ...) when I built a gadget for a friend. What do I do with all the 555 in the drawer now?

    • @britishtechguru
      @britishtechguru 22 วันที่ผ่านมา

      555s are far cheaper and take a wider voltage range.

  • @gregorymccoy6797
    @gregorymccoy6797 ปีที่แล้ว

    I prefer PlatformIO, too. The chip is interesting (we are truly living in the future) . I see it as more of a device for wrangling sensors or other input and to pass data to different parts of a larger system.

  • @edw4699
    @edw4699 ปีที่แล้ว +1

    Te attiny85 is a lovely processor, and I have used it a lot. However.....it is too expensive. One can get an arduino pro mini for just a little bit more

  • @user-sr8pn9xg8z
    @user-sr8pn9xg8z ปีที่แล้ว

    Pretty good video. You're the best. God bless.

    • @markgunnison
      @markgunnison  ปีที่แล้ว

      Thanks, I'm surprised how many views I got. I wish I had rerecorded the start of the video with better audio :-)

  • @ABaumstumpf
    @ABaumstumpf ปีที่แล้ว +4

    The delay being way longer - just did a rough counting and it seems my suspicions are correct: Each cycle of blinking takes ~800 ms - 8x slower.
    This is a common problem when using ATtiny but NOT cause of the core being slow or any other hardware-problem but rather the software: When using an ATtiny you gotta set the clocks correctly which can be done with the arduino-software ("burn bootloader" - counter-intuitively ).
    The ATtiny, if not configured otherwise, will use an internal clock-rate of 1MHz, while the Arduino-library will assume a default clock-rate of 8 MHz, messing up timings by a factor of 8.
    Arduino-IDE and the libraries behind it make it easy to use some microcontrollers but that also leads to some rather annoying behaviours like this.

    • @markgunnison
      @markgunnison  ปีที่แล้ว

      Thank you for the information. I was just assuming it was slower. What you said makes a lot of since.

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

      specs say its 20mhz? is this not correct then?

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

      ​@@slybunda "specs say its 20mhz?"
      Yes
      "is this not correct then?"
      No that is correct - the chip nominally supports 20MHz with external clocks (depending on the variant)
      But the internal clock defaults to 1MHz (and arduino assumes the 8MHz).

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

      The default factory fuse settings use a prescaler of 8. Check the datasheet for the fuse settings to remove the prescalar. You can also run with an external crystal up to 20MHz. It’s all in the fuses. You also don’t need a boot loader.

  • @SJP1504
    @SJP1504 ปีที่แล้ว +2

    Nice info! One question which i haven't found on the web, can you reprogram an attiny 85?

    • @FridayHouseXYZ
      @FridayHouseXYZ ปีที่แล้ว +1

      Yes, you can use several methods, but the most popular is to use an Arduino Uno and program it via SPI.

    • @markgunnison
      @markgunnison  ปีที่แล้ว +2

      Yes, I reprogrammed the chip in the video at least five times trying to get my timing correct. I would assume you can reprogram it thousands of times.

    • @SJP1504
      @SJP1504 ปีที่แล้ว

      @@markgunnison thanks!

  • @cosmefulanito5933
    @cosmefulanito5933 ปีที่แล้ว +3

    Microcontroller != Microprocessor.

    • @dinithaw
      @dinithaw ปีที่แล้ว +1

      true

  • @HumblyNeil
    @HumblyNeil ปีที่แล้ว

    Hi Mark, This is neat! Have you considered doing any home automation stuff with the other chips? I just ordered up a Pi Zero (which is the only thing I could find available at this time). Looking at rigging up an IR blaster to control one of the AC units in my house. 😀

    • @markgunnison
      @markgunnison  ปีที่แล้ว +2

      Aside from motion lights, I have never gotten too excited about home automation. I do plan on making a motion detector for the office so our secretary will get a tone when someone comes into the lobby of the office.

    • @HumblyNeil
      @HumblyNeil ปีที่แล้ว +1

      @@markgunnisonI can relate! It's about meeting unexpected needs. I recently came back from a vacation over Christmas to discover our house was full of mould (common thing here in Portugal). I've bought a humidity sensor as well and wish to run the dehumidifier function on the AC (ideally in all rooms if the first one proves successful) when the air humidity in the room goes above a threshold. It was truly a shock to be honest. Sadly all homes in Portugal are not designed for the rainy season.

  • @mikescudder4621
    @mikescudder4621 2 หลายเดือนก่อน +1

    Cool.... and tiny.

  • @infoimolaza
    @infoimolaza 4 วันที่ผ่านมา

    Hello, are you still watering now? I want to invite you to try our ImoLaza smart irrigation controller. You just need to provide the most realistic feedback. Are you interested?

  • @dinithaw
    @dinithaw ปีที่แล้ว

    noobs will never use STM32