element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Arduino
  • Products
  • More
Arduino
Blog ATmega328p Shield for Arduino Uno
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Arduino requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: iexpress
  • Date Created: 12 Dec 2014 12:58 PM Date Created
  • Views 233 views
  • Likes 1 like
  • Comments 0 comments
  • avr
  • arduino
Related
Recommended

ATmega328p Shield for Arduino Uno

iexpress
iexpress
12 Dec 2014

Hi everyone,

 

I was thinking of creating an easier way for users to program their ATmega328p MCU's, so I purchased an Arduino Uno and made an ATmega328p Shield for it. While I keep seeing people popping their MCU's out of their boards, I wanted to try to provide a solution to where they wouldn't have to keep removing their MCU's from their Arduino kits in order to program a circuit.

 

I spent the night soldering getting things working on the prototype shield, and drafted up the sketch firmware in about an hour or two sending over a basic Blink program in binary mode over to the ATmega328p Shield frpom the Arduino Uno.

 

Here is a video of the prototype Arduino Shield in working action: http://youtu.be/SdATQFxE6kM

 

I also attached the sketch the prototype board is using, documentation about the firmware commands and a full programming guide to help users get their hex file data onto the MCU's.

Likewise, users can just select the MCU's as is an access the EEPROM for data storage very easily if they don't want to utilize the MCU Flash.

 

Basically, the firmware allows the user to select the MCU as an SPI device in Slave mode. Based on 16 commands, some unallocated to leave room for improvement from other users, the board has an indicator LED, pin 13 to traditionally show the user when the MCU is selected.

 

I gave examples in the documentation I have provided, which is pretty interesting. It seemingly uses an interpreted scheme converting user defined data entry in direct executable operation, kinda like the Parallax series does.

 

Hope you guys enjoy,

 

Feel free to write back, I'd be happy to help contribute to the community and believe this device would help many people out.

This way the users won't have to disassemble their Arduino units anymore. They can write to it with the ATmega328p Shield.

 

Then they can remove the newly programmed MCU from the Shield to put in circuit.

 

Thanks!

imageimage

I also created some HEX2MCU software which loads in program and bootloader hex files, converts them over to firmware commands and then the Arduino programs the MCU on the shield based on those instructions that were converted from hex to firmware commands.

image

 

So far, I have 0% error in data transfer rate making this very efficient.

Attachments:
ATmega328CompleteProgrammingGuide.rtf
ATmega328pShield.ino.zip
ATmegaCommandsATmega328pShield.txt.zip
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube