ATtiny85 Microcontroller

Sdílet
Vložit
  • čas přidán 19. 01. 2023
  • I show a quick example of the ATtiny processor comparing it to Arduino, ESP32, ESP32 and a few other controllers.
  • Auta a dopravní prostředky

Komentáře • 26

  • @davidwensboposaric5498
    @davidwensboposaric5498 Před rokem +2

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

  • @DirtBikingwithDonnie
    @DirtBikingwithDonnie Před rokem +1

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

  • @FridayHouseXYZ
    @FridayHouseXYZ Před rokem

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

    • @markgunnison
      @markgunnison  Před rokem +1

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

  • @TheUnofficialMaker
    @TheUnofficialMaker Před 11 měsíci +1

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

  • @Enigma758
    @Enigma758 Před rokem +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  Před rokem

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

  • @edw4699
    @edw4699 Před 11 měsíci +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

  • @mrkentdotcom
    @mrkentdotcom Před rokem

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

    • @markgunnison
      @markgunnison  Před rokem

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

  • @gregorymccoy6797
    @gregorymccoy6797 Před rokem

    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.

  • @HumblyNeil
    @HumblyNeil Před rokem

    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  Před rokem +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 Před rokem +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.

  • @SJP1504
    @SJP1504 Před rokem +2

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

    • @FridayHouseXYZ
      @FridayHouseXYZ Před rokem +1

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

    • @markgunnison
      @markgunnison  Před rokem +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 Před rokem

      @@markgunnison thanks!

  • @cosmefulanito5933
    @cosmefulanito5933 Před rokem +2

    Microcontroller != Microprocessor.

  • @ABaumstumpf
    @ABaumstumpf Před rokem +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  Před rokem

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

    • @slybunda
      @slybunda Před 7 měsíci

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

    • @ABaumstumpf
      @ABaumstumpf Před 7 měsíci

      ​@@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 Před 4 měsíci

      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.

  • @dinithaw
    @dinithaw Před rokem

    noobs will never use STM32