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 Setting Arduino Uno fuses
  • 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 Not Answered
  • Replies 10 replies
  • Subscribers 392 subscribers
  • Views 1055 views
  • Users 0 members are here
  • arduino
Related

Setting Arduino Uno fuses

gtrplyer16
gtrplyer16 over 10 years ago

All,

 

I have been working on a project lately which is an ATMega328p controlled power supply. I programmed the chip using the Arduino Uno board and I want to use a 16MHz crystal instead of the onboard 8MHz oscillator. I've been doing some research and people are saying I need to set fuses, but I'm not sure how to go about doing that. I only ran into this problem because I set up a 16MHz oscillator with 22pF caps and a 10k resistor and I was getting no clock signal into the chip. I downloaded the schematic from Arduino.cc and it showed to hook up my crystal across XTAL1 and XTAL2 and that's what I did and looking at those two pins on a scope I am getting 5V on the pins but it stays high. If someone could let me know if that would be a wiring problem or something different like setting fuses for example. This is my first project while using the ATMega328p out of the Arduino board so I'm having some troubles.

  • Sign in to reply
  • Cancel

Top Replies

  • gadget.iom
    gadget.iom over 10 years ago in reply to gtrplyer16 +1
    Take a look at the breadboard examples here: http://arduino.cc/en/Tutorial/ArduinoISP
  • sparky2k7
    sparky2k7 over 10 years ago +1
    Is this what you are trying to do? See link below. http://heliosoph.mit-links.info/arduinoisp-reading-writing-fuses-atmega328p/
  • gadget.iom
    0 gadget.iom over 10 years ago

    I believe burning the bootloader will set the fuses for a 16Mhz external crystal.

    There is some useful information about fuse settings available here: https://voidyourwarranty.wordpress.com/2014/08/17/using-arduino-as-an-isp-to-program-a-standalone-atmega-328p-including-…

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gtrplyer16
    0 gtrplyer16 over 10 years ago in reply to gadget.iom

    by burning bootloader do you mean putting the Mega into the socket on the Uno then clicking "Burn bootloader" under the Tools menu? People were doing that but they had the Mega on a breadboard and had a different Mega on the board which they set to "Arduino as ISP" then connecting 4 pins to of the breadboard to the Uno board and doing it that way. I'm not sure which way is acceptable that would work. Like I said I am new with the external operation of the Mega I always have just programmed it on the Uno board and breadboarded from there.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gadget.iom
    0 gadget.iom over 10 years ago in reply to gtrplyer16

    Take a look at the breadboard examples here: http://arduino.cc/en/Tutorial/ArduinoISP

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sparky2k7
    0 sparky2k7 over 10 years ago

    Are you trying to program the ATMega328p with the Arduino Uno board  as shown in the above examples?

    Or are you programming the onboard chip of the Arduino Uno board?

    Do you have a schematic or a picture so I can see what you are trying to doing.

    Reason being if you set the wrong fuses on the chip it can be rendered useless, meaning you will be locked out and you can't read nor reprogram it.

    So be careful.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sparky2k7
    0 sparky2k7 over 10 years ago

    Is this what you are trying to do? See link below.

    http://heliosoph.mit-links.info/arduinoisp-reading-writing-fuses-atmega328p/

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gtrplyer16
    0 gtrplyer16 over 10 years ago in reply to sparky2k7

    I programmed the Mega328 while it was onboard the Uno. I then want to take that chip I programmed out and put into my circuit and have it work. My XTAL1 and XTAL2 pins go high to 5v and turn my display on however it stays high. I forgot to take a picture of my schematic today I was working on my radio design and it totally slipped my mind.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sparky2k7
    0 sparky2k7 over 10 years ago

    Just to let you know that the Arduino Uno is not a programmer, the onboard chip is pre-programmed to be recognized by the Arduino software and operating system you are using. I hope you didn't delete the program that was on your onboard chip that came with the Arduino Uno.

    If you need to program AVR chip you will need a programmer like a USBTiny or  AVRISP mkIl.

     

    To create a stand alone project you need to use the following example shown in http://heliosoph.mit-links.info/arduinoisp-reading-writing-fuses-atmega328p/

    Send pictures.....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gtrplyer16
    0 gtrplyer16 over 10 years ago in reply to sparky2k7


    Sorry for the awkward angles that's the best I could do today. I didn't really have time to get good pics. I didn't delete the program that came on the Uno I uploaded my code to the ATMega328P-PU and put it into the circuit for it to run. I will take a look at the example when I get a chance.imageimage

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sparky2k7
    0 sparky2k7 over 10 years ago in reply to gtrplyer16

    Sorry, I can't zoom in on your pictures, there just to small to read.

    Please send better pictures.

    Do you have an extra ATMega328P-PU or just the one that came with the Uno.

    You are writing a sketch with the Arduino IDE software, correct.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sparky2k7
    0 sparky2k7 over 10 years ago

    Check out this link also......

    http://forum.arduino.cc/index.php?topic=71580.0

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