Electronic Basics #3: Programming an Attiny+Homemade Arduino Shield

Ғылым және технология

Twitter: / greatscottlab
Facebook: / greatscottlab
Attiny Library: github.com/damellis/attiny/ar...
Previous video: • Electronic Basics #2: ...
If you are using only a couple of pins of the arduino for your current project, you might be able to shrink the IC. I am going to show you an easy way to use an Attiny instead of an Atmega328.
Music:
Killing Time, Kevin MacLeod (incompetech.com)

Пікірлер: 400

  • @nextstorming3908
    @nextstorming39087 жыл бұрын

    I'm hooked on your electronics basics videos because they're so high quality

  • @rharrington8669

    @rharrington8669

    5 жыл бұрын

    me too

  • @djtoddles8750

    @djtoddles8750

    5 жыл бұрын

    Agreed. His name is Scott and he is great, so the channel is aptly named

  • @WarriorRev6300

    @WarriorRev6300

    2 жыл бұрын

    So now I'm watching them

  • @BrockAngelo
    @BrockAngelo8 жыл бұрын

    Just finished assembling my ATTiny programming shield. This works really well. Thanks!

  • @greatscottlab

    @greatscottlab

    8 жыл бұрын

    +Brock Angelo Awesome

  • @robinsharpe-yablonka6419

    @robinsharpe-yablonka6419

    2 жыл бұрын

    Just like a EEPROM programmer I made a attitny and at mega programmer thanks for the help!

  • @rahul81299
    @rahul812997 жыл бұрын

    Your channel is the best channel anyone could find for DIY projects......Thank you from bottom of my heart :)

  • @refusalpoi
    @refusalpoi7 жыл бұрын

    Your video quality has improved now I'm looking back upon your older videos. Keep up the good work!

  • @tuhitatutorial
    @tuhitatutorial4 жыл бұрын

    Thank you, based on your video now I can use USBASP and USBTinyISP also for programming my Tiny84, Tiny85, and Tiny13

  • @vpertys
    @vpertys5 жыл бұрын

    0:53 "Trust me, i'm an engineer"

  • @Elec-DIY
    @Elec-DIY10 жыл бұрын

    You have some great videos, keep that good work up!

  • @weitingLin66
    @weitingLin665 жыл бұрын

    Really high quality sharing, clarify lots concepts for me,tks

  • @etiennegagnon5479
    @etiennegagnon54797 жыл бұрын

    +GreatScott! Why don't you burn the boot loader to the atttiny to run it at 8mhz instead of 1mhz?

  • @MaciekStaniec
    @MaciekStaniec8 жыл бұрын

    It worked after a year of fails. Thank you very much. ;)

  • @eidolon0
    @eidolon08 жыл бұрын

    Great tutorial! Finally made my ATTiny85 work, but this video is a bit outdated. For anyone struggling, check out the latest High-Low Tech tutorial, the latest version of arduino (1.6.7 at this time) works fine for programming.

  • @Brianvanvlymen

    @Brianvanvlymen

    7 жыл бұрын

    thanks for updated :)

  • @thedankoona_5854

    @thedankoona_5854

    7 жыл бұрын

    thanks!

  • @nachtfrosts

    @nachtfrosts

    6 жыл бұрын

    That was quite a search until I found what you're talking about. :-D For everyone who's looking for a youtube channel called High-Low Tech, like I was, I think Danijel Milosevic was talking about this: highlowtech.org/?p=1695

  • @habibjinadu9188

    @habibjinadu9188

    4 жыл бұрын

    @@nachtfrosts Thank you!

  • @Irish_home_worx
    @Irish_home_worx7 жыл бұрын

    Thanks Great scott great tutorial. when i adjust the delay on/off time in the sketch it does not effect the attity code. Any solutions?

  • @messcommand7819
    @messcommand78197 жыл бұрын

    Love this one .... GreatScott!

  • @nickzhang9750
    @nickzhang97505 жыл бұрын

    Greetings! I like your videos. Recently I am doing an R/C project which involves using pulseIn on pin 3,4 to read receiver signals and use pin 0,1 for out put. However, it seems running very slow. Have you ever come across something like this?

  • @kennyfication88
    @kennyfication8810 жыл бұрын

    Genial, wie immer! Super gemacht!

  • @norm1124
    @norm11243 жыл бұрын

    Adding the status LEDs 7/8/9 from the Sketch is easy and helpful!

  • @Saiya6CIT
    @Saiya6CIT6 жыл бұрын

    hallo ich bin aus mexiko I love your videos, please never stop making them.

  • @Tech_-ez7us
    @Tech_-ez7us9 жыл бұрын

    I'm interested in home automation and off grid projects. I enjoy your videos and see a lot of potential. Perhaps you could show some power generation from Peltier...

  • @greatscottlab

    @greatscottlab

    9 жыл бұрын

    Farm Tech Maybe in the future.

  • @gio90s74
    @gio90s748 жыл бұрын

    GreatScott! I've made it! It works! Thank you. But now I have an answer...can programm also the attiny pins i've used to upload the code as output (pins 0, 1 and 2)? Or it makes troubles with the arduino? Hope i was clear...

  • @revimfadli4666
    @revimfadli46667 жыл бұрын

    "Yo dawg, I heard you like programming, so I program an ATTiny with an Arduino, which itself already had a programmer within, so you can program while you program"

  • @santiagolozanothuillier8477
    @santiagolozanothuillier84774 жыл бұрын

    Nice tutorial. Thanks for sharing.

  • @KAFA2020
    @KAFA20207 жыл бұрын

    I'm very happy for the video. Now I'm working with a arduino project where needed 3 I/O pin and 1 is digital pin-2 for interrupt. Could I use the tinny arduino for the interrupt functionality?

  • @ciklois
    @ciklois5 жыл бұрын

    Hi GreatScott, what are you using for connecting pins on your prefboard, for example at 4:41 , and where do you buy them? Thanks

  • @hielkebaron7007
    @hielkebaron70077 жыл бұрын

    Hee scott! Are there more ic's that you van program with an arduino??

  • @asmodeus7781
    @asmodeus77815 жыл бұрын

    What kind of wires is he using on top of the Strip board for routing? Looks more substantial than remnants of component leads. Also looks a lot neater than if I were to strip my solid core to just the bare wire

  • @Afif87123
    @Afif871233 жыл бұрын

    Ahh, memories

  • @Jajaho2
    @Jajaho27 жыл бұрын

    Hey Scott, I think you mixed up the ground and the reset pin when you showed the attiny on the breadboard (alone). Please correct me if I m wrong.

  • @anthonyperks2201
    @anthonyperks22018 жыл бұрын

    That video is fantastic.

  • @Fluburtur
    @Fluburtur8 жыл бұрын

    What kind of stripboard do you use? When I search for some on amazon I only find cheap ones that are rated pretty bad or expensive one with bunch of stuff on them, I only need a quare with holes an copper since im gonna cut it anyway

  • @kayrunjaavice1421

    @kayrunjaavice1421

    5 жыл бұрын

    I would just buy the cheap stuff. What could possibly be bad with a piece of copper and silicone?

  • @RahulSingh-my7vx
    @RahulSingh-my7vx5 жыл бұрын

    sir when i program attiny85 it showing yenkie invalid device. check your connection double. please help me about this

  • @WhiskyPankcake
    @WhiskyPankcake9 жыл бұрын

    What is the capacitor between reset and ground for?

  • @peeenoytv1149

    @peeenoytv1149

    4 жыл бұрын

    The time constant of the capacitor will help programming the uC

  • @ddee2501

    @ddee2501

    4 жыл бұрын

    It is there to stop the Arduino re programming itself !

  • @NMexis
    @NMexis7 жыл бұрын

    is there anything you have to do differently if you want to program it with an arduino mega 2560?

  • @anujamerwade3179
    @anujamerwade31797 жыл бұрын

    Will you please help me regarding where can I download your multiplex arduino code from?

  • @guillaume8437
    @guillaume84373 жыл бұрын

    Hi! Could you please tell where you got this RGB LED ribbon thing?

  • @startobytes
    @startobytes4 жыл бұрын

    Hi, could you make a Video about how to use the Attiny10 with Arduino IDE and Arduino Uno?!

  • @melplishka5978
    @melplishka59783 жыл бұрын

    Awsome vid Scott ty.

  • @trashos817
    @trashos8173 жыл бұрын

    hello yesterday i bought an at tiny 85 and before 5 minutes it worked fine but the last time i plugged it in i put reverse voltage by mistake and now it doesnt run did i burn it?

  • @Ahmed.Al-Hloul97
    @Ahmed.Al-Hloul979 жыл бұрын

    Mr GreatScott! Why should I put a 10 microFarad capacitor between the reset pin and the ground pin? And if I didn't use the capacitor , what would happen ? And is it necessary that the capacitor's value is 10 microFarad ?

  • @JimisekMichalas

    @JimisekMichalas

    9 жыл бұрын

    ahmed alhloul you put it there so arduino wont reset :) at least its how I understood that.

  • @Loundre3

    @Loundre3

    6 жыл бұрын

    To filter out high frequency noise, so the Arduino doesn't reset randomly.

  • @hongbohe4454

    @hongbohe4454

    5 жыл бұрын

    In my opinion, Arduino IDE will send reset signal once you hit "Upload" button, despite the Uno on the other side of USB cable is running "Arduino ISP" sketch and actually not the target you want to upload your program into. Your Uno will be reset and broke the uploading operation. By hooking reset-pin of Uno with capacitor your Uno will continue working and "Arduino ISP" sketch will handle your program to ATtiny. If you Upload with "Uploading using programmer"(option-click Upload button or alt-click for a PC) sometimes you won't need a capacitor. It will treat your Uno as an ISP and tries to reset the target chip instead of Uno itself. But in recent versions(1.8.7) broke this feature and Uno will still be reset. It is because a protocol change and Uno will still treat this signal as reset. see this for detail github.com/arduino/Arduino/issues/8293

  • @kaylanipimp1
    @kaylanipimp17 жыл бұрын

    In order for using the Arduino the old way after using it for programming the Attiny should I just go on Tools/Programmer and select ArduinoISP instead of Arduino as ISP or do I need to burn the Bootloader again?

  • @matthijsjanse3275
    @matthijsjanse32756 жыл бұрын

    Can you look at the miconucleus stuff wich allows a attiny 85 to use usb

  • @shabukajla3876
    @shabukajla38766 жыл бұрын

    Is there any problem in using arduino ISP when I am not coding some other microcontrollers but sticks to use the inbuilt 328 p

  • @prithvi0parimal
    @prithvi0parimal9 жыл бұрын

    why did u use a capacitor? and can i use the TX and RX with this method?

  • @RandomMusingsOfLowMelanin
    @RandomMusingsOfLowMelanin7 жыл бұрын

    I saw the pinout of ATTiny an dit does have SPI pins. How should I use them?

  • @Flankour
    @Flankour8 жыл бұрын

    Hallo, deine Videos und das was du machst finde ich echt Klasse. Weiß du zufälligerweise welchen Beruf man da am besten erlernt um das "ganze" mit den Transistoren, Programmierbare chips usw zu erlernen? Mich fasziniert das gerade echt, was alles möglich ist. P.S fange in 2 Monaten meine Ausbildung als Fachinformatiker in der Richtung Systemintegration an. Ich weiß, man kann sich vieles selbst beibringen, aber in einer Ausbildung oder so geht man natürlich noch viel mehr ins Deteil.

  • @alincristea2419
    @alincristea24197 жыл бұрын

    what kind of wire do you use on pcb? I don't think is copper. What type of alloy is?

  • @NorthernEclips3
    @NorthernEclips36 жыл бұрын

    Can I get an amazon link to the bridge wire you use?

  • @ralphchen1125
    @ralphchen11254 жыл бұрын

    can you provide the link about the perfboard you used?

  • @JFrap
    @JFrap9 жыл бұрын

    0:32 I think that the arduino ur holding is a counterfit. The deep blue pcb, the wierd usb and resistor next to it is a good sighn.

  • @djstress260
    @djstress2607 жыл бұрын

    really tnx for this video ... really help me

  • @martinwhitehurst9893
    @martinwhitehurst98937 жыл бұрын

    i have 1.6.2 Arduino, will this work or do i need to download the 1.0.5?

  • @ramykotb9883
    @ramykotb98836 жыл бұрын

    I get an error "Serial wasn't declared in this scope" whenever i try to upload the ISP.

  • @ahmedboudi1808
    @ahmedboudi18084 жыл бұрын

    Thank you...Good Explain ....pofessional vedio!!!!

  • @lennybruder2153
    @lennybruder21536 жыл бұрын

    Hey, I bought 50 Attiny 13a to build some small things. But I can't find a esay Tutorial to Programm the Chip. Better said I can't programm the Chip, nothing work by me;(

  • @tuhitatutorial

    @tuhitatutorial

    4 жыл бұрын

    Maybe too late, but I did it

  • @lennybruder2153

    @lennybruder2153

    4 жыл бұрын

    @@tuhitatutorial i also found a way

  • @100roberthenry
    @100roberthenry5 жыл бұрын

    i'm not getting the option to see the attiny in my board manager?........when i put the extracted attiny folder into the hardware folder where the avr folder is also , it stops the arduino programme starting?.....help. thanks .

  • @althuelectronics5158
    @althuelectronics51585 жыл бұрын

    Your all video sooper happy to watching this video

  • @avisoomirtee6882
    @avisoomirtee68828 жыл бұрын

    hey... i`ve been able to program the ATtiny but i want to use the RF links with two ATtiny85 and am not being able to do it. Can you make a video it plz...!

  • @matetsertsvadze5746
    @matetsertsvadze57468 жыл бұрын

    can you program any atmel microcontroller from arduino. And make small video about it. great video thanks

  • @makmoeen
    @makmoeen7 жыл бұрын

    if I won't to open or close the machine which prog I have to used and how??

  • @lfrdo7815
    @lfrdo78158 жыл бұрын

    hi im not able to program attiny 85 20 mhz i tried every way , and it still said that is not in sync , im using arduino uno atmega 328pu , waht version of ide is better ?

  • @Rafrial
    @Rafrial3 жыл бұрын

    Thanks, it works. But how to RESET the program in ATTiny to the default?

  • @umargul5644
    @umargul56442 жыл бұрын

    Well done sir

  • @chago868
    @chago8688 жыл бұрын

    How do you vary the Frequency in the ATTiny Code?

  • @shlomohassid5888
    @shlomohassid58883 жыл бұрын

    I love those tiny micros - Built a custom UNO shield just for this that supports all tiny micros with some dedicated test sockets too. you can find it on tindie - Just type 'All ATtiny Arduino programmer shield'

  • @girideshkumar4
    @girideshkumar43 жыл бұрын

    I want to know what is the use of uploading isp code and what it is .

  • @imraanmitha3280
    @imraanmitha32805 жыл бұрын

    Can someone explain why we have to have the capacitor between arduino reset and gnd?

  • @nebrasjunaid7073
    @nebrasjunaid70737 жыл бұрын

    is it possible to use esp8266 instead of arduino ono???? and how is the connection will be??? could you help me please!!!!!

  • @britishtechguru
    @britishtechguruКүн бұрын

    I'm getting into the ATTiny85 myself. I bought a programmer for it but it didn't work. I'm not sure which way around the capacitor should go on the Uno.

  • @ronto55
    @ronto555 жыл бұрын

    Where did you plug the condensator?

  • @djtoddles8750
    @djtoddles87505 жыл бұрын

    0:51 That does seem legit, in fact there's enough room to fit 2 or 3 more of them, should I try that?

  • @tom20001229
    @tom200012298 жыл бұрын

    umm... can i use another 10uF capacitor instead of electrolytic capacitor?

  • @RAPXZibit
    @RAPXZibit8 жыл бұрын

    Can you provide a library for a attiny SPI?

  • @Javier_Corado
    @Javier_Corado5 жыл бұрын

    Why when programming the ATMega328 via ISP nobody use a capacitor between reset and ground, but when programming the ATtinny85 everyone put a 10uF capacitor?

  • @edsonsilva7912
    @edsonsilva79128 жыл бұрын

    Very nice idea!!!

  • @vishnu7794
    @vishnu77949 жыл бұрын

    Great video

  • @girishchandra6722
    @girishchandra67223 жыл бұрын

    Is it possible to program attiny 85 with arduino lenaordo?

  • @S-Tach
    @S-Tach5 жыл бұрын

    It was very nice video. ..please make veriable timer relay trigger with potentiometer to adjust time delay using attiny mcu.

  • @micromachine9975
    @micromachine99755 жыл бұрын

    Hello Could you make a video or some instructions for make a proyect with attiny85 and Bluethoot? Thank you. Congratulation for the channel

  • @denizpnarl3059
    @denizpnarl30596 жыл бұрын

    Does this method also takes care of bootloader or we need to buy AT-tiny 85 with bootloader already burned?

  • @diyelectronics5537

    @diyelectronics5537

    6 жыл бұрын

    You have to burn the bootloader before uploading the code. Anyway burning the bootloader can be done with this shield

  • @mathieub3953
    @mathieub39538 жыл бұрын

    Is it an issue if I use 47uF instead of 10uF between reset and gnd of the arduino? I have an Arduino Mega 2560.

  • @greatscottlab

    @greatscottlab

    8 жыл бұрын

    +Mathieu Bacquet Should work.

  • @the9tailsupersaiyan
    @the9tailsupersaiyan5 жыл бұрын

    How could one do this with an Arduino mega?

  • @subscribetopewdiepie5259
    @subscribetopewdiepie52594 жыл бұрын

    So why should we put a capacitor between the reset pin and ground ?

  • @dominadorfuerte1600
    @dominadorfuerte16002 жыл бұрын

    Can you make a video for explaining 2 pwm signal output coding for attiny85

  • @khalilburno9713
    @khalilburno97139 жыл бұрын

    Super Awesome , thank you

  • @mastergscrewu
    @mastergscrewu9 жыл бұрын

    I really like your videos and your projects. I want to start making my own staff but I need to know more about electronics is there any web page that you suggest or any book? Thanks keep making videos they are the best!!

  • @greatscottlab

    @greatscottlab

    9 жыл бұрын

    mastergscrewu Instructables.com is a really good information source.

  • @kumelektronik340
    @kumelektronik3403 жыл бұрын

    А возможно ли для Attiny85 скейч для управления Servomotor сделать? Я пытаюсь, но у меня не получается. По этому поводу в интернете почти ни какой информации нет. Как я понял из интернета: с ардуино платформой это сделать не возможно, так как там с 16 бит, а тинка работает только до 8 бит.

  • @lukasheiligenbrunner2272
    @lukasheiligenbrunner22727 жыл бұрын

    Ist es auf diese Weise auch möglich einen Atmega8 zu programmieren? Is it possible to program a Atmega8 in this way? lg.

  • @adbol0532
    @adbol05324 жыл бұрын

    Can I use 22uF capacitor?

  • @dr.ahmedjabbar265
    @dr.ahmedjabbar2658 жыл бұрын

    Thank you for efforts....

  • @yunpun3198
    @yunpun31983 жыл бұрын

    2:07 do you need an ATMEGA to do this? What is this step for

  • @MRTz_music
    @MRTz_music8 жыл бұрын

    can you give me a specific artiel number of the attiny85 becaus i didnt f8nd the right one

  • @ravenmooore
    @ravenmooore8 жыл бұрын

    Hello! I love all your videos, very clear and easy to follow! Can you recommend an easy to understand video of SPI and I2C for a beginner :)

  • @sensiblewheels

    @sensiblewheels

    7 жыл бұрын

    Hey . if you're still looking for it , Great Scott has a video on I2C in his electronics basics playlist . check it out :)

  • @masterplayer5982

    @masterplayer5982

    4 жыл бұрын

    :)

  • @RobinGlauser
    @RobinGlauser8 жыл бұрын

    Can you reverse the order of the electronic basic playlist? KZread plays first number 20 and so you can't watch them in one go.

  • @drdischord
    @drdischord3 жыл бұрын

    Thanks for this very clear video. I found the same procedure in a couple of projects at arduino.cc and hackaday, but your explanation and photography are the best. I tried it with a fresh Attiny85 and a generic Uno clone (with the CH341 USB to serial chip), and got the dreaded "Invalid device signature 0x000000". (I'm running the Arduino IDE 1.8.13, installed from arduino-1.8.13-linux64.tar.xz on Debian 10, in case that matters.) The connections are correct and Vcc is 5.01V at the target. The forums tell me this means my ATtiny85 has its clock mode fuses set wrongly, and I need to use the high voltage programming mode to "unbrick" it. Which is not a function ArduinoISP can perform, and it's not how the data sheet says the chip ships. So I have a few questions. 1. Have you run into this issue? Did applying an external clock fix it, or did you need to use the HVP? 2. Is there anything in ArduinoISP that requires a genuine Uno? or should any generic Arduino work? 3. What's really going on with that 10 uF capacitor on the Arduino's RESET\ signal?, it seems like a kludge.

  • @drdischord

    @drdischord

    3 жыл бұрын

    I'm digging into question 3. It seems the Arduino IDE talks to the serial port the wrong way, causing a pulse on the Uno's RESET\ when it's not done talking to the ArduinoISP running on the Uno. It leaves dealing with the (emulated on USB) serial port to the avrdude program, and avrdude doesn't know enough to do it right. So the 10 uF cap is a kludge working around a missing feature in the avrdude program. For a less kludgy fix, avrdude needs a new command line option to tell it not to pulse that serial port status line, but leave it connected all the time. And Arduino IDE needs to know how to set the "serial port" up so that avrdude doesn't have to do it, and when to use avrdude that way. Or avrdude needs to get way smarter about when to open and close the emulated serial port. No wonder everybody kludged it with a 10 uF cap instead.

  • @drdischord

    @drdischord

    3 жыл бұрын

    I tracked my problem down to an intermittent short between MISO and SCK. They were shorted when the shield was in place and open when I pulled it off the Uno to buzz it out. The SCK is low when the Arduino-as-ISP samples MISO so it was always reading back zeroes. Thanks again for these excellent videos!

  • @ivanstanojevic1728
    @ivanstanojevic17288 жыл бұрын

    Does attiny support IRremoute libary?

  • @morphman86
    @morphman868 жыл бұрын

    So you can remove the programmable part of the Arduino and install directly in another circuit? I did not know that. Arduino gets cooler everytime I see it. I take it the programmable IC is slightly cheaper than the entire board, so you could get those in bulk, right?

  • @JustFun-wp3mm

    @JustFun-wp3mm

    7 жыл бұрын

    The programmable ic is a lot cheaper than the board, but, will need some other, cheap components. For best operation, the atmega needs a crystal, a couple of ceramic caps and, if powering from battery, a voltage regulator. These can be purchased as a set on eBay.

  • @davidbristoll195

    @davidbristoll195

    7 жыл бұрын

    m.ebay.co.uk/itm/Atmega328P-Kit-Arduino-Uno-Bootloader-16MHZ-Crystal-22pF-Capacitors-/131675293038?nav=SEARCH

  • @zaidhussain5206
    @zaidhussain52068 жыл бұрын

    Thank you for sharing

  • @joseferrufino9090
    @joseferrufino90908 жыл бұрын

    What kind of metal do you use

  • @maxmustermann455
    @maxmustermann4559 жыл бұрын

    Kann auch ein Keramikkondensator verwendet werden oder muss das so eine sein wie du genommen hast?

  • @rover8772

    @rover8772

    8 жыл бұрын

    Max Mustermann Kann, für mein programmer hab ich einen non polarized kondensator, functioniert auch..und 3 LED's (grün,rot und gelb) für zb. programmer on (heartbeat), fehler und programieren...

  • @Xyz-77
    @Xyz-777 жыл бұрын

    Can I use this method with attiny11?

  • @vedant6633
    @vedant66337 жыл бұрын

    Why there is no need of clock in attiny ....I mean any oscillator .....becuz how will the ic know the timmings like delay(500);??is there any inbuilt oscillator

Келесі