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

  Рет қаралды 674,914

GreatScott!

GreatScott!

10 жыл бұрын

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
@rahul81299
@rahul81299 7 жыл бұрын
Your channel is the best channel anyone could find for DIY projects......Thank you from bottom of my heart :)
@nextstorming3908
@nextstorming3908 8 жыл бұрын
I'm hooked on your electronics basics videos because they're so high quality
@rharrington8669
@rharrington8669 6 жыл бұрын
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
@BrockAngelo 9 жыл бұрын
Just finished assembling my ATTiny programming shield. This works really well. Thanks!
@greatscottlab
@greatscottlab 9 жыл бұрын
+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!
@refusalpoi
@refusalpoi 7 жыл бұрын
Your video quality has improved now I'm looking back upon your older videos. Keep up the good work!
@tuhitatutorial
@tuhitatutorial 4 жыл бұрын
Thank you, based on your video now I can use USBASP and USBTinyISP also for programming my Tiny84, Tiny85, and Tiny13
@Elec-DIY
@Elec-DIY 10 жыл бұрын
You have some great videos, keep that good work up!
@MaciekStaniec
@MaciekStaniec 8 жыл бұрын
It worked after a year of fails. Thank you very much. ;)
@weitingLin66
@weitingLin66 5 жыл бұрын
Really high quality sharing, clarify lots concepts for me,tks
@etiennegagnon5479
@etiennegagnon5479 7 жыл бұрын
+GreatScott! Why don't you burn the boot loader to the atttiny to run it at 8mhz instead of 1mhz?
@KAFA2020
@KAFA2020 7 жыл бұрын
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?
@Irish_home_worx
@Irish_home_worx 7 жыл бұрын
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?
@nickzhang9750
@nickzhang9750 6 жыл бұрын
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
@kennyfication88 10 жыл бұрын
Genial, wie immer! Super gemacht!
@gio90s74
@gio90s74 8 жыл бұрын
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...
@messcommand7819
@messcommand7819 7 жыл бұрын
Love this one .... GreatScott!
@Tech_-ez7us
@Tech_-ez7us 9 жыл бұрын
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.
@Saiya6CIT
@Saiya6CIT 6 жыл бұрын
hallo ich bin aus mexiko I love your videos, please never stop making them.
@norm1124
@norm1124 3 жыл бұрын
Adding the status LEDs 7/8/9 from the Sketch is easy and helpful!
@eidolon0
@eidolon0 8 жыл бұрын
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 8 жыл бұрын
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!
@RahulSingh-my7vx
@RahulSingh-my7vx 5 жыл бұрын
sir when i program attiny85 it showing yenkie invalid device. check your connection double. please help me about this
@asmodeus7781
@asmodeus7781 5 жыл бұрын
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
@vpertys
@vpertys 5 жыл бұрын
0:53 "Trust me, i'm an engineer"
@startobytes
@startobytes 4 жыл бұрын
Hi, could you make a Video about how to use the Attiny10 with Arduino IDE and Arduino Uno?!
@Fluburtur
@Fluburtur 8 жыл бұрын
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?
@ramykotb9883
@ramykotb9883 6 жыл бұрын
I get an error "Serial wasn't declared in this scope" whenever i try to upload the ISP.
@ciklois
@ciklois 5 жыл бұрын
Hi GreatScott, what are you using for connecting pins on your prefboard, for example at 4:41 , and where do you buy them? Thanks
@santiagolozanothuillier8477
@santiagolozanothuillier8477 4 жыл бұрын
Nice tutorial. Thanks for sharing.
@JFrap
@JFrap 9 жыл бұрын
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.
@matthijsjanse3275
@matthijsjanse3275 6 жыл бұрын
Can you look at the miconucleus stuff wich allows a attiny 85 to use usb
@NMexis
@NMexis 7 жыл бұрын
is there anything you have to do differently if you want to program it with an arduino mega 2560?
@micromachine9975
@micromachine9975 6 жыл бұрын
Hello Could you make a video or some instructions for make a proyect with attiny85 and Bluethoot? Thank you. Congratulation for the channel
@Afif87123
@Afif87123 3 жыл бұрын
Ahh, memories
@anujamerwade3179
@anujamerwade3179 7 жыл бұрын
Will you please help me regarding where can I download your multiplex arduino code from?
@trashos817
@trashos817 3 жыл бұрын
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?
@hielkebaron7007
@hielkebaron7007 8 жыл бұрын
Hee scott! Are there more ic's that you van program with an arduino??
@Jajaho2
@Jajaho2 7 жыл бұрын
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.
@Rafrial
@Rafrial 3 жыл бұрын
Thanks, it works. But how to RESET the program in ATTiny to the default?
@RandomMusingsOfLowMelanin
@RandomMusingsOfLowMelanin 7 жыл бұрын
I saw the pinout of ATTiny an dit does have SPI pins. How should I use them?
@matetsertsvadze5746
@matetsertsvadze5746 8 жыл бұрын
can you program any atmel microcontroller from arduino. And make small video about it. great video thanks
@kaylanipimp1
@kaylanipimp1 7 жыл бұрын
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?
@avisoomirtee6882
@avisoomirtee6882 8 жыл бұрын
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...!
@djtoddles8750
@djtoddles8750 5 жыл бұрын
0:51 That does seem legit, in fact there's enough room to fit 2 or 3 more of them, should I try that?
@shabukajla3876
@shabukajla3876 6 жыл бұрын
Is there any problem in using arduino ISP when I am not coding some other microcontrollers but sticks to use the inbuilt 328 p
@NorthernEclips3
@NorthernEclips3 6 жыл бұрын
Can I get an amazon link to the bridge wire you use?
@Flankour
@Flankour 8 жыл бұрын
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.
@S-Tach
@S-Tach 5 жыл бұрын
It was very nice video. ..please make veriable timer relay trigger with potentiometer to adjust time delay using attiny mcu.
@100roberthenry
@100roberthenry 5 жыл бұрын
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 .
@lennybruder2153
@lennybruder2153 6 жыл бұрын
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
@Javier_Corado
@Javier_Corado 5 жыл бұрын
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?
@martinwhitehurst9893
@martinwhitehurst9893 8 жыл бұрын
i have 1.6.2 Arduino, will this work or do i need to download the 1.0.5?
@prithvi0parimal
@prithvi0parimal 9 жыл бұрын
why did u use a capacitor? and can i use the TX and RX with this method?
@thedavinator37
@thedavinator37 6 жыл бұрын
If I’m using the A0 and pins 7-12, where could I get an attiny that accompanies all of that?
@the9tailsupersaiyan
@the9tailsupersaiyan 5 жыл бұрын
How could one do this with an Arduino mega?
@guillaume8437
@guillaume8437 3 жыл бұрын
Hi! Could you please tell where you got this RGB LED ribbon thing?
@chago868
@chago868 8 жыл бұрын
How do you vary the Frequency in the ATTiny Code?
@Ahmed.Al-Hloul97
@Ahmed.Al-Hloul97 9 жыл бұрын
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
@makmoeen
@makmoeen 7 жыл бұрын
if I won't to open or close the machine which prog I have to used and how??
@alincristea2419
@alincristea2419 7 жыл бұрын
what kind of wire do you use on pcb? I don't think is copper. What type of alloy is?
@lfrdo7815
@lfrdo7815 8 жыл бұрын
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 ?
@imraanmitha3280
@imraanmitha3280 5 жыл бұрын
Can someone explain why we have to have the capacitor between arduino reset and gnd?
@ralphchen1125
@ralphchen1125 4 жыл бұрын
can you provide the link about the perfboard you used?
@girideshkumar4
@girideshkumar4 4 жыл бұрын
I want to know what is the use of uploading isp code and what it is .
@melplishka5978
@melplishka5978 3 жыл бұрын
Awsome vid Scott ty.
@MRTz_music
@MRTz_music 8 жыл бұрын
can you give me a specific artiel number of the attiny85 becaus i didnt f8nd the right one
@dominadorfuerte1600
@dominadorfuerte1600 2 жыл бұрын
Can you make a video for explaining 2 pwm signal output coding for attiny85
@ronto55
@ronto55 5 жыл бұрын
Where did you plug the condensator?
@subscribetopewdiepie5259
@subscribetopewdiepie5259 4 жыл бұрын
So why should we put a capacitor between the reset pin and ground ?
@mastergscrewu
@mastergscrewu 9 жыл бұрын
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.
@RAPXZibit
@RAPXZibit 8 жыл бұрын
Can you provide a library for a attiny SPI?
@girishchandra6722
@girishchandra6722 3 жыл бұрын
Is it possible to program attiny 85 with arduino lenaordo?
@nebrasjunaid7073
@nebrasjunaid7073 7 жыл бұрын
is it possible to use esp8266 instead of arduino ono???? and how is the connection will be??? could you help me please!!!!!
@anthonyperks2201
@anthonyperks2201 8 жыл бұрын
That video is fantastic.
@tom20001229
@tom20001229 9 жыл бұрын
umm... can i use another 10uF capacitor instead of electrolytic capacitor?
@denizpnarl3059
@denizpnarl3059 6 жыл бұрын
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
@adbol0532
@adbol0532 4 жыл бұрын
Can I use 22uF capacitor?
@Xyz-77
@Xyz-77 7 жыл бұрын
Can I use this method with attiny11?
@umargul5644
@umargul5644 3 жыл бұрын
Well done sir
@sasoyu8922
@sasoyu8922 5 жыл бұрын
It does not work for me, it gives the error "invalid device signature 0x000000"
@TheAnical
@TheAnical 4 жыл бұрын
What if you DID plug the AtTiny84 in , then cut the other board to fit the other data pins.
@RobinGlauser
@RobinGlauser 8 жыл бұрын
Can you reverse the order of the electronic basic playlist? KZbin plays first number 20 and so you can't watch them in one go.
@ahmedboudi1808
@ahmedboudi1808 4 жыл бұрын
Thank you...Good Explain ....pofessional vedio!!!!
@TheHowToGuy995
@TheHowToGuy995 7 жыл бұрын
You are the one of the few that can solve this mystery. I uploaded a sketch to my attiny85 that outputs PWM according to a potentiometer. It didn't work. It drew about 2.8-3.5mA, but when I unpluged the ground to the attiny, it started working and only drew around 0.7-2.5mA. Why is this? And why will it not work when ground is connected to the attiny?
@RandomLOLGamer
@RandomLOLGamer 7 жыл бұрын
It is hard to know what is the problem if you dont list every connection here. Probably the potentiometer keeps sucking current - use higher ohm value pot. Protip - Make your sketch work on an arduino uno or nano, and use Serial.println(value); to debug the code.
@djstress260
@djstress260 7 жыл бұрын
really tnx for this video ... really help me
@edsonsilva7912
@edsonsilva7912 8 жыл бұрын
Very nice idea!!!
@yunpun3198
@yunpun3198 3 жыл бұрын
2:07 do you need an ATMEGA to do this? What is this step for
@ivanstanojevic1728
@ivanstanojevic1728 8 жыл бұрын
Does attiny support IRremoute libary?
@harisankar1024
@harisankar1024 2 жыл бұрын
Can you make a brand new tutorial series?
@nikhp7419
@nikhp7419 8 жыл бұрын
Where can i find the product list?
@joseferrufino9090
@joseferrufino9090 9 жыл бұрын
What kind of metal do you use
@vishnu7794
@vishnu7794 10 жыл бұрын
Great video
@mathieub3953
@mathieub3953 8 жыл бұрын
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.
@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.
@Cortez3333
@Cortez3333 8 жыл бұрын
doesnt the Attiny needs a 16Mhz crystal (same as the arduino) to run in propper time? (in this case, .5 sec blinking)
@althuelectronics5158
@althuelectronics5158 5 жыл бұрын
Your all video sooper happy to watching this video
@PanZombiePig
@PanZombiePig 8 жыл бұрын
Hey, i had atmega8 programmer but i wanted your LED controler with tiny. I dont know Arduino code. I am using C and CodeVision. Can you help me with this remake pls? :-)
@XInfinity2024
@XInfinity2024 3 жыл бұрын
Good video. Can you make a video on doing this on a Raspberry Pi?
@lukasheiligenbrunner2272
@lukasheiligenbrunner2272 7 жыл бұрын
Ist es auf diese Weise auch möglich einen Atmega8 zu programmieren? Is it possible to program a Atmega8 in this way? lg.
@billgabo
@billgabo 9 жыл бұрын
I found a lot on "Attiny", which are you using in this video?
@billgabo
@billgabo 9 жыл бұрын
William Gabriel Campos Villarraga Attiny85 .....I don't hear it in the video ;)
@greatscottlab
@greatscottlab 9 жыл бұрын
William Gabriel Campos Villarraga Yes
@shlomohassid5888
@shlomohassid5888 3 жыл бұрын
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'
@Cyb3rty
@Cyb3rty 7 жыл бұрын
Can i do the same with attiny13?
Electronic Basics #2: Dimming all kinds of LEDs!?
4:24
GreatScott!
Рет қаралды 370 М.
Простая беспроводная сеть датчиков на Arduino и 433 MHz
18:54
Заметки Ардуинщика
Рет қаралды 261 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 59 МЛН
This is not my neighbor  Terrible neighbor! #funny #zoonomaly #memes
00:26
Electronic Basics #30: Microcontroller (Arduino) Timers
9:19
GreatScott!
Рет қаралды 435 М.
Bare-Metal MCU #9 - Review; ATTiny85 from scratch
14:25
Mitch Davis
Рет қаралды 65 М.
ATtiny85 Game Console PCB - Multiple Games
13:46
Electronoobs
Рет қаралды 77 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
#84 Making the ATTiny85 easier to program
27:19
Ralph S Bacon
Рет қаралды 31 М.
Good bye Arduino? Welcome ATtiny 1-Series!! UPDI --geil!!
15:44
maker-garage-de
Рет қаралды 57 М.
【For Beginner】How to start electronics and what item is needed
18:16
The Best way to Solder? Hot Plate to the rescue! (DIY or Buy)
11:29
How to Program an ATtiny with Arduino (Up to Date)
10:09
Levi Janssen
Рет қаралды 54 М.
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 1,1 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 106 М.
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18