Programming ATmega328p Using USB to TTL

  Рет қаралды 123,463

BasselTech

BasselTech

Күн бұрын

Пікірлер: 123
@monahanz
@monahanz 6 жыл бұрын
Only one that worked for me! Tried several videos before this one. Great work thanks John
@BasselTech
@BasselTech 6 жыл бұрын
Thank you sir! I am glad you finally figured out a solution. Have a great day! :-)
@puspamadak
@puspamadak 4 жыл бұрын
Thanks a lot. Besides the practical demonstration, you also explained the proper connections. With this help, I got my Atmega328p chip to work.
@demetriosdemetriou1114
@demetriosdemetriou1114 7 жыл бұрын
REALLY YOU ARE THE BEST OF ALL PROGRAMMERS, AFTER ONE WEEK GETTING TIRED I HAVE SUCCEED TO PROGRAM THE AT 328 FORM THE FIRST TIME, NICE WEBSITE TOO GOD BLESS YOU
@BasselTech
@BasselTech 7 жыл бұрын
Thank you sir, I'm really glad you found a solution. Stay tuned for more. Have a great day! :-)
@muhammadafzalkhanqureshi3735
@muhammadafzalkhanqureshi3735 6 жыл бұрын
agree
@JasonRobards2
@JasonRobards2 4 жыл бұрын
2020, thanks John. Arduino said to use a 0.1µF, but your 10µF did the trick. Here, have some algorithm pleasing engagement.
@lethong8820
@lethong8820 5 жыл бұрын
2019, great work, thanks John. I was so frustrated before watching this video
@BasselTech
@BasselTech 4 жыл бұрын
Thank you! Stay tuned for more! :-)
@demetriosdemetriou1114
@demetriosdemetriou1114 7 жыл бұрын
YES REALLY YOU ARE THE BEST OF ALL WHY? TO PROGRAM AND SETUP YOUR VIDEO IT WORKED FROM THE FIRST NO PROBLEM. ONE WEEK NOW I AM TRYING THE OTHERS FOR A WEEK TO PROGRAM THE ATTINY 2313 AND STILL I HAVE FUTURE TO SUCCEED. GOD BLESS YOU
@BasselTech
@BasselTech 7 жыл бұрын
Thank you sir, I really do appreciate your nice words, and this is what gives me motivation to do more tutorials. If you have any question at anytime please feel free to comment on any of my videos or contact me at my email: admin@basseltech.com Thank you so much! Have a nice day! :-)
@yf6595
@yf6595 5 жыл бұрын
THANK YOU! It worked on first try, thanks for your tutorial. Subscribed, liked and shared!
@BasselTech
@BasselTech 4 жыл бұрын
Thank you! Stay tuned for more! :-)
@manmangy
@manmangy 3 жыл бұрын
Good One. Very Good. Thank you for not playing horrible background music like others
@GeoffLord
@GeoffLord 4 жыл бұрын
Great tutorial, i hope you make more, that was really educational and has taken my knowledge to another level... Thank you.
@BasselTech
@BasselTech 4 жыл бұрын
Thank you, Geoff! I'm glad you enjoyed it! :-)
@saitamapreetsingh3057
@saitamapreetsingh3057 2 жыл бұрын
Thank you Sir ! You are great ! Love from India 😍
@BasselTech
@BasselTech Жыл бұрын
Thank you so much! Glad it helped! :-)
@zanchesdelamancha
@zanchesdelamancha 6 жыл бұрын
Excellent tutorial! Keep up the good work. Subscribed.
@BasselTech
@BasselTech 6 жыл бұрын
Thank you sir! Have a great day! :-)
@pierpa_76pierpaolo
@pierpa_76pierpaolo 6 ай бұрын
I am interested in learning some concepts to integrate IC programming function (e.g. an Atmega328p etc...) into different pcb's via 'induction!!! What do you recommend? Thank you very much.
@aberateklehaimanot9804
@aberateklehaimanot9804 4 жыл бұрын
superb explanation,thanks buddy.
@BasselTech
@BasselTech 4 жыл бұрын
Hi Abera, thank you for your sweet words! Wish you all the best! :-)
@BOBANDERSON5150
@BOBANDERSON5150 7 жыл бұрын
Excellent tutorial. Thanks for the video!
@BasselTech
@BasselTech 7 жыл бұрын
+BOB ANDERSON You're welcome sir, more are coming soon. Have a great day! :-)
@BOBANDERSON5150
@BOBANDERSON5150 7 жыл бұрын
Subscribed and added your site to my Favorite. Keep up the AWESOME WORK!
@philipslater5015
@philipslater5015 4 жыл бұрын
You need a brief explanation why you are doing it the way you do. By that, I mean you are uploading a sketch/program without using a bootloader. Adding a bootloader as used by Arduino Uno for example, is a totally different process. And, no mention of which programmer to use from the Tools tab. I can see you have one selected, but you need to say why instead of skipping over it. Otherwise, a good presentation
@BasselTech
@BasselTech 4 жыл бұрын
Thank you, Philip, for your comment. I really appreciate the advice. Wish you all the best! :-)
@JasonRobards2
@JasonRobards2 4 жыл бұрын
apparentlt the programmer isn't used during a regular download.
@valentinabastidamontiel1507
@valentinabastidamontiel1507 3 жыл бұрын
Hi! Does this work with the internal clock of the ATmega328p only? Do yo know what changes should be made for it to work?
@nicoteves1304
@nicoteves1304 6 жыл бұрын
Great tutorial! I have a question though. Is there an explanation or computation on how you come up with the values of the capacitor,resistor, crystal used?
@BasselTech
@BasselTech 6 жыл бұрын
Dear sir, thank you a lot for your comment. The values of components used are based on the standard values provided by Arduino's website: www.arduino.cc/en/Main/Standalone However, if you're interested to know more about the maximum and minimum values for a crystal of a micro-controller chip, you can check its datasheet. ATmega328p-pu Datasheet: www.alldatasheet.com/datasheet-pdf/pdf/392289/ATMEL/ATMEGA328P-PU.html Have a great day sir! :-)
@nicoteves1304
@nicoteves1304 6 жыл бұрын
Woah! Thank you very much sir! This would be a great help for my project :)
@zenchen围棋1712
@zenchen围棋1712 Жыл бұрын
I have this issue Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes. Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes. avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xa3 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xa3 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xa3 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xa3 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xa3 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xa3 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xa3 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xa3 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xa3 avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xa3 Failed uploading: uploading error: exit status 1
@VeryMuchBlessed
@VeryMuchBlessed 4 жыл бұрын
Very good Programming tip using USB to TTL. Please tell where you acquired your usb to ttl converter. I see several on Amazon, many different specs....?
@dannychenski687
@dannychenski687 4 жыл бұрын
Thank you!
@t1d100
@t1d100 Жыл бұрын
Good information.
@BasselTech
@BasselTech Жыл бұрын
Glad it was helpful!
@Athesto
@Athesto 6 жыл бұрын
But, does the 328p have the bootloader installed?
@BasselTech
@BasselTech 6 жыл бұрын
Yes sir, it should have bootloader installed.
@rodo19724
@rodo19724 3 жыл бұрын
Did you burn bootloader first into the chip,? Or is it just as it came from factory?
@DesertVox
@DesertVox 5 жыл бұрын
Worked. Thanks.
@BasselTech
@BasselTech 4 жыл бұрын
You're welcome! :-)
@hunortakacs368
@hunortakacs368 3 жыл бұрын
Thank you so much! Dont you know what is the right way to connect batteries to these as power suppliment? I would appreciate it!
@drshaabbas2822
@drshaabbas2822 2 жыл бұрын
connect a battery through 5v regulator to vcc and ground of the micro controller
@wayneswan3092
@wayneswan3092 6 жыл бұрын
How do you set up the IDE? what board did you use? what programmer? I can't get the cp2102 to work for nothing! keep getting 'programmer not responding", "not in sync" errors! I'm getting rather frustrated!
@BasselTech
@BasselTech 4 жыл бұрын
May be you have a problem with the bootloader on the chip, kindly check my recent video (How To Burn Bootloader On ATmega328p Using Arduino Uno? ): kzbin.info/www/bejne/eYK6Z4Cwa7p_qMU If you still have any problems feel free to contact me at: admin@basseltech.com
@SMALLTECH
@SMALLTECH 5 жыл бұрын
CAN I PROGRAM ATMEGA328 USING ONLY RI-85 AVR USBASP PROGRAMMER????
@mauriciogardini5175
@mauriciogardini5175 6 жыл бұрын
Genial, habia estado buscando esto por un buen tiempo, todas las soluciones para armar tu propia placa de arduino y quemar el programa incluían programadores AVR un poco costosos, siempre pensé que se podía programar con un USB to TTL de la misma forma que se programa un Arduino pro mini. Gracias por despejarme la duda, saludos.
@BasselTech
@BasselTech 6 жыл бұрын
You're welcome! Have a nice day! :-)
@YoYoYo
@YoYoYo 6 жыл бұрын
Excuse me for the stupid question but does the Serial.println("test") output in the arduino IDE with that setup?
@BasselTech
@BasselTech 6 жыл бұрын
Yes it will! :-)
@t1d100
@t1d100 Жыл бұрын
Please state the IDE programmer configurations to use the TTL Converter.
@iantcroft
@iantcroft 7 жыл бұрын
Thanks for the video it is very helpful. I just wanted to confirm something, (And rectify it on the video if true).... You mention connecting 10 microfarad capacitor or a 100 nanofarad capacitor to DTR On a conversion table, 100 nanofarad = 0.1 microfarad not 10 microfarad? 10 µF is equal to 10,000 nF
@BasselTech
@BasselTech 7 жыл бұрын
Thank you sir for your comment, you're right. I meant that both of them will do the job. :-)
@iantcroft
@iantcroft 7 жыл бұрын
Thanks for the quick reply! That's good to know you can use 0.1 microfarad, 10 microfarad and 100 nanofarad capacitors. Have got my standalone 328p put up and running now. 👍
@BasselTech
@BasselTech 7 жыл бұрын
Sounds great, if you have any questions in the future don't hesitate to contact me. Have a great day, sir! :-)
@JasonRobards2
@JasonRobards2 4 жыл бұрын
I couldn't get it to work with a 100nF ceramic, but a 10µF electrolytic like in the video did the trick.
@BasselTech
@BasselTech 4 жыл бұрын
Glad it worked for you! Keep up the good work! :-)
@SAM-xj9ur
@SAM-xj9ur 3 жыл бұрын
Sir can you please tell me why we use 22p F capacitor? can we use different values of capacitor also?? Plz Plz answer
@rachit_25
@rachit_25 4 жыл бұрын
Can we say that this circuit can be used as our own arduino ????
@BasselTech
@BasselTech 4 жыл бұрын
Yes we can!
@rachit_25
@rachit_25 4 жыл бұрын
The serial converter is to be always connected ? Or it is for uploading the code only .
@charislip
@charislip 3 жыл бұрын
What's the difference between this USB to TTL and some others with 5 pins? Is it possible to program?
@k9gh25
@k9gh25 3 жыл бұрын
Hi, i don't have a DTR pin can i still use my ttl to program the chip?
@jamshaidkhan5149
@jamshaidkhan5149 4 жыл бұрын
Sir Is it possible that without capacitors and usb to ttl connector to make it?????
@BasselTech
@BasselTech 4 жыл бұрын
Hi Qadeer, you can program ATmega328p using another method as in this video: Programming ATmega328p Using Arduino UNO (kzbin.info/www/bejne/e6CrdWOjaNqInqM).
@ShopperPlug
@ShopperPlug 2 жыл бұрын
Does your ATmega328p already has a bootloader?
@MasterTv_777
@MasterTv_777 4 жыл бұрын
My atmega328p chip has bootloader but it did not work
@antmini1
@antmini1 6 жыл бұрын
Thank you so much sir. :')
@BasselTech
@BasselTech 6 жыл бұрын
You're welcome! Have a great day! :-)
@jefflee4702
@jefflee4702 Жыл бұрын
it is comfirmed that the bootloader has installed,but the video didnt mention.
@BasselTech
@BasselTech Жыл бұрын
Hi, I'm so sorry for my late reply. I'm sorry I forgot to mention that. I have a separate video showing how to burn a bootloader on ATmega328p using Arduino Uno: basseltech.com/watch?tags=Arduino&v=CQW6Mz6ULrc Have a nice day! :-)
@biswajeetsingh4994
@biswajeetsingh4994 3 жыл бұрын
Does the Chip have the Arduino bootloader pre installed?
@Sekhar_Home
@Sekhar_Home 2 жыл бұрын
Can we programme attiny2313 like this???
@BasselTech
@BasselTech Жыл бұрын
I'm so sorry for my late reply. No, the ATtiny2313 microcontroller cannot be directly programmed using a USB-to-TTL converter. The ATtiny2313 does not have a built-in USB interface for programming. Instead, it uses a different programming interface called In-System Programming (ISP) which requires a dedicated programmer. To program the ATtiny2313, you would typically need an ISP programmer such as the USBasp or the Arduino as ISP. These programmers connect to the ISP pins of the microcontroller, allowing you to upload the firmware using specialized software like AVRDUDE. Feel free to contact me anytime if you needed any assistance. Email: admin@basseltech.com Have a nice day! :-)
@Sekhar_Home
@Sekhar_Home Жыл бұрын
@@BasselTech thanks
@tanyalobyam
@tanyalobyam 4 жыл бұрын
Do you need to make this ship with bootloader first?
@BasselTech
@BasselTech 4 жыл бұрын
Yes sir, and if it doesn’t ship with bootloader you can follow my tutorial on how to burn a bootloader first before programming the chip. (How To Burn Bootloader On ATmega328p Using Arduino Uno?): kzbin.info/www/bejne/eYK6Z4Cwa7p_qMU
@waitwhat612
@waitwhat612 3 жыл бұрын
Nice
@donaldhenke2750
@donaldhenke2750 4 жыл бұрын
does it have to have boot loader first.
@BasselTech
@BasselTech 4 жыл бұрын
Yes, it should. If it does not have a bootloader, you can follow this video to burn a bootloader first: How To Burn Bootloader On ATmega328p Using Arduino Uno? (kzbin.info/www/bejne/eYK6Z4Cwa7p_qMU)
@krishnaathreya3930
@krishnaathreya3930 4 жыл бұрын
Can we use python to program ATmega328p if yes please can you tell how
@kani_dev
@kani_dev 5 жыл бұрын
How to connect things - you can find easy in the internet you could explain why you connect to what and what are the threshoulds then the video would be usefull...
@BasselTech
@BasselTech 4 жыл бұрын
The values of the components are documented by Arduino company. You can check their website for more details! :-)
@shivkushwaha5356
@shivkushwaha5356 6 жыл бұрын
can i use to program for atmega328 pu not atmega 328p-PU sorry for bad English
@BasselTech
@BasselTech 6 жыл бұрын
I think it would work, but honestly I didn't try. If you tried, please send me your feedback. Thanks! :-)
@shivkushwaha5356
@shivkushwaha5356 6 жыл бұрын
do you know hindi language
@BasselTech
@BasselTech 6 жыл бұрын
No, I'm sorry. I only speak Arabic and English.
@koceilakassou1549
@koceilakassou1549 5 жыл бұрын
Really man ?! this is correct when the ATmega328p has a bootloader
@BasselTech
@BasselTech 4 жыл бұрын
If you need to know how to burn a bootloader, kindly check my recent video (How To Burn Bootloader On ATmega328p Using Arduino Uno? ): kzbin.info/www/bejne/eYK6Z4Cwa7p_qMU
@Ankit-ud9pt
@Ankit-ud9pt 6 жыл бұрын
Can i program any atmega microcontroller???
@BasselTech
@BasselTech 6 жыл бұрын
I am not 100% sure, but most probably it would work! :-)
@danilosuarez117
@danilosuarez117 5 жыл бұрын
can you copy the program from one atmega chip to a blank new atmega chip? using usb to ttl?
@BasselTech
@BasselTech 4 жыл бұрын
You have to upload it from your computer using Arduino IDE.
@nicoteves1304
@nicoteves1304 6 жыл бұрын
What if I'm already using digital pins 0 and 1 for another component? Is there any other pin I can connect the TX/RX of the USB to TTL?
@BasselTech
@BasselTech 6 жыл бұрын
Unfortunately sir, there aren’t other pins except pins 0 & 1 for serial communication.
@AltayBrusan
@AltayBrusan 4 жыл бұрын
you have already loaded the Ardunio boot loader? How?
@BasselTech
@BasselTech 4 жыл бұрын
Hi Atlay, Kindly check my recent video (How To Burn Bootloader On ATmega328p Using Arduino Uno? ): kzbin.info/www/bejne/eYK6Z4Cwa7p_qMU
@irgski
@irgski 4 жыл бұрын
What usb to ttl adapter do you use? Source?
@BasselTech
@BasselTech 4 жыл бұрын
I'm using USB to TTL - CP2102 Chip.
@joascostamartins1819
@joascostamartins1819 4 жыл бұрын
Can I do it with MikroC instead of Arduino IDE???
@BasselTech
@BasselTech 4 жыл бұрын
Hi ElectroFuturo, I might consider doing this tutorial in the future. Thank you!
@usmanhaider4653
@usmanhaider4653 4 жыл бұрын
How did you write bootloader?
@BasselTech
@BasselTech 4 жыл бұрын
Kindly check my recent video (How To Burn Bootloader On ATmega328p Using Arduino Uno? ): kzbin.info/www/bejne/eYK6Z4Cwa7p_qMU
@poojabansode6672
@poojabansode6672 4 жыл бұрын
I made same connections and same program but error is coming problem uploading to board please help
@BasselTech
@BasselTech 4 жыл бұрын
Hi Pooja, did you get AVRdude error?
@poojabansode6672
@poojabansode6672 4 жыл бұрын
@@BasselTech yes
@BasselTech
@BasselTech 4 жыл бұрын
This is probably because the chip doesn’t have a bootloader burnt to it. Please watch my video: (How To Burn Bootloader On ATmega328p Using Arduino Uno?) kzbin.info/www/bejne/eYK6Z4Cwa7p_qMU
@poojabansode6672
@poojabansode6672 4 жыл бұрын
@@BasselTech ok thank you so much
@poojabansode6672
@poojabansode6672 4 жыл бұрын
Same error is coming after bootloading
@alirezasoleimani4510
@alirezasoleimani4510 4 жыл бұрын
Hello sir, please help me with ATmega328p-au
@jash286
@jash286 6 жыл бұрын
hi community I am getting error messages avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x6f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x6f avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x6f plz help I did the same setup as shown in the video
@BasselTech
@BasselTech 6 жыл бұрын
This may be because you don't have the Arduino bootloader installed on the chip. I recommend you see this video: kzbin.info/www/bejne/nWqTqZVmo7OLa5I
@vipinckty1
@vipinckty1 3 жыл бұрын
Doesnt worknfor me
@rana.k
@rana.k 4 жыл бұрын
it possible to program an AT89S51 chip with USB to TTL(UART) converter?
@shashankagrawal1058
@shashankagrawal1058 6 жыл бұрын
Can I program atmega328p using isp programmer Please reply anyone
@BasselTech
@BasselTech 6 жыл бұрын
Yes, I believe you can! :-)
@TheCerberusInferno
@TheCerberusInferno 5 жыл бұрын
ATmega328p need a bootloader without just go to sleep ...
@BasselTech
@BasselTech 4 жыл бұрын
Kindly check my recent video (How To Burn Bootloader On ATmega328p Using Arduino Uno? ): kzbin.info/www/bejne/eYK6Z4Cwa7p_qMU
@bigbeef2654
@bigbeef2654 3 жыл бұрын
Or just program it using Atmel AVR Studio. The way God intended.
4 Bit Full Binary Adder & 74283 IC
5:17
BasselTech
Рет қаралды 4,3 М.
Arduino Uno to ATmega328 - Shrinking your Arduino Projects
37:17
DroneBot Workshop
Рет қаралды 789 М.
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 5 МЛН
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 13 МЛН
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 11 МЛН
Build Your Own Arduino Like Board For Just a Few Dollars
20:48
Gary Explains
Рет қаралды 81 М.
Arduino USB-to-Serial Tutorial - Programming the Pro Mini
11:04
Julian Ilett
Рет қаралды 508 М.
Bootloader and upload to Atmega328P-AU
7:28
Kakushin
Рет қаралды 71 М.
【For Beginner】How to start electronics and what item is needed
18:16
“Hello, world” from scratch on a 6502 - Part 1
27:25
Ben Eater
Рет қаралды 4,7 МЛН
Electronic Basics #6: Standalone Arduino Circuit
4:21
GreatScott!
Рет қаралды 536 М.
EEPROM Memory - Store Anything - Arduino101
13:16
Electronoobs
Рет қаралды 105 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 576 М.
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 5 МЛН