Arduino Uno (ATMEGA328P) on a breadboard Tutorial DIY project. Easy guide.
HTML-код
- Опубликовано: 10 сен 2024
- Arduino Uno (ATMEGA328P) on a breadboard Tutorial DIY project. Easy guide.
In this video, we are going to build an Arduino Uno clone in a breadboard using only 5 parts.
💻 Code & Parts: educ8s.tv/ardui...
Want to learn to code?
👨💻 Check my new RUclips channel: bit.ly/3tku2n0
For everyone who cannot get it running because the device is not recognized: 1. You should pull up the reset with another resistor. 2nd.pins 20 and 22 need to be connected as well - they are GND and VSS. 3rd. You need some drivers for the FTDI. 4th. Make sure the chip is properly placed in the board - mine wasn't making a connection.
Why is his running without reset pulled high?
Where can I download these drivers?
Siddharth and I were working on the DIY board for arduino uno and were not able to upload to the chip. On seeing Your video we saw that we had not connected the DTR to reset pin through a capacitor. After doing it the upload went on well.Please accept our sincere thanks for uploading this video to RUclips which solved our uploading problem in our DIY Arduino board.
Hey nice job! I finally got this easy to do memorized. My other standalone s were allot more complicated I didn't use the serial but rather the Ardunio UNO and removed the chip.
Thanks, great vid.. I found the best and easiest way to burn the bootloader to a blank chip is to use any Arduino board (even clones and counterfeit boards) in ISP mode. There's a sketch in the examples folder called ArduinoISP that does it all.
At 7:33 it says that Arduino Pro Mini takes 3mA when sleeping, but according my measurements it only takes 0.14mA. Maybe you confused with Pro Micro (the one with USB port)? When the power LED is removed from Pro Mini, it takes only 0.05mA, so similar to naked ATMega328P on a breadboard. However, once it wakes up, it only takes around 4mA, and that is 10 times less than what your multimeter is showing. I guess it's because the microcontroller on Pro Mini is so small, so it requires less power? I don't know. But it seems to me that using Pro Mini 3.3V with power LED removed is actually more power efficient than what you are showing in this video. Maybe you can check my numbers?
the funny thing is that you didn't need to buy that usb converter, just plug the atmega328p to a socket of another Arduino board and program it temporarily
hello
i do exactly the same circuit with an atmega 328P from an arduino board with the blink led sketch on it... on the breadbord the led does not blink ... why???
the crystal 16Mhz and 22nF capacitors from arduino shop.
i try 2 times with different breadfboard and 1 with soldering print.
an idea please .
Aside from the power supply and all that, with this you can do everything as if you’re using the original board? I need to know :(
Cool, precise, educating videos here people!! [Αδερφέ είσαι ωραίος! Σε ευχαριστώ.]
Ωππ ελληνας
Thats weird... my multimeter says my barebones arduino with sleep library uses only 6.7uA, whichi is 0.0067mA, yours was 0.06-0.07, which is 10 times more than my multimeter says.. thats weird
if run like the coding, 8 sec sleep (0.06mA), and 1 sec on (36mA), so the total work time is 9 sec, the battery is 2400 mAh, and the calculate is :
= {2400 ÷ (((8 x 0.06) ÷ 9) + ((1 x 36) ÷ 9)))}
= {2400 ÷ ((0.48 ÷ 9) + (36 ÷ 9))}
= 2400 ÷ (0.0534 + 4)
= 2400 ÷ 4.0534
= 592 hours.
592 ÷ 24 = 24.6 Days.
CMIIW
The main reason is learning is fun....
Arduino UNO R3 328: When you have programmed with usb afterwards you want to avoid usb completely! But I have to plug in usb & program again what should I do to keep it saved forever?
Thank You Sir :)
You realy helped me out on this one :)
Thank you for this great video. It really helped me. Bravo.
Great job. Thank you for showing easy way to make it.
The crystal is missing from the parts list, to suit the 22pf capacitors the crystal needs to be 16mhz with a 10pf load capacitance. You can use a 20pf crystal but the 2 capacitors need to be 36pf.
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 have made everything correct, but when i supply my circuit the led doesn't blinking, my atmega328p is from my original arduino board, any thoughts?
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
THANK YOU!!!!
Is it possible to work without the pF capacitors and the external 16Mhz? ie only with the built-in 8Mhz crystal? Thank you.
Hi, I was making your project when I came across a error that the Usb was not responding and I was using a CP2102 USB-TTL board 2.0 pls help me fast, Thank you
Hello can I use 47 uf capacitor
Thanks for the tutorial! Is it possible to just download the sketch when the chip is still on the arduino and then just take it off and put it on the bread board for your project? --And then just stick a new chip back on the arduino so youc ould do it again for multiple projects? thank you
Yes you can do that as well!
Είσαι μεγάλος. Μπράβο!
completely agree man
Loved the video but could use some help if possible. Trouble uploading. Am using an ATMEGA328P-PU chip with bootloader. My usb adapter is 5V 3.3V FT232RL USB to Serial Adapter Download Cable module for Arduino. Re code, couldn't find a library called LowPower as shown in the code. I found one from github called Low-Power-master and loaded that into the IDE but I left the line of code #include "LowPower.h" the same. Compiles ok but if I change it to #include "Low-Power-master" I get an error. Confirmed "Low-Power-master" was loaded into the IDE library.When I plug the circuit into PC via USB I get the following under tools:Board: "Arduino Nano"Processor: "ATmega328"Port: "Com8"I verified via the Device Manager Com8 shows up correctly.After it compiles, the "uploading" message stays on for about a minute then I get the "Problem uploading to board" message. I tried searching online for the same issue but having trouble finding something that helps. I really would like to find a solution as I'm working on a real project and would like to use a low power setup if possible.All components come from a kit.I appreciate you help. Thanks.
+Jaime Crosas Hello, please if you are using a breadboard, try to remove one or both capacitors from the breadboard. Sometimes breaboard pins have their own capacitance and make the circuit not to work. Check our video, Arduino 1 year on batteries for more details.
hello ..do you have a vid where you show how to upload the bootloader to that mcu?... awesome
what does this code mean ( w10647Asz113 ) ???? i read it on a pcb board under the ATMEGA328P-PU
Bootloaded Atmega328 www.amazon.com/dp/B00PO0WV12/ref=cm_sw_r_cp_taa_ZF71ybKRPK1BE
Q90 New Basic FTDI www.amazon.com/dp/B01JRTG5OO/ref=cm_sw_r_cp_taa_oF71yb5ZJE2EN
if you haven't already figured out how to program get the two above in the link. you just connect everything and the ftdi board and connect it your pc visa usb. and upload sketches like you are uploading it to an arduino board.
A bare-bare bone ATmega328 you could programm with an ArduinoISP
wow, thats amazing, by far the best video I've seen so far,but I have one question:
I have a small project in mind but unfortunately I can not use a full Arduino
due to the size where it will be.
I could for example fit Atmega328 on an IC socket and weld everything I
needed him? so I could to minimize the maximum Arduino size for my project.
+DavidsonQWERTY Thanks for your nice words! Check this out : ruclips.net/video/yMzRi4AAvV4/видео.html
+educ8s.tv this is exactly what I was looking for, I'm happy to know that's possible, thank you so much.
is the circuit is short proof nd it can able to communicate with serial devices like HC-05 bt module
I tried copy your arduino so my led on digital 13 is off no blink.Can you help me please???
How can I program my Atmega328p without an Arduino board? I am looking for a serial diy programmer. The atmega already has the arduino bootloader
I want to do the same thing. Did you find an answer?
you have to buy a "pic programmer". 14 bucks
sparkfun pocket programmer. It is extremely reliable and I use it all the time. You can't use it to program large chips like the armega1284 or 2560. Great for beginners.
Eric Min can it program atmega32 also?
Yes. The Sparkfun Pocket Programmer can program any AVR chip that has 64kb or less flash memory.
Thank you very much Sir for this simple informative video...
Thanks Sir .
I want to learn .
Whats the point of crystal and capacitor? Can you someone explain to me? Would the chip work without them?
It's for the clock speed. The chip does have a built in 8Mz clock, but a chip pre-flashed with an uno bootloader will usually be configured to run with only the external. If you was to eliminate it, you can use the uno as an ISP and flash your chip without it (needs an updated boards.txt file), but it will run at only half speed. For some things the slower speed will be noticeable, for others it wont. Doing the internal clock also means you can not swap the chip with that of the uno to easily flash a new sketch to your project (socket on project required).
The 16mhz crystal is for the speed of your atmega.
Your atmega have a built in 8mhz clock.
But it's better to use external 16mhz crystal.
The capacitors job is to isolate the crystal from the ground so the crystal doesn't get damaged.
Thank you very much
allot of great information in this video thank you for sharing
Thank you again for such a clear and detailed tutorial, The only problem I had was that it would not upload with the 100nf capacitor, I had to place a 10k resistor from pin 1 to 5v, tried other capacitors and different values but the same result; why do you think this is happening, again with thanks.
Excellent Tutor....
Thank you this video was extremely helpful, i am new to arduinos. However I wanna know If I would be able to extend this project and add things like a display, and clock module directly to this schematic? Would this function the exact same way a regular arduino uno would?
Hi. I have a UNO with a rx and other tx modules that needs 9V. How could I supply 9V in this breadboard ATMEGA??
You can use crone battery. But doesn’t arduino run on 5v? Stabilator surely can convert 9v into 5v, but it heats up like hell
Very useful…thanks!
It doesn't upload the code for me although I do everything exactly like in the video. It tells me that it cannot open the device, cannot find the specified file.
Hi, in my case it wasn't working because this schematic miss a 10 kOhm resitor to pull up the reset pin.
saludos. como seria el montaje del mega328p en protoboard para un servo.gracias. ya tengo la programación
Please can you tell how to measure power consumption @7:00 ? I cant see the connections to multimeter.
hi is there a way to change the value of a Variable in a Void Loop, because I try in the Void Loop I try if (X==0){int X = 1;} but it did not change the value of X even the condition is true it remain X=0.
if (X == 0) X = 1; by using the 'int' declaration you are effectively resetting X to 0 by default.
You can post Multimeter mount photo to check the current consumption? In measuring realized that met minimum current 6,4mA
Can i program it first using arduino and use it without any external components
sir,what is the resistor value that you have used
do you need to use the microusb to serial component?
if i did not put the 100nf at pin 1 does it okay???
Dear Greek , I am Greek too. I tried so many times over a week now and I cannot make happen. I really need help please. Problem uploading to board.and I have used exactly the same boards and FDTI board. Can you help me please? Kind regards Demetris
Sir by which software you load the program
Very interesting. Exactly what I want to do. Is the serial monitor available here? Thanks.
Hey, great video. Thank you are your videos.
I've already ordered the atmega , which comes with a socket and crystal. I have to order the caps seperatley, but those are cheap.
Will PWM and analogs also work?? There is a large capacitor on the Arduino, it is not here. It would be nice to do your project. Bravo
Thankyou for sticker tip
Oh this is so cool. I see you're using a low power library. I've got all the parts to make my own Arduino except for the crystals I'm just waiting for them. I like the stickers you made that's handy! I'm going to print them up! :-) Question, just out of curiosity, the Mastech MS8268 can test DC current without the cables connected? It doesn't say that in the manual.
hello, you are right the multimeter is connected with wires to the circuit. It is not visible clearly in the video..
Thanks for the info :-) I really like those stickers I'm going to wait to get some sticker paper so I can print them out. That is way cool :-).... Plus I like the idea that the current basically drops to just about nothing when the LED is off. That's based off of the low power library that you're using?
Dog Rox Yes, thanks to the low power library we can easily put arduino to sleep. That can make our projects to run on batteries for a long time!
please make tutorial for bootloading atmega328 to use internal 8Mhz and explain bod
Is it possible to trigger atmega 328p with 3.3V ?
Super video bro 🎉
What is the value of the resistor anyways? i think it's not mentioned in this video.
@@andoui1649 the resistor value matters. Depending on the LED parameters for Vf and If(Forward Voltage and Forward Current) you can calculate it. R=(Vcc - Vf)/If. Given for a Red LED Vf=1,8V, and If=10mA, R=(5V-1,8V)/0,01A -> R=320 Ohm
have you tried to burn arduino bootloader in to an Atmega8A-PU?
You can only program this once if you dont burn a bootloader? If you just upload any sketch it will work, but you wont be able to upload any other sketch :/
You are mistaken, without a bootloader it is impossible to upload a sketch this way.
Thank you!
Is there a video for the actual programming?
Nadezhda Dimitrova Right? The actual difficult part like what to choose programmer wise/ how to use the IDE. The pinout is easy.
how do I connect Ch340 uab to ttl converter?
Thanks man !!!
Thank you sir very good video can you tell please what would be pin number for 5v in Arduino board
Thanks !
Very nice tutorial
Hello, Great video but I have a couple questions.
First what size resistor is used for the project?
Next I thought the atmega328 had to use between 3.3 and 5.5v but you appear to use 4 batteries and at 1.5v each is 6v total.
So am I wrong or are you using rechargeable batteries?
Thanks in advance
Gren
rechargeable AA batteries never make it up to 1.5V, they cap at 1.2V, that is why he says 4x 1.2 = 4.8V < 5V = safe
Tank you.
Awesome sir I'm subscribed😍
how to add magnet sensor in this project ? or PIR sensor?
why my arduino port did not detect ???
So where is the link for the sticker? I want to print some. Thanks.
educ8s.tv/wp-content/uploads/2015/02/BareArduino.zip
What board did you select in Arduino IDE?
UNO but you must upload to it Bootloader to use Arduino IDE through another Arduino board
Rodolfo Robasto As of this post, you use the Nano
Thanks allot 😊
Do you need to upload the firmware fisrst?
I have a Arduino Uno. Is it possible to upload my Sketch to the Uno, then remove the Atmega328 from the Uno and connect it to the breadboard like you did? Is this a possible way to install my sketches?
+Vemund Fredriksen Yes, if you watch some other videos that I use the ATmega chip, that's exactly what I do. Its easier and faster than to program the chip with the FTDI programmer.
+Vemund Fredriksen Yes, if you watch some other videos that I use the ATmega chip, that's exactly what I do. Its easier and faster than to program the chip with the FTDI programmer.
Thank you! Great video by the way, easy to follow along. Very informative! :D
Nice to learn
Hi, I bought everything you noted below the video and did what you did but it did not work. What did I do wrong? Can you help me?
1. I am using mac.
2. Arduino Tools -> Board -> Arduino Uno
3. Arduino Tools -> Port -> /dev/tty.usbserial-A9EXLZRR
4. Arduino Tools -> Programmer -> AVRISP mkll
I tried with Arduino (v1.0, v1.0.6, v.1.0, v1.5.6, v1.6)
Error:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Problem uploading to board. See www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
***** I faced similar problems with that, when the connection with the arduino was not good. If the wires were connected the wrong way I was getting the same message. Are the 2 leds on the FTDI converter on or off when connecting to the computer?
Educ8s.com hi i have the same problem
and yes, when i connect to de computer the 2 leds flash and stay off.
***** I am facing pretty much the same problem. I can see that my FTDI (Sparkfun Basic) is trying to send something, but after like ten blinks on FTDI, ARDUINO IDE stops and the ATmega328P-PU blinks once with LED connected to pin 19. Not sure what is actually happening, why ATmega328 blinks once after ARDUINO IDE stops trying. I am using Linux and the Sparkfun Basic FTDI seems to work. Been a bit frustrating three hours now :) Have tried different computer, cables etc. I bought the blank ATmega328P-PU, so I am simply trying to upload bootloader.
What I noticed in my second video with the Bare Arduino, is that some breadboard pins have internal capacitance. So, the reason that in your case it does not work may be that extra capacitance. Try to remove the small capacitors at the crystal, one at a time and see if it works that way...
Educ8s.com No luck so far. I may have to order another crystal and then try again.
Could you please supply a PCB Layout? Awesome!
Can I use atmega2560 just like this?
I see so many people claiming to have made an Arduino on a bread board when all they done is built an ATmega driver and flashed it with the uno boot loader
so making 15 uno clones for a few dollars a piece doesn't make sense to you
This is everthing OK, but when you need analoag inputs, what then? Then you have a serius problem!
Sir Can you help me
Im high school student
I really like electronic
.
.ive a problem
I have a color sensor i want to connect this to microcontroller without wiring (wireless) so how can i connect?
Plz help sir
First of all read it's datasheet,
What you need?
(Filling requirements)
So for what are the capacitors? You just did everything, no explanation at all :(
@Christian Weissmuller thank you!!
How do you program the chip?
I am trying to do the same thing...Did you find help?
Mark II You must program it from an arduino board first then place it on the bread board with the necessary components.
You must upload to it the bootloader through another Arduino using it as ISP you can find about it in Inscrutables website
how to load bootloader on the atmega328
Can we build something similar using ATTiny2313??
Thx sir.
Which value of the resistor do you used with LED
220 ohms
Super sir
What is the URL for the ATMEGA sticker (w/ pin labels)?
Allan Fay There is link in the description of the video.