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.
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?
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...
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.
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
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!
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 :).
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?
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!
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.
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.
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.
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.
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.
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 :)
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 !
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?.
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.
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...
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?
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
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?
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?
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?
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+?
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?
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?
Hi, as you know, a ftdi converts a USB signal into a serial signal. by connecting to a "powered serial Port (a PS2 connector as a power jack)," it did not work, the problem comes from the DTR pin but I do not know how to fix it. thanks Nicolas
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?
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
Just one question: Do I have to use the original ATmega328p from the Arduino? Or does it even work if I buy some of them on the Internet? So I can build more than one circuit without destroying the other one I just finished?
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?
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.
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.
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.
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.
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...
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?
Man, i reverse the voltage of atmega. the circuit was ready in beardboard. all 5V to 5v column, Ground to ground column. But i didn't notice the colour cable of column 5v and ground, When i was uploading, the IDE said the programmer not responding. The i realize it, put the right cable. Reupload the coding and every still work fine, awesome!
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
GreatScott! Thx for answer ... may I know what exactly would happened? (Im not totaly sure but i was living in belief I saw somewhere tutorial how program arduino chip using existing arduino without detaching chip from arduino board - im little afraid to do that because i dont want to damage that chip or board ... it seems atached realy well :)) It will load code to both or it will write some kind of error like when we try to write code with BT module atached? EDIT: I bought few months ago for some reason (im not totaly sure why now but it will came to me as i would need it again :D ) USB to Rx, TX, ... cable - is there some way how to use it for programming arduino chip? PS: Sorry for my english, its not my primary language :)
Jan Havel Well you can just try it out yourself. It will not damage any components. I think that none of the µC will get programmed successfully. Or maybe just the one on the board.
Ok, thx for answer, im waiting for one cheap "china" arduino copy to arive so i will try it with it but i hope you are right and it cant damage any of components or do something other mess like damage bootlader or something :).
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.
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.
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?
Other videos/articles make this look so difficult, but as usual, GreatScott! made a good quality, simple, easy to understand video
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.
I did not realize that the Arduino IDE can do this. Thanks for telling me ;-)
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?
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.
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...
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.
Simply explained, clearly detailed, very concise and really helpful. Thanks!
check this ua-cam.com/video/fOOgrehTZVg/v-deo.html
This is the best video for Arduino on a breadboard.
I love the fact that you synced almos every take with the lights on the background with the music itself
That was so good, I thought it really was sound reactive.
I didn’t even realize you could do this, this video alone is worth a subscribe
"This is not a FTDI chip, but it does the same thing. But it's BULLSHIT!"
LMAO
The best professor ! Thanks for sharing and keep this good work. Subscribed !
I must say your videos are always very direct and detailed.
check this ua-cam.com/video/fOOgrehTZVg/v-deo.html
i just wanna know where i can get that "gadget box"
BrainDead Media 3d print it
I want to know that too
search for project box
Conrad.de
Or search for a "Project Box"
i hope you hit 1 millions subscribers wish you all luck.
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
YOU'RE THE MANNNNN. Couldnt figure this one out for weeks..!
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!
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 :).
Thank you for this excellent presentation.
This video is one o f the best.Looking forward to more.
all your video are great, thank you for taking the time to put together these demonstrations
Thank you. I always learn a lot from your channel.
Nice video! Thank you for the information! I like that the video is on point, short and comprehensive! :D
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?
The widest ring is the tolerance ring
@@Werede thanks for this!
never mind :-)
I binge watch this channel like a Netflix show
I like that ;-)
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!
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.
Very Cool Gadget. Keep up the great work. Nick.
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.
Thank you for your videos
?i have a question: How can i build the short circuit protection
Thanks
Easiest way is a fuse
HUSSAM KAMEL ! just use voltage regulator ic lm 7805
Thanks :)
OR OR OR OR OR OR OR OR OR
use an arduino nano or pro mini (cheaper and easier!)
(just suggesting)
great video!
Why at about 2:44 was the chip pulled off of the prototype board, and plugged into the Uno, while the Uno was on?
In fact there is nothing what can go wrong in this case, just bad habit..
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.
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.
Method 1 & Method 2 are really working , thank you. Please mention how to buy ftdi programmer as shown here.
I am a bit too late :(.
Hope you reply....
Can I control a relay with this standalone microcontroller?
yes, you can control a 5v relay
2:55 got the new way to upload..thanks
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.
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 :)
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 !
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
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?.
as long as you know your project it's really easy
He uses easyEDA as schematic and PCB layout maker
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.
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...
vodka!
definitely
reset to pin1..rx to pin 2...and tx to pin 3...I guess Vcc and Gnd should also be connected.
hi, could you make some videos about electronics components like transistors, resistors... to explain how do they work and how should we use them?
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?
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
@@Evi3142 and note that too, pins bend.
gawd of electronics THE GREAT SCOTT
0:00. I see You got a great musicality too. Keep it up.
I like the humor in this
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?
Erik E. Yes you can. I've had to reprogram ATtiny84s many times for a school project.
always wonderful !
You are really great the greatscoot
That was awesome. Subscribed!
Thanks for promoting Malaysia
What about pullup resistors, are those on the board, or part of the chip itself?
With reset?
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?
once again, you've saved my bacon. Thx.
Thank you for the videos. Do you need to have an external crystal? Or can I use the internal crystal of the Atmega instead?
You can use the internal one if you activate it.
GreatScott! ...Will this standalone project also work if we're trying serial communication between arduino and Android.?
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?
What exectly 22pf does??
And can i use another value.
If no why??
.
If yes what is the range?
Those are used with the 16Mhz crystal oscillator, you can use a capacitor between 18pf to 22pf.
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+?
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?
dude, he is not going to read this comment. this was 6 years ago
Datasheet explains everything
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?
Why not use an Arduino Pro Mini (that fits nicely inside your gadget box)?
Probably because he would like a reason to make this video and share with us but people always have some stupid questions.
Will the atmega328p itself work like an Arduino? Digital / PWM pins and analog pins will work normally?
Hi, as you know, a ftdi converts a USB signal into a serial signal.
by connecting to a "powered serial Port (a PS2 connector as a power jack)," it did not work, the problem comes from the DTR pin but I do not know how to fix it.
thanks
Nicolas
Thx ^^ ¤_¤
can i use it without reset connection when it upload i will click the rest button it will work??
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?
I really like the gadget box, could you tell me where I could find those?
SibertD www.ebay.com/itm/Universal-Kunststoff-Gehause-Plastic-Case-mit-Lochrasterplatine-PCB-A117-/251543434650?
hello
iam using the red ft232 chip wich has dtr pin i have problem wich is the program stuck at uploading
pls help
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
But we can also use arduino nano to build led color organ which can fit in the gadget box
Just one question: Do I have to use the original ATmega328p from the Arduino? Or does it even work if I buy some of them on the Internet? So I can build more than one circuit without destroying the other one I just finished?
yes
You can buy then, and some even come with the arduino bootloader, but most of the time you'll have to upload the bootloader yourself
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.
Nice video length!
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?
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?
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.
check this ua-cam.com/video/fOOgrehTZVg/v-deo.html
How would you use serial communication in a standalone circuit like this? Or, how would you connect it to a PC through USB?
Thanks bro, thats a game changer
To power the ATMEGA with 5V....is there some current constraint as well?
Thanks for awesome videos
How do i use arduino that has non-removeable atmega328?
uilsbat arslan use it on the board where it is
Just break it off the board!
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.
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
So what is the difference of using ICSP and just using an USB to serial converter?
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.
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.
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...
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!! ?
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?
what does this code mean ( w10647Asz113 ) ???? i read it on a pcb board under the ATMEGA328P-PU
Man, i reverse the voltage of atmega. the circuit was ready in beardboard. all 5V to 5v column, Ground to ground column. But i didn't notice the colour cable of column 5v and ground,
When i was uploading, the IDE said the programmer not responding. The i realize it, put the right cable. Reupload the coding and every still work fine, awesome!
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
Hey Scott! Can you make a space shuttle?
You can program 328p using Arduino and without programmer device, thank you
Thx for vid but why in second case - programming trought existing arduino board needs arduino board chip be removed?
Jan Havel It would interfere with one another.
GreatScott! Thx for answer ... may I know what exactly would happened? (Im not totaly sure but i was living in belief I saw somewhere tutorial how program arduino chip using existing arduino without detaching chip from arduino board - im little afraid to do that because i dont want to damage that chip or board ... it seems atached realy well :)) It will load code to both or it will write some kind of error like when we try to write code with BT module atached?
EDIT: I bought few months ago for some reason (im not totaly sure why now but it will came to me as i would need it again :D ) USB to Rx, TX, ... cable - is there some way how to use it for programming arduino chip?
PS: Sorry for my english, its not my primary language :)
Jan Havel
Well you can just try it out yourself. It will not damage any components. I think that none of the µC will get programmed successfully. Or maybe just the one on the board.
Ok, thx for answer, im waiting for one cheap "china" arduino copy to arive so i will try it with it but i hope you are right and it cant damage any of components or do something other mess like damage bootlader or something :).
Where can I finde how big capacitance is need for the clock crystal?
Are there any advantages of using this versus a straight up arduino nano? (apart from the sligtly smaller size)
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.
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.
TheDashius rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&pub=5575101368&toolid=10001&campid=5337582279&customid=&icep_item=251874908553&ipn=psmain&icep_vectorid=229466&kwid=902099&mtid=824&kw=lg
Thanks :D
I've been studying electronics and discovered an awesome website at Gregs Electro Blog (google it if you are interested)
2:20 nailed it 😂❤️🔥
That's awesome!
Will this work for projects in which we are doing serial communication between arduino and Android??
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?
Please reply
@1:21 One of the 22pf capacitors has a sweepover.
I would have used the Pro Micro, which is quite compact.