element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • 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 Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Need info on microcontrollers
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Answers 5 answers
  • Subscribers 396 subscribers
  • Views 658 views
  • Users 0 members are here
  • microcontrollers
  • atmega328p
Related

Need info on microcontrollers

carl_gem
carl_gem over 9 years ago

Hi there

I'm really new to micro-controllers. what are the various ways that I can program an ATmega328p?

Do I necessarily need an arduino board to program an ATmega328p?

  • Sign in to reply
  • Cancel

Top Replies

  • clem57
    clem57 over 9 years ago +6 suggested
    Hello carl_gem First of all, good questions, To program an ATmega328p using Arduino IDE, a knowledge of C is needed, Most people will get an Arduino Uno 3 to start. But since this is open hardware, there…
  • ipv1
    ipv1 over 9 years ago +2 verified
    When you say 'program' a microcontroller, if you mean writing a program and then compiling it, then you can use an Arduino IDE or the AVR Studio to write and compile a program. There is a bulk of libraries…
  • chappy1978
    chappy1978 over 9 years ago +2 suggested
    Another good cheap website is electrodragon.com
Parents
  • clem57
    0 clem57 over 9 years ago

    Hello carl_gem

         First of all, good questions, To program an ATmega328p using Arduino IDE, a knowledge of C is needed, Most people will get an Arduino Uno 3 to start. But since this is open hardware, there are many clones to look at adding features like wireless, LED's, switches, and other sensors. For a small list, see arduino Clones? The only downside is soldering which can be a change to some. What do they have in common? Most of them use the ATmega328p chip. If you are just starting, the chip is really cheap! image But you have nothing to use with itimage What to know about it:

    • The chip comes normally as a DIP package with pins on a long rectangular IC or a square with pins all around, If you want to build your own system, avoid the square since it is for PCB manufacturers and advanced users.
    • Besides the chip, you need a power regulator to give clean power DC 5V instead of 110/220V wall AC,
    • A crystal 32K that varies depending on voltage inputted to give the chip timing pulses. These allow the chip to work on a fast clock, within the limits of the chip. For ATmega328pm most run at 8Mhz or 16Mhz.
    • Various resistors and diodes as needed.
    • ATmega328p should be preloaded with a bootloader before you buy. If not then you need another computer like Arduino to load the bootloader.image

    Before anyone says "But I do this another way", I have chosen what I think is a simpler less confusing way.

     

    For references:

    To buy: https://www.sparkfun.com/products/9061

    Other choices (remember avoid square) https://www.sparkfun.com/categories/21

    To use another Arduino to program How to use Arduino as AVR Programmer (for ATMega328p)

    To breadboard (simple) and play with from PC using AVRDUDE avr - Programming a ATmega328P on a breadboard - programmer cannot connect - Electrical Engineering Stack Exchange

    Tutorial of programming in C Video: Learning to program for the ATmega328p Part I | Hackaday

     

    Clem

     

    Please mark "correct" if this answers your questions as this help others too. If you have other related questions post here. Otherwise kindly open a new question. Enjoy the process and have fun.image

     

    Editted per Peter Oakes correction

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • mrchunckuee
    0 mrchunckuee over 9 years ago in reply to clem57

    Hi clem57 Good answer, but not understand about 32K Crystal, i'm checking the datasheet of the ATMEGA328 and supports up to 20 MHz and apparently the 32K of flash memory.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • mrchunckuee
    0 mrchunckuee over 9 years ago in reply to clem57

    Hi clem57 Good answer, but not understand about 32K Crystal, i'm checking the datasheet of the ATMEGA328 and supports up to 20 MHz and apparently the 32K of flash memory.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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 © 2025 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

  • X
  • Facebook
  • linkedin
  • YouTube