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
I'm hooked on your electronics basics videos because they're so high quality
@rharrington8669
5 жыл бұрын
me too
@djtoddles8750
5 жыл бұрын
Agreed. His name is Scott and he is great, so the channel is aptly named
@WarriorRev6300
2 жыл бұрын
So now I'm watching them
Just finished assembling my ATTiny programming shield. This works really well. Thanks!
@greatscottlab
8 жыл бұрын
+Brock Angelo Awesome
@robinsharpe-yablonka6419
2 жыл бұрын
Just like a EEPROM programmer I made a attitny and at mega programmer thanks for the help!
Your channel is the best channel anyone could find for DIY projects......Thank you from bottom of my heart :)
Your video quality has improved now I'm looking back upon your older videos. Keep up the good work!
Thank you, based on your video now I can use USBASP and USBTinyISP also for programming my Tiny84, Tiny85, and Tiny13
0:53 "Trust me, i'm an engineer"
You have some great videos, keep that good work up!
Really high quality sharing, clarify lots concepts for me,tks
+GreatScott! Why don't you burn the boot loader to the atttiny to run it at 8mhz instead of 1mhz?
It worked after a year of fails. Thank you very much. ;)
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
7 жыл бұрын
thanks for updated :)
@thedankoona_5854
7 жыл бұрын
thanks!
@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
4 жыл бұрын
@@nachtfrosts Thank you!
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?
Love this one .... GreatScott!
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?
Genial, wie immer! Super gemacht!
Adding the status LEDs 7/8/9 from the Sketch is easy and helpful!
hallo ich bin aus mexiko I love your videos, please never stop making them.
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
9 жыл бұрын
Farm Tech Maybe in the future.
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...
"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"
Nice tutorial. Thanks for sharing.
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?
Hi GreatScott, what are you using for connecting pins on your prefboard, for example at 4:41 , and where do you buy them? Thanks
Hee scott! Are there more ic's that you van program with an arduino??
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
Ahh, memories
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.
That video is fantastic.
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
5 жыл бұрын
I would just buy the cheap stuff. What could possibly be bad with a piece of copper and silicone?
sir when i program attiny85 it showing yenkie invalid device. check your connection double. please help me about this
What is the capacitor between reset and ground for?
@peeenoytv1149
4 жыл бұрын
The time constant of the capacitor will help programming the uC
@ddee2501
4 жыл бұрын
It is there to stop the Arduino re programming itself !
is there anything you have to do differently if you want to program it with an arduino mega 2560?
Will you please help me regarding where can I download your multiplex arduino code from?
Hi! Could you please tell where you got this RGB LED ribbon thing?
Hi, could you make a Video about how to use the Attiny10 with Arduino IDE and Arduino Uno?!
Awsome vid Scott ty.
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?
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
9 жыл бұрын
ahmed alhloul you put it there so arduino wont reset :) at least its how I understood that.
@Loundre3
6 жыл бұрын
To filter out high frequency noise, so the Arduino doesn't reset randomly.
@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
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?
Can you look at the miconucleus stuff wich allows a attiny 85 to use usb
Is there any problem in using arduino ISP when I am not coding some other microcontrollers but sticks to use the inbuilt 328 p
why did u use a capacitor? and can i use the TX and RX with this method?
I saw the pinout of ATTiny an dit does have SPI pins. How should I use them?
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.
what kind of wire do you use on pcb? I don't think is copper. What type of alloy is?
Can I get an amazon link to the bridge wire you use?
can you provide the link about the perfboard you used?
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.
really tnx for this video ... really help me
i have 1.6.2 Arduino, will this work or do i need to download the 1.0.5?
I get an error "Serial wasn't declared in this scope" whenever i try to upload the ISP.
Thank you...Good Explain ....pofessional vedio!!!!
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
4 жыл бұрын
Maybe too late, but I did it
@lennybruder2153
4 жыл бұрын
@@tuhitatutorial i also found a way
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 .
Your all video sooper happy to watching this video
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...!
can you program any atmel microcontroller from arduino. And make small video about it. great video thanks
if I won't to open or close the machine which prog I have to used and how??
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 ?
Thanks, it works. But how to RESET the program in ATTiny to the default?
Well done sir
How do you vary the Frequency in the ATTiny Code?
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'
I want to know what is the use of uploading isp code and what it is .
Can someone explain why we have to have the capacitor between arduino reset and gnd?
is it possible to use esp8266 instead of arduino ono???? and how is the connection will be??? could you help me please!!!!!
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.
Where did you plug the condensator?
0:51 That does seem legit, in fact there's enough room to fit 2 or 3 more of them, should I try that?
umm... can i use another 10uF capacitor instead of electrolytic capacitor?
Can you provide a library for a attiny SPI?
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?
Very nice idea!!!
Great video
Is it possible to program attiny 85 with arduino lenaordo?
It was very nice video. ..please make veriable timer relay trigger with potentiometer to adjust time delay using attiny mcu.
Hello Could you make a video or some instructions for make a proyect with attiny85 and Bluethoot? Thank you. Congratulation for the channel
Does this method also takes care of bootloader or we need to buy AT-tiny 85 with bootloader already burned?
@diyelectronics5537
6 жыл бұрын
You have to burn the bootloader before uploading the code. Anyway burning the bootloader can be done with this shield
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
8 жыл бұрын
+Mathieu Bacquet Should work.
How could one do this with an Arduino mega?
So why should we put a capacitor between the reset pin and ground ?
Can you make a video for explaining 2 pwm signal output coding for attiny85
Super Awesome , thank you
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
9 жыл бұрын
mastergscrewu Instructables.com is a really good information source.
А возможно ли для Attiny85 скейч для управления Servomotor сделать? Я пытаюсь, но у меня не получается. По этому поводу в интернете почти ни какой информации нет. Как я понял из интернета: с ардуино платформой это сделать не возможно, так как там с 16 бит, а тинка работает только до 8 бит.
Ist es auf diese Weise auch möglich einen Atmega8 zu programmieren? Is it possible to program a Atmega8 in this way? lg.
Can I use 22uF capacitor?
Thank you for efforts....
2:07 do you need an ATMEGA to do this? What is this step for
can you give me a specific artiel number of the attiny85 becaus i didnt f8nd the right one
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
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
4 жыл бұрын
:)
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.
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
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
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!
Does attiny support IRremoute libary?
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
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
7 жыл бұрын
m.ebay.co.uk/itm/Atmega328P-Kit-Arduino-Uno-Bootloader-16MHZ-Crystal-22pF-Capacitors-/131675293038?nav=SEARCH
Thank you for sharing
What kind of metal do you use
Kann auch ein Keramikkondensator verwendet werden oder muss das so eine sein wie du genommen hast?
@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...
Can I use this method with attiny11?
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