Sunday, June 14, 2020

How to upload a sketch to Atmega328p using USB to TTL Module (CP2102) on a breadboard - Arduino Tutorials #10

In this post, I will show you how to upload a sketch to Atmega328p using USB to TTL Module (CP2102)

If you prefer video mode you can click here to watch the video.

First, connect the circuit as per the circuit diagram

upload a sketch to Atmega328p using USB to TTL Module

After making the connection connect it to a Laptop or a Desktop

upload a sketch to Atmega328p using USB to TTL Module

Next, select the board as Arduino UNO, Port as per your COM port and the Programmer as AVRSIP mkII

upload a sketch to Atmega328p using USB to TTL Module
Next, select any sketch (For example BLINK)

upload a sketch to Atmega328p using USB to TTL Module

Next, click the Upload button to upload your sketch to Atmega328p

upload a sketch to Atmega328p using USB to TTL Module

Once the compiling is done and you get the notification uploading, press the push button immediately on the breadboard for manual Reset for your sketch to get uploaded to the Atmega328p
upload a sketch to Atmega328p using USB to TTL Module

upload a sketch to Atmega328p using USB to TTL Module

If you pressed the push button at the right time and you're in sync your sketch will be uploaded and you will get the notification Done Uploading

upload a sketch to Atmega328p using USB to TTL Module

If you pressed the push button at the wrong time and you're not in sync you will get the below Error
upload a sketch to Atmega328p using USB to TTL Module

Next, connect the remaining circuit which the sketch was intended for. In my case 220 Ohm & Led to Pin 19 of the Atmega328p for the Blink Sketch

upload a sketch to Atmega328p using USB to TTL Module

Affiliate Links:
Amazon USA Amazon IND
Thank You For Reading

No comments:

Post a Comment

Hi, Thanks for Commenting !!!