Тёмный

Electronic Basics #6: Standalone Arduino Circuit 

GreatScott!
Подписаться 2 млн
Просмотров 534 тыс.
50% 1

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)

Наука

Опубликовано:

 

29 май 2014

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 324   
@AJ-Palermo
@AJ-Palermo 2 года назад
Other videos/articles make this look so difficult, but as usual, GreatScott! made a good quality, simple, easy to understand video
@GregorOttmann
@GregorOttmann 10 лет назад
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.
@greatscottlab
@greatscottlab 10 лет назад
I did not realize that the Arduino IDE can do this. Thanks for telling me ;-)
@MrBajaJunky
@MrBajaJunky 9 лет назад
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?
@GregorOttmann
@GregorOttmann 9 лет назад
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.
@MrBajaJunky
@MrBajaJunky 9 лет назад
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...
@GregorOttmann
@GregorOttmann 9 лет назад
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.
@M4rkuss3n
@M4rkuss3n 8 лет назад
Simply explained, clearly detailed, very concise and really helpful. Thanks!
@contentwriter1044
@contentwriter1044 2 года назад
check this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fOOgrehTZVg.html
@alinconstantingoga
@alinconstantingoga 6 лет назад
The best professor ! Thanks for sharing and keep this good work. Subscribed !
@tpespos
@tpespos 5 лет назад
I didn’t even realize you could do this, this video alone is worth a subscribe
@FlevasGR
@FlevasGR 9 лет назад
This is the best video for Arduino on a breadboard.
@isaiaschrist1
@isaiaschrist1 10 лет назад
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
@user-wt9qr2ee1s
@user-wt9qr2ee1s Год назад
all your video are great, thank you for taking the time to put together these demonstrations
@amalsurendran1984
@amalsurendran1984 6 лет назад
YOU'RE THE MANNNNN. Couldnt figure this one out for weeks..!
@alaozarmg459
@alaozarmg459 8 лет назад
I love the fact that you synced almos every take with the lights on the background with the music itself
@peterhimmelman9241
@peterhimmelman9241 3 года назад
That was so good, I thought it really was sound reactive.
@allanminers1662
@allanminers1662 3 года назад
Thank you for this excellent presentation. This video is one o f the best.Looking forward to more.
@WatchCuriousCat
@WatchCuriousCat 8 лет назад
Thank you. I always learn a lot from your channel.
@LexMc0606
@LexMc0606 5 лет назад
"This is not a FTDI chip, but it does the same thing. But it's BULLSHIT!" LMAO
@PFFF785
@PFFF785 4 года назад
Nice video! Thank you for the information! I like that the video is on point, short and comprehensive! :D
@MarcosFPV
@MarcosFPV 7 лет назад
I must say your videos are always very direct and detailed.
@contentwriter1044
@contentwriter1044 2 года назад
check this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-fOOgrehTZVg.html
@NicholasAarons
@NicholasAarons 7 лет назад
Very Cool Gadget. Keep up the great work. Nick.
@yassinelaassiri7824
@yassinelaassiri7824 8 лет назад
i hope you hit 1 millions subscribers wish you all luck.
@TimothyJohnAguilar
@TimothyJohnAguilar 9 лет назад
That was awesome. Subscribed!
@ArnovSharma
@ArnovSharma 7 лет назад
gawd of electronics THE GREAT SCOTT
@zoubirsantouh2311
@zoubirsantouh2311 10 месяцев назад
always wonderful !
@smarzony
@smarzony 6 лет назад
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.
@linuspauly2380
@linuspauly2380 6 лет назад
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!
@pushpapoojari5907
@pushpapoojari5907 4 года назад
You are really great the greatscoot
@ezeprojects5425
@ezeprojects5425 5 лет назад
once again, you've saved my bacon. Thx.
@dreamlessfull
@dreamlessfull 2 года назад
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!
@TommyBee456
@TommyBee456 7 лет назад
i just wanna know where i can get that "gadget box"
@ahmedmani1051
@ahmedmani1051 7 лет назад
BrainDead Media 3d print it
@moover123
@moover123 7 лет назад
I want to know that too
@suprguy
@suprguy 6 лет назад
search for project box
@TheeCK1357
@TheeCK1357 6 лет назад
BrainDead Media *And here he only came for the gadget box*
@vaterreichenberger
@vaterreichenberger 6 лет назад
Conrad.de
@chandimasamaranayake7544
@chandimasamaranayake7544 Месяц назад
Method 1 & Method 2 are really working , thank you. Please mention how to buy ftdi programmer as shown here.
@TechBuild
@TechBuild 7 лет назад
How can I do the same for ATmega 8?
@sb-rj6yb
@sb-rj6yb 6 лет назад
2:55 got the new way to upload..thanks
@MirzAli
@MirzAli 3 месяца назад
Thanks bro, thats a game changer
@kennyfication88
@kennyfication88 10 лет назад
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 :)
@LuxHack
@LuxHack 2 года назад
Danke, das finde ich richtig geil :)
@teiroberts5330
@teiroberts5330 7 лет назад
Hi @GreatScott i have a question how can i use the I2C protocoll for example a rtc module with the ATmega328p like the i2c pin on the arsuino where are those?
@Nathan-zg5kp
@Nathan-zg5kp 7 лет назад
I binge watch this channel like a Netflix show
@greatscottlab
@greatscottlab 7 лет назад
I like that ;-)
@Ksnieup
@Ksnieup 3 года назад
I like the humor in this
@nozma6615
@nozma6615 7 лет назад
can i use it without reset connection when it upload i will click the rest button it will work??
@lefteristhebuilder6159
@lefteristhebuilder6159 4 года назад
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 :).
@fairpoor
@fairpoor 4 года назад
That's awesome!
@NutScrewGamer
@NutScrewGamer 5 лет назад
Thanks for promoting Malaysia
@ankushdhamija5040
@ankushdhamija5040 4 года назад
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?
@nikhileshk7047
@nikhileshk7047 4 года назад
0:00. I see You got a great musicality too. Keep it up.
@markojojic6223
@markojojic6223 Год назад
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.
@dagoston737
@dagoston737 8 лет назад
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
@daz41262010
@daz41262010 Год назад
great project :)
@iProgramInCpp
@iProgramInCpp 4 года назад
Nice video length!
@gabiruman
@gabiruman 7 лет назад
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?
@jakobkellner6242
@jakobkellner6242 9 лет назад
Thanks for the Video, Scott. Can you please share some sources where to learn ICSP? (Gerne auch auf deutsch) I have an ISP-Programmer laying around and downloaded the Atmel Studio but I have no clue how to find my ATmega. Thanks in common.
@JohnFerrier
@JohnFerrier 5 лет назад
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+?
@anthonymuthungu1319
@anthonymuthungu1319 8 лет назад
Great tutorial.....
@ivanstanojevic1728
@ivanstanojevic1728 7 лет назад
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.
@fede142857
@fede142857 8 лет назад
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?
@Werede
@Werede 8 лет назад
The widest ring is the tolerance ring
@raagamparmar179
@raagamparmar179 3 года назад
@@Werede thanks for this!
@paulcooperartist
@paulcooperartist 3 года назад
never mind :-)
@filipposanzani6653
@filipposanzani6653 7 лет назад
hi, could you make some videos about electronics components like transistors, resistors... to explain how do they work and how should we use them?
@mohamedessamhadid231
@mohamedessamhadid231 4 года назад
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?
@ChristopherJones16
@ChristopherJones16 2 года назад
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?
@TheS1l3ntOne
@TheS1l3ntOne 5 лет назад
Can I use arduino pro mini 3.3v /8MHZ board if I want to use 8MHZ on my standalone board and change 3.3V to 5V on the FTDI board.
@m74w
@m74w 4 года назад
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
@projektowanie3ddruk3d99
@projektowanie3ddruk3d99 3 года назад
Will the atmega328p itself work like an Arduino? Digital / PWM pins and analog pins will work normally?
@himanshupanth6301
@himanshupanth6301 7 лет назад
To power the ATMEGA with 5V....is there some current constraint as well?
@ponchov.9116
@ponchov.9116 7 лет назад
How would you use serial communication in a standalone circuit like this? Or, how would you connect it to a PC through USB?
@janx1763
@janx1763 8 лет назад
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.
@IndikaRatnayake
@IndikaRatnayake 7 лет назад
Thank you for the videos. Do you need to have an external crystal? Or can I use the internal crystal of the Atmega instead?
@greatscottlab
@greatscottlab 7 лет назад
You can use the internal one if you activate it.
@utkarshsharma424
@utkarshsharma424 6 лет назад
GreatScott! ...Will this standalone project also work if we're trying serial communication between arduino and Android.?
@mikewhite735
@mikewhite735 7 лет назад
Why at about 2:44 was the chip pulled off of the prototype board, and plugged into the Uno, while the Uno was on?
@FrankDrebin
@FrankDrebin 7 лет назад
In fact there is nothing what can go wrong in this case, just bad habit..
@utkarshsharma424
@utkarshsharma424 6 лет назад
Will this work for projects in which we are doing serial communication between arduino and Android??
@INGHUSSAMKAMEL
@INGHUSSAMKAMEL 8 лет назад
Thank you for your videos ?i have a question: How can i build the short circuit protection Thanks
@greatscottlab
@greatscottlab 8 лет назад
Easiest way is a fuse
@subhadrakovvuri3323
@subhadrakovvuri3323 7 лет назад
HUSSAM KAMEL ! just use voltage regulator ic lm 7805
@INGHUSSAMKAMEL
@INGHUSSAMKAMEL 7 лет назад
Thanks :)
@morphman86
@morphman86 8 лет назад
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.
@sevdev9844
@sevdev9844 5 лет назад
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.
@formertoddler196
@formertoddler196 7 лет назад
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-vs9ff
@MD-vs9ff 7 лет назад
Erik E. Yes you can. I've had to reprogram ATtiny84s many times for a school project.
@djoudigpl8625
@djoudigpl8625 5 лет назад
hello iam using the red ft232 chip wich has dtr pin i have problem wich is the program stuck at uploading pls help
@ABID5
@ABID5 6 лет назад
Hey Scott! Can you make a space shuttle?
@WilliamWoodAZ
@WilliamWoodAZ 7 лет назад
What project/gadget box did you buy? Link?
@sortsvane
@sortsvane 9 лет назад
OR OR OR OR OR OR OR OR OR use an arduino nano or pro mini (cheaper and easier!) (just suggesting) great video!
@Ivan4es1
@Ivan4es1 4 года назад
Is it possible, to get out native ATMEGA328 chip from Arduino Uno, put in new clean ATMEGA328 chip with loader, program it, then put it out and use separatly as shown on video? Simply - using Arduino Uno as programer for other ATMEGA328?
@mtalhakhalid1679
@mtalhakhalid1679 3 года назад
Wonderfull explaned
@ih8tusernam3s
@ih8tusernam3s 5 лет назад
Thanks!
@SibertD
@SibertD 10 лет назад
I really like the gadget box, could you tell me where I could find those?
@greatscottlab
@greatscottlab 10 лет назад
SibertD www.ebay.com/itm/Universal-Kunststoff-Gehause-Plastic-Case-mit-Lochrasterplatine-PCB-A117-/251543434650?
@TechBuild
@TechBuild 7 лет назад
How can I do the same for ATmega 8a microcontroller ?
@widadiamin5404
@widadiamin5404 7 лет назад
Merci beaucoup
@abhiramcd
@abhiramcd 3 года назад
2:20 nailed it 😂❤️🔥
@zuhayrtaurobally5981
@zuhayrtaurobally5981 8 лет назад
ur amazing :D
@RS-kx9rp
@RS-kx9rp 5 лет назад
I will try as you do,thanks
@skyforce6
@skyforce6 4 года назад
What about pullup resistors, are those on the board, or part of the chip itself?
@magicianofelectronics951
@magicianofelectronics951 3 года назад
With reset?
@almoglavi8737
@almoglavi8737 2 года назад
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?
@husamhsuam
@husamhsuam 7 лет назад
what does this code mean ( w10647Asz113 ) ???? i read it on a pcb board under the ATMEGA328P-PU
@sonnguyenxuan685
@sonnguyenxuan685 6 лет назад
i'm working on atmega328p project. i use fast pwm at the 16 bit timer. so i want to output 2 pwm at OCnA and OCnB. both of them have a same top value and same OCRnA and OCRnB. does anyone how i can toggle OCnA and then OCnB repeatedly
@sushantasarkar123
@sushantasarkar123 Год назад
What is problem in my Atmega328P-U microcontroller. I am using external 16mhz crystal . I am using this setting 0xFF, 0xDE, 0xFD, 0xC0 and write by avrdude. my project stuck or hang after some hour... how to solve my problem...plz tell me
@shivakumar-lv6wr
@shivakumar-lv6wr 7 лет назад
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?.
@mjtsquared
@mjtsquared 7 лет назад
as long as you know your project it's really easy
@lostone1698
@lostone1698 6 лет назад
He uses easyEDA as schematic and PCB layout maker
@dhansantv395
@dhansantv395 8 лет назад
am mr.great scott sir im in Philippines rx and tx ics is a bit hard to find can you please help me on coding atmega 328 one for decoder and one for encoder?? how many io will it be and how far will it go on a standard rf modules?? thanks alot :) more ideas :)
@onkel_joerg
@onkel_joerg 7 лет назад
do you have a link for the gadget-box?
@indianplans
@indianplans 6 лет назад
What is the ftdi you shown at 3:15 will you please share this product link
@adityakumarraj827
@adityakumarraj827 3 года назад
I have 328p-u so I'm facing 1e 95 0f problem.while uploading (without crystel) .... . Can you help me? . . . (i ordered crystal for now.... ) . What is the problem plese explain it.. And tell us if any solution available
@muhammadaarif3019
@muhammadaarif3019 5 лет назад
reset to pin1..rx to pin 2...and tx to pin 3...I guess Vcc and Gnd should also be connected.
@azmrblack
@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.
@Fred_Costa
@Fred_Costa 5 лет назад
Are there any advantages of using this versus a straight up arduino nano? (apart from the sligtly smaller size)
@Kowalski301
@Kowalski301 5 лет назад
Or Pro Mini... And no, not really. The benefit of doing it like this, is only that it _look_ more professional and streamlined, and many will enjoy the fact that you built it yourself and enjoy the time spent doing it. But for pretty much any hobby project using a prototype board like this, a nano or mini will be better, cheaper (or as cheap) and faster to set up. And if you were making a real product for sale, you would have a small SMD microcontroller integrated in a even smaller, professional PCB anyway.
@blackhatgaming5497
@blackhatgaming5497 3 года назад
I am a bit too late :(. Hope you reply.... Can I control a relay with this standalone microcontroller?
@Geekswebsite
@Geekswebsite 3 года назад
yes, you can control a 5v relay
@gergobor4143
@gergobor4143 3 года назад
Where can I finde how big capacitance is need for the clock crystal?
@dronemansk2121
@dronemansk2121 6 лет назад
3:00 can this method be used for ICSP?
@ojasojas3989
@ojasojas3989 8 лет назад
But we can also use arduino nano to build led color organ which can fit in the gadget box
@adityakumarraj827
@adityakumarraj827 3 года назад
What exectly 22pf does?? And can i use another value. If no why?? . If yes what is the range?
@Geekswebsite
@Geekswebsite 3 года назад
Those are used with the 16Mhz crystal oscillator, you can use a capacitor between 18pf to 22pf.
@baseandtrance1110
@baseandtrance1110 6 лет назад
Can you tell me how much amps to supply with 5v to atmega if I want to connect it to other source than Arduino such as wall charger or maybe a 12v battery?
@baseandtrance1110
@baseandtrance1110 6 лет назад
Please reply
@Hunar1997
@Hunar1997 6 лет назад
I have a chinese arduino .. and its chip is very tightly mounted .. can i remove it safely?
Далее
Electronic Basics #5: How to Multiplex
4:54
Просмотров 565 тыс.
Каха заблудился в горах
00:57
Просмотров 921 тыс.
QVZ PREMYER LIGA
00:18
Просмотров 1,9 млн
6 Horribly Common PCB Design Mistakes
10:40
Просмотров 182 тыс.
I built my own computer. by hand.
13:03
Просмотров 1,1 млн