How to run an Arduino ATmega328P on a Breadboard and How to Program it using a USB to Serial Adapter

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 30

  • @rxblackpill
    @rxblackpill 3 ปีที่แล้ว +1

    This video and the other one you uploaded about flashing bootloaders is great! Please make more cool arduino/atmega videos! Would love more tutorials or showcases of some of your projects/work! Keep it up!!

    • @AlexInFlatland
      @AlexInFlatland  3 ปีที่แล้ว +1

      What a coincidence, more Arduino project videos are exactly what's in the pipeline :) Glad you enjoyed them!

  • @SmookyProMan
    @SmookyProMan 7 หลายเดือนก่อน

    Thank you for this amazing video. I can say that you saved my life after week of failed attempts. Much love 😊😊

  • @arnoldschmucker9977
    @arnoldschmucker9977 3 ปีที่แล้ว

    Really great presentation. The use of a 10mF capacitor solved my problem with FTDI!

  • @AB-om4ls
    @AB-om4ls 2 ปีที่แล้ว +1

    So you can program the chip using the UART interface as long as you have a USB-Serial adaptor. But in order to do this, you first need to have the bootloader? And the bootloader can only be uploaded using the SPI interface like in your previous video?

  • @markrichards7533
    @markrichards7533 3 ปีที่แล้ว

    Great video straight to the point, we need to share this video.it really helped me with my project, keep up the good work.

  • @irzfanfarizan3001
    @irzfanfarizan3001 4 หลายเดือนก่อน

    Do i need to use 10k resistor on reset pin that connected to 5v? Or can just use 5v on reset pin without resistor? Does atmega restart itself without 10k resistor?

  • @arnavarora4593
    @arnavarora4593 10 หลายเดือนก่อน

    Hey! I loved every freaking bit of your two videos on how to program the ATmega328P chip. Wonderfully done!! I am trying to do the same thing for ATmega32u4. I have the breakout board with me and I have tried to flash it multiple times but it does not work and says that my device signature is 0x000000. Is there a way I can contact you or do you have any suggestions? This might be a lost cause but I truly need some help, it would be truly legendary if you reply to his, I know it has been 3 years since you uploaded this video, but help a brother out maybe ? :/

  • @hds0405
    @hds0405 3 ปีที่แล้ว

    Outstanding step by step instructions, well done!

  • @matid8453
    @matid8453 4 หลายเดือนก่อน

    is it working with ch340? becouse I have this and it doen't work i see the diode blinking so it received data via uart but do nothing

  • @dereksavage8728
    @dereksavage8728 4 ปีที่แล้ว +1

    Awesome tutorial! Very helpful. Thank you so much

  • @skmplanet9591
    @skmplanet9591 2 ปีที่แล้ว

    Very clear workable tutorial. Thanks a lot

  • @chachouamohammedelkhadir2559
    @chachouamohammedelkhadir2559 4 ปีที่แล้ว

    After using it outside the arduino board (stand alone mode ), can we put it back and use it with the arduino board with no problems ?
    very informative video by the way ... Thank you so much

    • @AlexInFlatland
      @AlexInFlatland  3 ปีที่แล้ว

      Yup, you can move back and forth between stand-alone mode and regular as much as you want.

  • @k9gh25
    @k9gh25 3 ปีที่แล้ว

    Hi, my ttl doesn't have a DTR pin can it still work?

  • @shvideo1
    @shvideo1 3 ปีที่แล้ว

    In Windows I’ve had a lot of problems using an FTDI FT232R adapter because the FTDI driver either “bricks” the Chinese adapter chips by setting it’s device ID to zero or renders it useless by sending junk data down the line. I have even tried to use a legacy driver and have not yet been successful. I was hoping your video would address that. It seems that you may be on a Linux system or somehow bought a genuine adapter for a zillion dollars from God knows where. Awesome video, though. Thank you. Any insight is much appreciated.

    • @AlexInFlatland
      @AlexInFlatland  3 ปีที่แล้ว

      Hey Daniel! Here's the one I got: amzn.to/3G22WW0 (sponsored link)
      I honestly doubt that mine was any better than the typical knock-offs you'd find online. Maybe I was just lucky :/
      I was using Windows 10 for this thing btw. Linux sounds like it may work, but finding drivers for things may be tricky. You know how Linux distributions can be finicky.

  • @billglass5160
    @billglass5160 3 ปีที่แล้ว

    Good video! I want to do the same. With this schematic, you can program the ATmega chip but can you also use the serial monitor for debugging a new code that you load onto the chip? Thanks.

    • @AlexInFlatland
      @AlexInFlatland  3 ปีที่แล้ว

      If you're running the ATMEGA chip stand-alone you won't have serial output. You'll need either the Arduino itself to provide USB to serial conversion, or a stand-alone USB-serial adapter. I've used one in one of the two videos I did on the topic of running a stand-alone Arduino.

    • @billglass5160
      @billglass5160 3 ปีที่แล้ว +1

      @@AlexInFlatland Thanks. Yes I now know. I completely uploaded to and debugged my ATmega standalone on a breadboard application with the USB-serial adapter. No more Uno except for burning the bootloader. The breadboard application has a DHT11 humidity and temperature sensor with an RYLR896 Lora transmitter to send the info from outside into my living room (where I have the LCD display receiver). The application takes measurements once an hour and then goes to sleep so it can run on 3 AA batteries. Before I make the final board, I want to try to run it on the 8 mHz internal oscillator. Then I can 1. Remove the crystal and capacitors. 2. Run the ATmega328 with 2 AA batteries. 3. Remove the voltage resistor divider required on the 3.3V Lora device's Rxdata input. I saw your tutorial for burning the bootloader for 8 mHz operation. I will let you know.

  • @CIOWhitepapers
    @CIOWhitepapers 3 ปีที่แล้ว

    Can this method get Serial.print statements from chip out to the Arduino IDE serial monitor?

    • @AlexInFlatland
      @AlexInFlatland  3 ปีที่แล้ว

      If you're running the ATMEGA chip stand-alone you won't have serial output. You'll need either the Arduino itself to provide USB to serial conversion, or a stand-alone USB-serial adapter. I've used one in one of the two videos I did on the topic of running a stand-alone Arduino.

  • @mekimr9736
    @mekimr9736 2 ปีที่แล้ว

    Hi it work good too less two capacitor 22p

    • @peircedan
      @peircedan ปีที่แล้ว

      Breadboards have intrinsic stray capacitance between terminal strips and the actual value will vary. I'm thinking that putting a crystal circuit directly on a breadboard is iffy.

  • @markharrisllb
    @markharrisllb 3 ปีที่แล้ว

    I see you haven’t posted a video in 10 months, don’t give up as I’m sure subscribers will come.

    • @AlexInFlatland
      @AlexInFlatland  3 ปีที่แล้ว

      Thanks for the encouragement! I was actually dealing with some personal stuff. But I'm back at it now, and I'm aiming towards at least one video per week. We'll see how it goes :)

  • @creative27feb
    @creative27feb ปีที่แล้ว

    👍👏

  • @clonkex
    @clonkex 3 ปีที่แล้ว

    31:55 Through the capacitor? What?