Twitter: / greatscottlab Facebook: / greatscottlab Previous video: • Video In this video I will show you how to use your Atmega328P without an Arduino Board. Music: Killing Time, Kevin MacLeod (incompetech.com)
Пікірлер: 324
@GregorOttmann10 жыл бұрын
I like this a lot, but there are two thing's I'd like to mention: First off, you should add 100nF caps between the +5V pins and GND of the ATmega. This is something one should always do when an IC is involved, which I learned the hard way some time ago. And then I want to mention that the Arduino IDE supports the use of an external programmer without a hitch - you only have to use the menu option "File/Upload with programmer" instead of the toolbar button when uploading your code. That approach also has the advantage of working without the Arduino bootloader which can come in handy if you have to ditch the bootloader in order to get some more free space on the chip, so I prefer ICSP to serial in my projects.
@greatscottlab10 жыл бұрын
I did not realize that the Arduino IDE can do this. Thanks for telling me ;-)
@MrBajaJunky9 жыл бұрын
Does that mean that I can use the FTDI chip like he said to programm a bought Atmega also if I have no Arduino? Because a bought Atmega comes without a bootloader on it, right?
@GregorOttmann9 жыл бұрын
No, it only means that you can use the IDE for programming with an ISP programmer. You will need a bootloader for programming using the serial line.
@MrBajaJunky9 жыл бұрын
Gregor Ottmann Thanks! Do you know if there is a possibility to use the Arduino to programm a atmega without removing the atmega of the Arduino? Because I have a fake Arduino and you can't remove it there...
@GregorOttmann9 жыл бұрын
There should be a 6-pin ISP connector on your Arduino. Using that and a programmer, you should be able to program the chip without desoldering. If you have a second Arduino lying around, you can use that as a programmer. There are instructions for that on the Arduino website.
@AJ-Palermo2 жыл бұрын
Other videos/articles make this look so difficult, but as usual, GreatScott! made a good quality, simple, easy to understand video
@M4rkuss3n8 жыл бұрын
Simply explained, clearly detailed, very concise and really helpful. Thanks!
@contentwriter10442 жыл бұрын
check this kzbin.info/www/bejne/nICymKWbnbmNjMk
@FlevasGR9 жыл бұрын
This is the best video for Arduino on a breadboard.
@tpespos5 жыл бұрын
I didn’t even realize you could do this, this video alone is worth a subscribe
@alaozarmg4599 жыл бұрын
I love the fact that you synced almos every take with the lights on the background with the music itself
@peterhimmelman92414 жыл бұрын
That was so good, I thought it really was sound reactive.
@LexMc06066 жыл бұрын
"This is not a FTDI chip, but it does the same thing. But it's BULLSHIT!" LMAO
@TommyBee4567 жыл бұрын
i just wanna know where i can get that "gadget box"
@ahmedmani10517 жыл бұрын
BrainDead Media 3d print it
@moover1237 жыл бұрын
I want to know that too
@suprguy7 жыл бұрын
search for project box
@vaterreichenberger6 жыл бұрын
Conrad.de
@vaterreichenberger6 жыл бұрын
Or search for a "Project Box"
@alinconstantingoga7 жыл бұрын
The best professor ! Thanks for sharing and keep this good work. Subscribed !
@MarcosFPV7 жыл бұрын
I must say your videos are always very direct and detailed.
@contentwriter10442 жыл бұрын
check this kzbin.info/www/bejne/nICymKWbnbmNjMk
@yassinelaassiri78248 жыл бұрын
i hope you hit 1 millions subscribers wish you all luck.
@amalsurendran19846 жыл бұрын
YOU'RE THE MANNNNN. Couldnt figure this one out for weeks..!
@fede1428578 жыл бұрын
1:26 Dude, that's no 10K resistor, that's 120 ohms! Oh wait... nevermind, I was reading the color code backwards... or at least I think so. Damn. In all seriousness now, if you have a 10K ohm (brown black black red brown) and a 120 ohm (brown red black black brown; same sequence as before but backwards) metal film resistor, is there any quick and easy way to tell which is which without using a multimeter?
@Werede8 жыл бұрын
The widest ring is the tolerance ring
@raagamparmar1794 жыл бұрын
@@Werede thanks for this!
@paulcooperartist3 жыл бұрын
never mind :-)
@ΝίκοςΧατζής-β6ι2 жыл бұрын
all your video are great, thank you for taking the time to put together these demonstrations
@dreamlessfull3 жыл бұрын
Scott, I've recently learned that is possible also to use an Arduino Nano as an ICSP to program a bare Atmega328P. Just upload Arduino ISP sketch on Arduino Nano, (you can find it in the provided examples), change line 73 to use pin 6 instead of 10 as reset line in case of Arduino Nano. Then connect Arduino's usual ISP pins: 6, 11, 12 and 13 to Atmega328's reset, MOSI, MISO and SCK, in order, and, of course, gnd and 5V. Then you can upload you code to Atmega328 from menu "sketch/upload through a programmer". NOTE: Atmega328 need to have a bootloader loaded, already. Ciao!
@lefteristhebuilder61595 жыл бұрын
Great video! However, when I tried it myself nothing would work and at some point I thought I've had fried the microcontroller. Then, I decided to experiment using a normal Uno R3 (GEEKCREIT china clone) and an FTDI. It still wouldn't upload, so I thought that something was wrong with the connection. To all people that had the same problem with me, here's what you have to do to get the thing working: 1) Do the same as GreatScott! did for the breadboard part except that the 10kOhm resistor goes to 5V! 2) Take the ftdi programmer. 3) DTR goes to one side of a 100nF ceramic capacitor and the other side of the capacitor goes to reset. 4) TX, RX and vcc go like normal. 5) CTS goes to GND (GreatScott!'s ftdi I think didn't have a CTS port). 6) GND goes to GND. In the Arduino IDE, select "Arduino UNO" as your board and the port is the FTDI's one. Thanks for reading and for those who had the problem, I hope they managed to solve it and didn't throw the ATMega away as I was about to do :).
@Nathan-zg5kp7 жыл бұрын
I binge watch this channel like a Netflix show
@greatscottlab7 жыл бұрын
I like that ;-)
@isaiaschrist110 жыл бұрын
This is a great video, It really help me put together my own Arduino. I saw some of your videos and they are very easy to follow. Keep up the great work and thanks
@WatchCuriousCat8 жыл бұрын
Thank you. I always learn a lot from your channel.
@allanminers16623 жыл бұрын
Thank you for this excellent presentation. This video is one o f the best.Looking forward to more.
@chandimasamaranayake75446 ай бұрын
Method 1 & Method 2 are really working , thank you. Please mention how to buy ftdi programmer as shown here.
@PFFF7854 жыл бұрын
Nice video! Thank you for the information! I like that the video is on point, short and comprehensive! :D
@mikewhite7358 жыл бұрын
Why at about 2:44 was the chip pulled off of the prototype board, and plugged into the Uno, while the Uno was on?
@FrankDrebin7 жыл бұрын
In fact there is nothing what can go wrong in this case, just bad habit..
@NicholasAarons8 жыл бұрын
Very Cool Gadget. Keep up the great work. Nick.
@sb-rj6yb7 жыл бұрын
2:55 got the new way to upload..thanks
@franklinpatrick86062 ай бұрын
Wow very nice video i just developed an interest in working with arduino. Can I use what is done in this video to shrink any arduino project
@linuspauly23807 жыл бұрын
When programming with ftdi and the wiring you showed, dont forget to put a capacitor between the reset of the atmega and the ftdi to shorten the reset pulse!
@smarzony7 жыл бұрын
Hello, thank you for this video. It even works with Atmega8 as Arduino NG. For some reason I had to pull down RX, because program would never boot. Updating code with ftdi works normal, no need to diconnect pulled down RX. Also during upload manual reset is needed.
@INGHUSSAMKAMEL8 жыл бұрын
Thank you for your videos ?i have a question: How can i build the short circuit protection Thanks
@greatscottlab8 жыл бұрын
Easiest way is a fuse
@subhadrakovvuri33237 жыл бұрын
HUSSAM KAMEL ! just use voltage regulator ic lm 7805
@INGHUSSAMKAMEL7 жыл бұрын
Thanks :)
@markojojic62232 жыл бұрын
I didn't have an oscillator on hand, but puttting both chips od a breadboard and connecting the oscillator pins from the socket in the Arduino to both in parallel worked.
@sortsvane9 жыл бұрын
OR OR OR OR OR OR OR OR OR use an arduino nano or pro mini (cheaper and easier!) (just suggesting) great video!
@nikhileshk70475 жыл бұрын
0:00. I see You got a great musicality too. Keep it up.
@sevdev98445 жыл бұрын
Very interesting, but the Arduino Nano seem to be only a little bit more expensive than the ATMEGA328P I found on Alixpress. For learning something it might still be useful to build that but to cut the costs and size not so much anymore.
@janx17638 жыл бұрын
You could left the whole right site open because GND and VCC are connected inside the controller. The only thing that might be needed is soldering vcc and aref together (the pins directly next to each other) if analog reading is used. Du könntest auch die ganze rechte Seite frei lassen weil Masse und 5V innerhalb des Mikrocontrollers verbunden sind. Wenn analoge Werte eingelesen werden sollen muss Aref noch mit 5V (direkt daneben) kurzgeschlossen werden als Referenz.
@ezeprojects54255 жыл бұрын
once again, you've saved my bacon. Thx.
@zoubirsantouh2311 Жыл бұрын
always wonderful !
@NutScrewGamer5 жыл бұрын
Thanks for promoting Malaysia
@Ksnieup3 жыл бұрын
I like the humor in this
@ArnovSharma7 жыл бұрын
gawd of electronics THE GREAT SCOTT
@kennyfication8810 жыл бұрын
There is another way of programming your Arduino if you keep the original Atmega in the Arduino and use a 2nd Atmega for your project. You need to flash the "Arduino As ISP" Sketch, select the Arduino as a programmer and then you can upload the sketch on the standalone arduino using specific pins ( I don't know which, it stands in the arduinoasisp sketch). But this only works, if the 2nd atmega already has the arduino bootloader on it. You can flash it, if you plug in the empty, new atmega in the arduino and press burn bootloader in the IDE. btw: Nettes Video. Wie immer halt :)
@muhammadaarif30195 жыл бұрын
reset to pin1..rx to pin 2...and tx to pin 3...I guess Vcc and Gnd should also be connected.
@formertoddler1967 жыл бұрын
Off topic, but you seem like an electronics wizard & I wanted to ask if you can re-program ATtiny (ATtiny84, ATtiny85, etc.) chips & aren't stuck only being able to upload one sketch to it?
@MD-vs9ff7 жыл бұрын
Erik E. Yes you can. I've had to reprogram ATtiny84s many times for a school project.
@pushpapoojari59075 жыл бұрын
You are really great the greatscoot
@morphman868 жыл бұрын
ICSB... haven't used that in over a decade. I thought the industry was moving away from that stuff. Funny enough, I used ATMEL when programming it back then too. Guess that was good enough software to survive a 6th edition. Nothing wrong with ICSB as such, it's just a pain to program and I was basically hired by the company to make a firmware upgrade for each product at least once a month, because of bugs they kept finding (I did not make the original firmware, I just patched bugs as they were found by Q&A). It would've been fine if that was it, but the company is an industry leader and moved over 500 units a day, and they were all assembled and programmed in China. It takes about 8 months to move the units from China to EU, so I spent most of my days unpacking 500 units, plugging a cable into each of them, clicking a button on the computer, repacking it and whenever I had time left, I'd work on bugfixes in the firmware. With the new way of doing it, you get an easier overview of the programming and can test it on-site, which leads to fewer bugs. It's also quicker to update the firmware. That would've saved the company a lot of time, and any semi-skilled worker could've done the updates. Also, the new system uses USB or SD cards, so you can use just about any laptop to reprogram it. No need for expensive separate programmers, so you can have 2 people updating firmware twice as fast (or more than twice, since the new one is much faster). Plug in, hit button, unplug, done.
@shivakumar-lv6wr8 жыл бұрын
how are you able to solder such complicated circuits on a perf board? what editor do you use to make the schematic and how do you solder components using that?.
@mjtsquared7 жыл бұрын
as long as you know your project it's really easy
@lostone16986 жыл бұрын
He uses easyEDA as schematic and PCB layout maker
@m_a_s6069 Жыл бұрын
@1:21 One of the 22pf capacitors has a sweepover.
@filipposanzani66537 жыл бұрын
hi, could you make some videos about electronics components like transistors, resistors... to explain how do they work and how should we use them?
@TaylorTheOtter8 жыл бұрын
Why is just plugging the atmega328 into an uno the "most annoying" way? Is prying out the original arduino chip and hooking up the jumpers to program it really less annoying than prying out the arduino chip and inserting the other one?
@Evi31427 жыл бұрын
Sven Haaijman because your code wont work the first way around. You have to program, test, reprogram, test, and so on. Prying the chip out of the socket every time would probably get enoying fast. You can also solder female headers to each input to the chip, so you can test it with the chip still in the arduino, and place the chip into the socket of your setup once youre shure it works
@elephant31096 жыл бұрын
@@Evi3142 and note that too, pins bend.
@ChristopherJones162 жыл бұрын
00:24 Is it ok for the separate solder pools to touch each other from other tracks(I don’t know what you call the lines connecting the resistors the components to each other. Lanes? Is there a term for it?) just as long as the actual wire and components legs don’t touch each other? Because man idk how people solder things so close to each other without the individual solder pools touching each other. Does the solder itself not conduct electricity so the flow of electricity not hop onto another circuit/nearby resistor/capacitor etc?
@TimothyJohnAguilar9 жыл бұрын
That was awesome. Subscribed!
@nozma66158 жыл бұрын
can i use it without reset connection when it upload i will click the rest button it will work??
@MirzAli8 ай бұрын
Thanks bro, thats a game changer
@mohamedessamhadid2315 жыл бұрын
It's so helpful, thank u so much. Well now is it possible to burn an atmega bootloader using USB to TTL only without an arduino uno chip ?? and if so how?
@IndikaRatnayake7 жыл бұрын
Thank you for the videos. Do you need to have an external crystal? Or can I use the internal crystal of the Atmega instead?
@greatscottlab7 жыл бұрын
You can use the internal one if you activate it.
@utkarshsharma4246 жыл бұрын
GreatScott! ...Will this standalone project also work if we're trying serial communication between arduino and Android.?
@ojasojas39898 жыл бұрын
But we can also use arduino nano to build led color organ which can fit in the gadget box
@blackhatgaming54974 жыл бұрын
I am a bit too late :(. Hope you reply.... Can I control a relay with this standalone microcontroller?
@Geekswebsite3 жыл бұрын
yes, you can control a 5v relay
@azmrblack Жыл бұрын
ICSP is just as simple. Requires 6 wires - 4 to MISO/MOSI/SCK/RESET and 1 to VCC and 1 to GND. Yes you need a +5V pullup on the reset line but there are tons of simple diagrams in Google Images.
@rocketdudes104010 жыл бұрын
vodka!
@philp50137 жыл бұрын
definitely
@tctrainconstruct25925 жыл бұрын
Why not use an Arduino Pro Mini (that fits nicely inside your gadget box)?
@LeonardoCamposBR5 жыл бұрын
Probably because he would like a reason to make this video and share with us but people always have some stupid questions.
@indianplans6 жыл бұрын
What is the ftdi you shown at 3:15 will you please share this product link
@magicianofelectronics9514 жыл бұрын
You can program 328p using Arduino and without programmer device, thank you
@SibertD10 жыл бұрын
I really like the gadget box, could you tell me where I could find those?
Work done above is absolutely Great but I am looking to apply whole process on atmega2560 Does it still the same or something additional is required?
@abhiramcd4 жыл бұрын
2:20 nailed it 😂❤️🔥
@ilaserbia9 жыл бұрын
Could you please make a video about how to flash an arduino bootloader to the ATMega without an arduino board, only using the FTDI or something else (maybe ICSP)? Essentially a tutorial about how to make an arduino Uno clone...
@anandhakrishnant67886 жыл бұрын
I have a doubt,the atmel chips to program externally ,does it require the same arduino board to program its chip.I faced this problem that's why....anyway as usual great video .helpful...
@SHANUSHAH6 жыл бұрын
No you can use other boards i.e you use Nano to program Uno , I have done that don't know if use Mega , but surly it could be done!! ?
@hheg27277 жыл бұрын
So what is the difference of using ICSP and just using an USB to serial converter?
@karelmikie37 жыл бұрын
ICSP programs the chip directly without using the arduino bootloader. The USB to serial converter uses the arduino bootloader to program the chip. One of the advantages of using ICSP is that you don't have to waste space on the arduino bootloader a disadvantage though is that you don't get to use the function/libraries that arduino offers you since they rely on the arduino bootloader.
@MD-vs9ff7 жыл бұрын
karelmikie3 No, they don't. The Arduino IDE has had support for IDE programmers for a long time now. I was using an ISP shield years ago to program standalone chips with Arduino sketches, no bootloader necessary. Theres absolutely nothing messy about ISCP programming, especially since you can program an Arduino to be a programmer. The IDE has a sketch called ArduinoISP for that.
@steverpcb4 жыл бұрын
All these tutorials mess up the crystal capacitor values, typically they use 20pf caps for a crystal with a load capacitance of 20pf, WRONG, there is a formula to work out the correct cap values. To put it as simple as possible, you are using 2 caps in series that halves the total, also the crystal with pads and tracks has a few pf built in capacitance, so it becomes 40pf minus the built in capacitance will give 36pf as the value for the two load capacitors for a 20pf crystal !
@himanshupanth63017 жыл бұрын
To power the ATMEGA with 5V....is there some current constraint as well?
@adityakumarraj8274 жыл бұрын
What exectly 22pf does?? And can i use another value. If no why?? . If yes what is the range?
@Geekswebsite3 жыл бұрын
Those are used with the 16Mhz crystal oscillator, you can use a capacitor between 18pf to 22pf.
@projektowanie3ddruk3d993 жыл бұрын
Will the atmega328p itself work like an Arduino? Digital / PWM pins and analog pins will work normally?
@clownsalad4 жыл бұрын
What about pullup resistors, are those on the board, or part of the chip itself?
@magicianofelectronics9514 жыл бұрын
With reset?
@Uilsbat8 жыл бұрын
Thanks for awesome videos How do i use arduino that has non-removeable atmega328?
@adamcsermak21147 жыл бұрын
uilsbat arslan use it on the board where it is
@bobbyjose22655 жыл бұрын
Just break it off the board!
@fairpoor4 жыл бұрын
That's awesome!
@iProgramInCpp5 жыл бұрын
Nice video length!
@ABID57 жыл бұрын
Hey Scott! Can you make a space shuttle?
@nozma66158 жыл бұрын
resistor is 10k ohm ?
@maxxg74 жыл бұрын
yes
@gabiruman8 жыл бұрын
A question: I'm implementing this on a PCB instead of a breadboard, so Im building my own reset button on the PCB, if I don't connect the reset pin of the arduino to chip pin 1 can I still upload code through the 2nd method?
@ponchov.91167 жыл бұрын
How would you use serial communication in a standalone circuit like this? Or, how would you connect it to a PC through USB?
@meercreate7 жыл бұрын
I would have used the Pro Micro, which is quite compact.
@djoudigpl86255 жыл бұрын
hello iam using the red ft232 chip wich has dtr pin i have problem wich is the program stuck at uploading pls help
@digitalmarketing59574 жыл бұрын
I have a 20x4 LCD with I2C (PCF8574) in my project which works 100% fine when setup with the ATMega328 on the Arduino UNO, but when set on a PCB I made with the same ATMega328 (without the Arduino interface) it only shows white squares. This is the data I believe to be talkpoints: • The cables used are 10cm long breadboard jumper wires • SCL, SDA, VCC and GND connections from the ATmega328 to the LCD are OK (no mixed connections) • I tried with and without 4.7kOhm resistors from SCL to VCC, and from SDA to and got the same null result with both setups • I have a LM7805 with decoupling capacitors that feeds the IC (power source is a switching 12V 5A), and it indeed recieves 5V..... • Please can you assist in finding the finding solution.
@contentwriter10442 жыл бұрын
check this kzbin.info/www/bejne/nICymKWbnbmNjMk
@gergobor41433 жыл бұрын
Where can I finde how big capacitance is need for the clock crystal?
@anthonymuthungu13198 жыл бұрын
Great tutorial.....
@nekm19255 жыл бұрын
Will it still have power pins
@WilliamWoodAZ7 жыл бұрын
What project/gadget box did you buy? Link?
@eleven_001_117 жыл бұрын
from where yo got the FTDI chip?
@greatscottlab7 жыл бұрын
Ebay
@ivanstanojevic17288 жыл бұрын
Nice job.I have a question.How can I upload code on atmega 328P on breadboard using arduino board wich has atmega 328 smd and I can't remove chip from breadboard?Thanks a lot.
@yungnut42476 жыл бұрын
How to I know if my project can run at 8 MHz
@im53414 жыл бұрын
His external clock source is useless actually. Chip uses internal 8 MHz clock source by default.
@m74w5 жыл бұрын
Hi to which pins do I need to connect serial clock and serial data for I2C ? There are special pins for is on Arduino boards. Thanks
@mr-momomourad64756 жыл бұрын
how about avr and hex ....can i use this in hex without another arduino
@dagoston7378 жыл бұрын
Hi, i really like your videos, they are really great. After this video I wonder if the same thing is possible with arduino MEGA. I know atmega 2560 is an smd chip and i need to do some smd soldering in order to get it working. and i may need to have some more parts than to have a mega328 working standalone. i searched the web for info about this but did not really find what i meant. have u got any ideas how to do it and possibly could u make video about that? thanks in advance and thanks for these great videos best wishes Agoston
@almoglavi87372 жыл бұрын
I used the first method to upload simple blink sketch yet nothing work. I also add reset push button to ground and my atmega328 doesnt do anything. What can be the problem?
@DamaKubu6 жыл бұрын
3 vodka bottles, video length is 4:20, are u okay, scott?
@TheDashius9 жыл бұрын
On the FTDI part, it says it is not an FTDI chip and that it's BS... What chip is it? Name? Additionally, which FTDI chip would you recommend most? There are so many out there. Thanks.
I've been studying electronics and discovered an awesome website at Gregs Electro Blog (google it if you are interested)
@JohnFerrier5 жыл бұрын
Hello! I'm wanting to make a standalone circuit like this but with USB communication. I searched through your videos but couldn't find a video showing this (Maybe I missed it). Would you happen to know how someone would do that? Would I just connect the TX and RX pins to D- and D+?
@GautamElectronics18078 жыл бұрын
Standalone Circuit with atmega32a ??
@jorrharris4 жыл бұрын
How do we know what external components we need and how to wire them up for a specific AVR Microcontroller? I couldn't find a diagram with the crystal / capacitors in the ATmega328 datasheet, so how can we figure out how we should set it up with different microcontrollers?
@isaacsimon68634 жыл бұрын
dude, he is not going to read this comment. this was 6 years ago
@magicianofelectronics9514 жыл бұрын
Datasheet explains everything
@nekm19255 жыл бұрын
Can it still give 3.3v for power pin
@utkarshsharma4246 жыл бұрын
Will this work for projects in which we are doing serial communication between arduino and Android??