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 3.2k 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
      • sundberg84S Offline
        sundberg84S 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
        • FotoFieberF Offline
          FotoFieberF 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
            • scalzS Offline
              scalzS 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
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              26

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              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