Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. How to connect USBASP to a bare atmega328p

How to connect USBASP to a bare atmega328p

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 5 Posters 4.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stoffej
    wrote on last edited by
    #1

    I have spend a long time trying to sort this out.
    But I getting more and more confused.

    I want to burn the bootloader to create this sensor.
    https://forum.mysensors.org/topic/2067/my-slim-2aa-battery-node

    I have

    • usbasp
    • a few ardunino uno
    • bare atmega328p
    • not enough knowledge in burning bootloaders =(

    But how do I connect the usbasp to a bare atmega328p without external crystal to burn the bootloader??
    Can I connect the usbasp to the arduino unos ICSP port?
    Like this
    alt text

    And use this good guide mysensors burn bootloader

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stoffej
      wrote on last edited by
      #2

      The ICSP connector that is nearest to the mega328 chip is the one I planning to use.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by sundberg84
        #3

        @stoffej - check this out: https://www.arduino.cc/en/Tutorial/ArduinoISP as well.
        Im not using the usbasp but a normal usb cable to my uno, then i use the uno as programmer.
        usbasp is a programmer itself and you cant use both.

        If you want to use the usbasp you need to connect the right pins from it to a breadboard where you have the atmega.
        Im sure there are more ways to do it.

        Controller: Proxmox VM - Home Assistant
        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

        1 Reply Last reply
        0
        • F Offline
          F Offline
          FotoFieber
          Hardware Contributor
          wrote on last edited by
          #4

          You can run your code without a bootloader: Arduino IDE -> Sketch -> Upload Using a Programmer

          For programming optiboot and setting the fuses, I used https://github.com/WestfW/OptiLoader

          1 Reply Last reply
          0
          • E Offline
            E Offline
            ericvdb
            wrote on last edited by
            #5

            Just take out the Atmega328p from your Arduino Uno, put in a new Atmega328p, connect your USBASP and burn the bootloader.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              scalz
              Hardware Contributor
              wrote on last edited by
              #6

              and perhaps some parts of this howto can help you too. not the same bootloader but I use usbasp. Yes you need to use your icsp conenctor or the spi port + rst pins if you want.
              https://forum.mysensors.org/topic/3503/sensebender-dualoptiboot-ota-howto-in-mysensors/18

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              14

              Online

              12.0k

              Users

              11.2k

              Topics

              113.4k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular