Program the ATTINY85 with Arduino 1.8.18 (2022)

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ม.ค. 2025

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

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

    Want to thank us and show your support?
    Buy us a coffee ☕️
    buymeacoffee.com/DIYTechBros

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

    Complements! Great slow tutorial. No audio fluctuations nor annoying music. No chaos. Properly demonstrated. Chapeau. I applaud.

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

      Thank you so much :-)

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

      Great show but not working to all 😅

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

      Not work to me the drazzy

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

    Excluding the intro, how to upload the Blink sketch and outro, you explained how to get an Arduino to program a tiny85 in less than 4 minutes. Clear, concise, dead easy to follow.
    A couple of years ago, I bought a sparkfun USB programmer - it was always finicky and fragile. This way seems to be bullet-proof, so far.
    Thank you for this very clear, well-produced video.

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

    a note for any of my friends struggling out there with an incorrect board signature on uploading the sketch: use the sketch tab and select "Upload using Programmer!"

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

      does not work for me, any other suggestions? i dit it the same way as it is shown in this video

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

      Bruh thanks so much iv been looking for a solution to this for hours

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

      Thank you so much, I've been going through tutorials on TH-cam for way too long and this was all I needed to do.

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

    thank you soooooooo much I've been trying to program this attiny 85 for days and now I got it

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

    Thanks for taking the time to produce this. I'm trying to program a ATtiny45 with an UNO R3 per your procedure, and I have 2 snags. 1. For the Board, I don't see an ATtiny45 that doesn't say (Optiboot) after it. 2. For the Programmer, I don't see Arduino as ISP (ATtinyCore).

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

      I am using a Nano and have the same issues. I also get an error trying to burn the bootloader.
      Mission unsuccessful :(
      Arduino: 1.8.15 (Windows 10), Board: "ATtiny25/45/85 (No bootloader), Enabled, CPU (CPU frequency), ATtiny85, 8 MHz (internal), EEPROM retained, B.O.D. Disabled (saves power), Enabled"
      Error while burning bootloader.
      avrdude: ser_open(): can't open device "\\.\COM5": The system cannot find the file specified.

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

      Okay, I see what I did wrong and it may help you. Be sure to watch (@1:15) in the video (I missed that part). Be sure you Arduino is not connected to anything but the PC during this part. Hope this helps.

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

      I too don't see Arduino as ISP (ATtinyCore) for programmer. But I successfully programmed ATtiny85 with blink sketch.
      ATtinycore 1.5.2 //// Arduino 1.8.19 /// Windows8.1 /// Programmer - Arduino as ISP.
      You may suspect your USB cable as suggested by Dr. SpenceKonde

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

    At 6:63 - it is after the blinking of the Arduino stops that you can remove the ATTiny85 - not the LED for the blink sketch. That will blink forever.

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

      :D

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

      Hi,
      I tried to do a program to drive a servo motor using ATtiny45.
      I encounter some problem, appreciate if you are able to help me.
      Thank you.

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

    Just when I was about to learn how to program attinys! Very informative, thanks! :)

  • @SamiulIslam-hu7ut
    @SamiulIslam-hu7ut 2 ปีที่แล้ว +3

    when i uplode code show ( errpr: A programmer is required to upload ).how to solve it

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

    Very good video. Just a friendly advice: if you anounce the vide is going to have chapters or sections, it's nice to add the time-stamp of the begining of each ones for the viewers that want to skip directly to their point of interest. Very good job.

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

    Thank you for so detailed guidance for programming ATTiny85, simple and go to the point

  • @ianbirkinhead4103
    @ianbirkinhead4103 3 ปีที่แล้ว

    Thank you tried so many other videos, yours is the clearest to understand, and it worked

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

    Great tutorial! I purchased a USB AVR programmer along with these chips and never had any success getting even the bootloader burned. I have always just put my bag of ATtiny chips away and continued to use pro minis/micros for small projects, knowing that I was always wasting so many pins, as well as money and potential reductions in project size. I am so happy to finally be able to use this chips. Thank you so much for taking the time to make this video.

  • @charlesklein7232
    @charlesklein7232 4 ปีที่แล้ว

    made the sale! the difficulty with this is that in the past you had to load drivers for it from "gethup" and while im a member i still cant figure out how to do this and people who think this is public are really mistaken! i cant get it to work. are their videos that explain this yes but they show you how to load into it not read from it. but you loaded this with out it using the arduino! thank you!

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

    Great video! I went all around to try and figure this out. Your video was the best place got it to work first try.

    • @DIYTECHBROS
      @DIYTECHBROS  3 ปีที่แล้ว

      That’s great news! Thank you!

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

    Drazzy can't be access on my Arduino IDE

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

      same, its down apparently

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

      same here

  • @jromhek2070
    @jromhek2070 4 ปีที่แล้ว

    Thanks ….. after trying and failing all this afternoon …. then I found your video and the led is blinking within minutes !

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

    You are the best // Thanks a lot. Love Love Love.

  • @dineshvyas
    @dineshvyas 3 ปีที่แล้ว

    You are an extraordinary person and amazing teacher.

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

    I am going to buy a attiny85 it is a nice board

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

      It's really good! Amazingly enough, many of our projects don't require more pins.

  • @pneumantic6297
    @pneumantic6297 2 ปีที่แล้ว

    Man, would have been nice to see what those pins were that we were connecting to on the ATtiny85 and why we were doing it.

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

    This has been very helpful - there are too many obsolete tutorials out there. Is it possible to reprogram the ATTiny (especially the QFN package) once it is part of (soldered in) the final circuit?

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

      if you need to reprogram it, the circuit can prevent you from doing this.
      But, just add jumpers to the circuit and pull them off to reprogram it. It depends on what components you are using at what pins, but sometimes you also reprogram nevertheless.

  • @EpicStoryHaven-s9tsss
    @EpicStoryHaven-s9tsss 3 ปีที่แล้ว +1

    A year later BUT STILL just when i needed it thanks

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

    Greetings to you. Beautifully explained, it works great. You certainly helped a lot of people with that video.

  • @MrBobWareham
    @MrBobWareham 2 ปีที่แล้ว

    Thank you very much for this tutorial it worked first time, so I can use my Attiny85 chips that have been in my draw for some time, but I see as of 19-10-2022 the price has gone up.

  • @Zhaymoor
    @Zhaymoor 3 ปีที่แล้ว

    you have a great channel ! thank you so much . 3 great videos in a row

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

    Very clear instructions, thanks a lot

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

    Thanks for the video, I was looking for some background for the AtTiny, neccesary components, pins...

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

    Alternately, you can get a USBASP device and simply wire MISO/MOSI/RST for programming. Instead of burning the bootloader, you can use avrdude to set the "fuses" to the divider you want (that's how you get your ATMega328P at 20MHz instead of 16MHz, that's 25% increase!) and make an entry in boards.txt to create your bespoke board (basically, copy the existing entry and alter the lines as needed). The only reason to use an Arduino as a programmer is that it's breadboard friendly, which USBASP is not (at all). However, it's nuch easier to use to reprogram a chip "in place" without taking the chip out of the circuit, as long as you have put a 6-pin or a 10-pin plug near your ATTiny (10-pin is less sensitive to environment). I also use an inductor to "clean" the power, and I generally connect ARef to Vcc when using the ADC.

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

    I followed the instructions but using an Arduino Rev3 and the Arduino IDE 2.2.1. (on 1/15/2023)
    When I clicked on the upload button to upload to the ATtiny85, I encountered an error:
    "Upload error: A programmer is required to upload".
    It is an easy fix - under "Sketch" in the IDE toolbar, click on "Upload Using Programmer ctrl + shift + U" and it properly uploads the ATtiny85.
    This video was probably the easiest one I have encountered on how to program the ATtiny85.

  • @33samogo
    @33samogo ปีที่แล้ว

    5:14 "I always burn the bootloader before I upload any code" Why you need a bootloader on Attnyxx, to reset the fuses? I burn the whole day trying to upload simple blink sketch to Attiny45. Thanks to you I figured out that I have some Chinese Nano board that has no SS pin (pin 10) on SPI connector but RST, I modified the board cutting the PCB RST traces and still didn't work until I burn a bootloader. It is time to learan programing AVR without Arduno IDE :)

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

    Excellent tutorial, finally got it to work, thanks :)

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

    Nice video! The simplest one yet! Is loading the core the same as loading the boot loader?

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

      Thanks! Core is usually (and often very to broadly) referred to as everything needed to convert the script so that it will run on the Microcontroller and have access to the hardware of the chip (like pins, timers, etc.). In most cases I would thing that someone loaded in a new core (adding a new board) to eg. the Arduino IDE if they said they had loaded a core.

  • @nicoshadjisofokli1725
    @nicoshadjisofokli1725 2 ปีที่แล้ว

    Hello, could you please give instructions for how to burn bootloader?
    Many thanks

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

    Thank you very much!!! I got my blink sketch working asap, and eventually got neopixel strip working. However your instructions no longer match current ATTiny Core board settings...
    You now have to select "ATTiny85 (No Bootloader)" and select "AVR Dragon ISP mode (ATTiny Core)" as programmer in order to Burn Bootloader... Selecting "ATTiny85 (no bootloader)" & "Arduino ISP" is fine to upload sketches after that.
    Thank you again~ I hope you can upload a new video with the latest version of Arduino IDE and share this~ Subscribed!

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

      You're right the settings are different. I choose the same settings as you said and I'm still getting an error: "Error while burning bootloader.
      "
      My chip is solder on some aliexpress board (like flat usb). it might related the fact that it's fake or something ?
      I checked my connection many times. So strange. Do you have some suggestions ?... And I didn't understand if you're choosing the No bootloader option this will ensure that I don't need the Arduino again if I want to upload a new sketch ? Thanks in advance

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

      @@last1b4free Those solder-on boards are hit and miss due to being quickly manufactured by the thousands... Try the "Tiny AVR Programmer" on Amazon. It has a dip socket that you can just plug an ATTiny85 into... Super cheap; Be sure to get 2 just in case! If you have any issues you can hmu on FB Brandon Kish (FL), otherwise, good luck man!

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

      @@TrillShatner I somehow succeeded to burn it. I guess I needed to burn the ArduinioISP program to arduino first without connect the Attiny. Thanks for the info ! ! Do you know some universal programmer that will also fits for 841 ?

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

    What about ATTINY13? :) any ideas?

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

    WOW, i always use the Uno to upload code to ATtiny - had no idea it would work with Nano clone though, it's working amazing - thanks from the UK

  • @Andrew-my1cp
    @Andrew-my1cp 9 หลายเดือนก่อน

    The option for Arduino as ISP (ATTinyCore) did not appear for me. I set my programmer setting to Arduino as ISP and would get an error saying I am missing a programmer. All I had to do was instead of clicking upload, I had to click on the sketch tab and select upload using programmer. It worked perfectly after that.

  • @sankeerthanajijuk3018
    @sankeerthanajijuk3018 3 ปีที่แล้ว

    Sir ATtainy not require additional clock fruquncy

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

    I did not consider the capacitors while bootloader. I have a few that failed. ??maybe?? I can get one or two to pass? Capacitors from now on for sure. And too a Genuine Uno, just getting the bench up and ready goes smoothly running O.E. stuff. Good Video plenty of good pointers and good stuff. 3 goods.

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

    could you upload the library file somewhere and put the link here i cannot find the library as u instructed
    tnx

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

    Great video! Now in June 2024 my Arduino IDE is version 2.3.2. For the board I use the ATTiny25/45/85 in the ATTinyCore submenu. Programmer: Arduino as ISP. To avoid getting "A programmer is required..." error message I have to use Sketch -> Upload Using Programmer menu item instead of Sketch - > Upload. Then everything works for me.

  • @shripop1424
    @shripop1424 2 ปีที่แล้ว

    Nice video explaining every step.

  • @HobbyHomeWorkshop
    @HobbyHomeWorkshop 3 ปีที่แล้ว

    Obviously, I want to use more pins from the ATtiny85, maybe all of them. In this case, how the connection between these two chips will look like ?

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

    Thanks dude :) its finally working

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

    You mean, attiny85 has no USB connection? usb+ and usb- pins for whom? In them you can connect and flash the microcontroller through it

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

    Additional url not supporting in Arduino latest version 😢😢😢😢

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

    It would be helpful to share the pin functions instead of numbers so people with Arduino Uno can figure out the pinout. Also you did not select the programmer in step one. I love the rest of the steps. Very informative. Thank you for sharing and keep exploring. Command line programming next? :)

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

    thank you so much but i have question how many time i can program attiny85 for use again?

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

    Excellent tutorial, do you think it will be possible to use ESP32 instead of Arduino?

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

    Thanks, I could do the programming, but code doesnt operate for long. It works only for 10-12 s. What to do..??

  • @Nonononono_Ohno
    @Nonononono_Ohno 3 ปีที่แล้ว

    Thank you for this video, and also thanks to Spence Konde! Is the 104 ceramic capacitor still necessary between GND and VCC on the ATtiny, after it has been programmed?

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

    Do you have to program the Arduino before hooking it up with the other components as a programmer?

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

    i don't find the arduino as ISP(AttinyCore) Programmer

  • @jeffzin5779
    @jeffzin5779 2 ปีที่แล้ว

    How come when I try to upload the Parola_Scrolling sketch to DigiSpark I get this?
    Error compiling for board Digispark (Default - 16.5mhz).
    It works fine with the Nano.
    Yes, all the drivers are installed for the DigiSpark and the Blink Sketch works.
    Please help!

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

    I would need your help. I have an Atmega 1284 microprocessor. I don't know how to flash the bootlander and how to program the project with Arduino. please help. Thank you in advance.

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

    Well is capacitor necessary? And can I use something else like resistor or something?

  • @jamiepipe1635
    @jamiepipe1635 4 ปีที่แล้ว

    Love your vids. Very helpful. Could you please increase text size when showing arduino code as I struggle to read. Thankyou

  • @murraymadness4674
    @murraymadness4674 2 ปีที่แล้ว

    I have ide 1.8.12 and there is no Arduino ISP (attiny) to select for the ISP.
    I see in the comment to use Dragon ISP, but I get a
    avrdude: usbdev_open(): did not find any USB device "usb" (0x03eb:0x2107)
    when trying to burn the bootloader. Checked all my connections from attiny85 to arduino, they are good. The usb cable works fine programming the nano itself. These things are GREAT when they just work. When they don't?

  • @yr4865
    @yr4865 2 ปีที่แล้ว

    Excellent presentation

  • @HappyHermitt
    @HappyHermitt 2 ปีที่แล้ว

    I cannot get mine working at all.
    I.have a Tiny usb and 2 Unos.
    What am I doing wrong?

  • @martinwhitehurst9893
    @martinwhitehurst9893 3 ปีที่แล้ว

    Hi, when I go to preferences on my Arduino UNO I don't get the option to put in the URL for the ATTiny. I get a box that says proxy settings..... can you help?

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

    the link to the source has certification problems, so it doesn't work

  • @alfiolocatelli5093
    @alfiolocatelli5093 4 ปีที่แล้ว

    Same process, Arduino 1.8.13, i would like to burn the booloader in an other way at the moment, a lot funnier.
    Nice video, very clear btw
    avrdude: Yikes! Invalid device signature.
    Double check connections and try again, or use -F to override
    this check.

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

    When I will give the attiny85 another program some weeks later, do I have to do this all over again? Or is it just arduino as ISP?

  • @jhondeleon63
    @jhondeleon63 3 ปีที่แล้ว

    good day sir , i have a ATtiny85 chips already programmed and used in a small board with relay. this board is used in motorcycle with two additional low/high LED lights left and right of the bike.
    The board has two terminal connection for passing light switch. when the passing switch was press the two led blinks low and high continuously and can adjust the rate with a potentiometer. my query is can i copy the program of attiny85 chip installed on the board and re program to anew IC attny85? or there another way to copy the program using any programmer. thanks

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

    thanks this was very useful

  • @BryanWhite77
    @BryanWhite77 4 ปีที่แล้ว

    I was looking into using an attiny85 for a battery powered application, but I use the nrf24l01 wireless adapters and it's a bit of a challenge to get it to work with the tiny85 since you run out of pins. I figure with a 433 MHz transmitter it would be possible.

    • @DIYTECHBROS
      @DIYTECHBROS  4 ปีที่แล้ว

      Hi Bryan! Have a look at the HC-12. Long range, no libraries and simple hook up!

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

    Very informative. Ty!

    • @DIYTECHBROS
      @DIYTECHBROS  4 ปีที่แล้ว

      Thanks for watching :-)

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

    Hi. I use Arduino Uno as an ISP programmer. I followed all the instructions on the video. Everything seems to be right when I programmed Attiny85.
    I uploaded code where I assigned all the IO Pins as OUTPUT ( pin 2,3,5,6,7 ) and set them to HIGH. when I read those pin voltage by a voltmeter, pin 2, 6, and 7 are 5.03 Volt ( correct value) while pin 3 and 5 are 0.15 Volt. What is wrong ?

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

      Are you using the physical pin numbers? You have to use the Arduino pin numbers in your sketches. Google ATTINY85 pinout. Without other configurations, you can only use pin 0, 1, 2, 3 and 4 (5 pins in total). Note that these are the Arduino Pin labeling. Hope it helps :-)

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

      Thank you very much. I'm a totally newbie. Now I can play with Attiny85.

  • @marwahmtp6995
    @marwahmtp6995 2 ปีที่แล้ว

    Hey, my LED is full ON it isnt blinking with ATtiny, does anybody knows the reason behind

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

    I wish you a good day. Fantastically explained, you can't spoil it. Keep up the good work. I would like to ask if it can also be installed in Attína 3226, 1616.? Is it possible in the same way? Thank you in advance for your advice.

  • @DS_Production1
    @DS_Production1 2 ปีที่แล้ว

    Can I use another ic?

  • @ថាន្នីសុគុណ
    @ថាន្នីសុគុណ 4 หลายเดือนก่อน

    the best explain ever

  • @GreyDeathVaccine
    @GreyDeathVaccine 4 ปีที่แล้ว

    Can I use as a programmer my Pro Micro (ATmega32U4 5V/16MHz) clone? It comes with Arduino Leonardo bootloader.

  • @artandata
    @artandata 3 ปีที่แล้ว

    thank you! it's an excellent explaination.

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

    wooow, that's gonna be useful, thanks!

    • @DIYTECHBROS
      @DIYTECHBROS  4 ปีที่แล้ว

      Glad you think so :-)

  • @greyhnd001
    @greyhnd001 2 ปีที่แล้ว

    Which side is the top? I see a half corclebdiffet on one side

    • @DIYTECHBROS
      @DIYTECHBROS  2 ปีที่แล้ว

      There should be a dot. The dot is located on the upper left corner, meaning the top pin there is pin 0.

  • @frankl1955
    @frankl1955 4 ปีที่แล้ว

    Am I too old for this crap?. At 65 and a long history of cancer I have to ask myself, do I really have a whole day trying to get this to work? I started out in TV repair when they still had tubes so I’m a newbie when it comes to Arduinos, but they are just too cool. On a high note I did get it to work. I watched your video so many times today I feel I know you. Thanks, for the great video.

  • @peterarmitage5357
    @peterarmitage5357 4 ปีที่แล้ว

    Very good video, and explained very well, many thanks, I did successfully up load sketch to attiny85, how can I load a hex file to the attiny85???... using arduino, help would be appreciated.

    • @DIYTECHBROS
      @DIYTECHBROS  4 ปีที่แล้ว

      Hi Peter! It depends. What is the HEX-file for? Is it for use within a sketch or is it to replace the arduino code?

  • @WistrelChianti
    @WistrelChianti 4 ปีที่แล้ว

    Got it working! ^_^Y. In my case I used a different ATtinyCore so had to choose, Board: "ATtiny25/45/85 (No Bootloader)". I didn't have any caps, so used an Arduino Micro as you don't need the reset cap for those. Key difference (aside from wiring) is I had to choose the Programmer: "Arduino as ISP (ATmega32U4, ATTinyCore)". You fail bootloader if you use the other one - this is down my using a Micro though, rather than the Nano demo'd in this video - they use different Atmel chips).

  • @WistrelChianti
    @WistrelChianti 4 ปีที่แล้ว

    Thanks, this looks very useful. Picked up some yesterday so will have to try out, discovered an issue with my IDE installation for now though so will have to fix first (boards manager borked - think I need to do an IDE update [main arduino json address is AFK] which I've been putting off haha).
    I noticed there is another listed option for ATtiny support on the arduino github that says it has software serial and i2c support, does the one you list here have that?. Did you try the other one and decide this one is the best? (just interested as would save me a job if you did!)
    Also wondered about the potential impact on the IC of running the LED for half a second without current limiting? I didn't check the current rating on the pins but I'm guessing it isn't that high?
    Do you know what some of those options meant? Some were self explanatory (like enabling use of milis() or not to save space but some I wasn't sure of. Am I right in thinking the bootloader only needs to be flashed if you have a setting to change? Like if I did 1MHz but then wanted to change to 8MHz? (sorry - so many questions!)
    Finally, I think I saw in the datasheet that there was quite a range of voltages that could be used with the attiny85, so think you could run it "in situe" a bit lower than 5v. Worth checking.

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

      I have tried 3 Volt, and it works ( ATTiny 85 with 8 MHz ).

    • @WistrelChianti
      @WistrelChianti 2 ปีที่แล้ว

      @@swyntopia yeh I've done 3v too

  • @michael__5647
    @michael__5647 3 ปีที่แล้ว

    hey, i only have 10uF capacitors laying arround, is it bad if i just use a 10uf instead of the 0.1uf?
    And what kind of wire are you using for the breadboard?

    • @DIYTECHBROS
      @DIYTECHBROS  3 ปีที่แล้ว

      A 10uf will probably work! I'm using these wires: www.banggood.com/0_55mm-Circuit-Board-Single-Core-Tinned-Copper-Wire-Wrap-Electronic-Wire-Dupont-Cable-Jumper-Cable-p-1121767.html?rmmds=detail-left-hotproducts&cur_warehouse=CN&ID=228
      They also come in a kit:
      www.banggood.com/Geekcreit-140pcs-U-Shape-Solderless-Breadboard-Jumper-Cable-Dupont-Wire-For-Shield-p-78680.html?gmcCountry=NO¤cy=NOK&cur_warehouse=CN&createTmp=1&ad_id=337428064977&gclid=Cj0KCQjw0caCBhCIARIsAGAfuMyjejda0PSi7Yap8-oj6BIV1iN-1-uFYNHqKE--HpdbYznPKH8JpXEaAgA4EALw_wcB

  • @sudharshanm.n3525
    @sudharshanm.n3525 4 ปีที่แล้ว

    Thank you man You genius

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

    🎉thx from german

  • @dmitrygross3715
    @dmitrygross3715 4 ปีที่แล้ว

    Hello! Das it really work by 8MHz? There are a lot of instructions with exclusively 1MHz clock frequency.

    • @Ed19601
      @Ed19601 4 ปีที่แล้ว

      Yes works. 'Burning the bootloader' in fact sets the fuses that define the frequency the attiny is using. I have slways used 8MHz

  • @mamidivasudev5988
    @mamidivasudev5988 4 ปีที่แล้ว

    Capacitor value 10uf volts ???

    • @Ed19601
      @Ed19601 4 ปีที่แล้ว

      Anything over 5 volts. But you may want to pick some margin. 10v, 15 v, 25, 100v, 250v. All will do

  • @danielmonostori3480
    @danielmonostori3480 2 ปีที่แล้ว

    Can I program it with a raspberry pi pico?

    • @DIYTECHBROS
      @DIYTECHBROS  2 ปีที่แล้ว

      There might be options to do so, but not with this set up, sorry!

  • @hakimtsv8957
    @hakimtsv8957 4 ปีที่แล้ว

    Hello I'm having a trouble in burning the bootloader and /or uploading the code it keeps saying yikes! invalid device signature i hope you can help me I'm in a hurry and i can't find any solution

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

      Hi! Start by using a different USB cable :-) if that does not help, reconnect all wires.

    • @hakimtsv8957
      @hakimtsv8957 4 ปีที่แล้ว

      @@DIYTECHBROS i did both actually 😅 I've been doing this for a week by now

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

      How many different cables have you tried? I have at least 3 USB cables that don't work. So the USB cable problem can be a big one. Trust me, when trying the 4th cable I did not have much faith, but it fixed it!

    • @hakimtsv8957
      @hakimtsv8957 4 ปีที่แล้ว

      @@DIYTECHBROS can it work on the Arduino without a problem but not as a programmer?

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

      Yes!! That1s whats soooo annoying. You can program, read serial and so no - but still a lot of cables can't be used when running the Arduino as a programmer!!

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

    nice explanation

  • @WistrelChianti
    @WistrelChianti 4 ปีที่แล้ว

    I was interested in exactly what was being connected here so adding this in case others are:
    Arduino - ATTINY85
    5V 5V - PIN 8 VCC
    GND GND - PIN 4 GND
    (code) D10 - PIN 1 RESET
    MOSI D11 - PIN 5 MOSI
    MISO D12 - PIN 6 MISO
    SCK D13 - PIN 7 SCK

    • @WistrelChianti
      @WistrelChianti 4 ปีที่แล้ว

      Most of these are also available on the ICSP pins on the arduino uno so presuming they could be used too

  • @mr.x4477
    @mr.x4477 4 ปีที่แล้ว

    Hello sir i did exacly what you showed but i get this :
    avrdude: verification error, first mismatch at byte 0x0000
    0x00 != 0x1d
    avrdude: verification error; content mismatch

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

      Hi!
      Whenever you have encounter a problem programming in Arduino please go to Preferences and turn on "Show verbose output during" for uploading.
      Then you will have more information to work with in terms of debugging!

    • @mr.x4477
      @mr.x4477 4 ปีที่แล้ว

      @@DIYTECHBROS Thank you sir for reacting so fast ... respect !

  • @justinjones8744
    @justinjones8744 2 ปีที่แล้ว

    pulling what little hair i have left out...grrr cant seem to program my tiny85 now seems my uno wont load isp nor will a nano lol error avr-gcc: error: unrecognized command line option '-assembler-with-cpp'
    exit status 1
    Error compiling for board Arduino Uno. can anyone shed any light on this thanks

    • @DIYTECHBROS
      @DIYTECHBROS  2 ปีที่แล้ว

      Restart the computer and use a different USB wire and USB port.

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

      @@DIYTECHBROS thanks i thought about wire but have reinstalled the new aduino ide and it gave me some results just got to hook up the 85 now lol think im going in the right direction cheers

    • @DIYTECHBROS
      @DIYTECHBROS  2 ปีที่แล้ว

      Great!

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

    Thank you!

  • @EasyOne
    @EasyOne 4 ปีที่แล้ว

    Attiny13 Bootloader

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

      Attiny13 core from MCUdude/microcore at github

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

      @@Ed19601 thanks

    • @Ed19601
      @Ed19601 3 ปีที่แล้ว

      @@EasyOne my pleasure

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

    Another tutorial and nothing. I've tried many tutorials with many attiny chips and pre soldered boards. Nothing happened. Not working at all. 😭

  • @carlosmagnoguerra
    @carlosmagnoguerra 3 ปีที่แล้ว

    Muito obrigado por ensinar. Parabéns pelo canal.

  • @YigalBZ
    @YigalBZ 3 ปีที่แล้ว

    Thanks for a clear, easy to understand guide. It is working! Your investment is highly appreciated,

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

    Wow, so many steps,
    Pretty sure my Gran won't be able to do this.

  • @Miqa-f7o
    @Miqa-f7o 10 หลายเดือนก่อน

    1:30