Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Is there a free software to program an Atmega 168-PU Atmel microconller?

  1. Jul 24, 2012 #1
    So, I'm trying to build a circuit to control 4 motors that will depend on the output from 3 gyros, I have the circuit all set with the components just having trouble programming the chip because i know that it can be programmed, can anyone help?
     
  2. jcsd
  3. Jul 24, 2012 #2

    MATLABdude

    User Avatar
    Science Advisor

    http://www.atmel.com/microsite/avr_studio_5/

    However, you still need a programmer (like the AVRISP MkII) to transfer your program onto the micro. That or you can buy an Arduino board (about the same as the cost of the AVRISP) which allows you to upload programs via a bootloader (a special program on the micro which allows you to reprogram the micro via the serial interface).
    http://www.arduino.cc/
     
  4. Aug 4, 2012 #3
    Thanks for the reply matlabdude, I tried to check those links but they didnt work...
     
  5. Aug 4, 2012 #4

    MATLABdude

    User Avatar
    Science Advisor

    The links work fine for me--note that the "Downloads" section on the AVRStudio page is at the bottom right hand corner of the page, and requires (free) registration.
     
  6. Aug 4, 2012 #5

    MATLABdude

    User Avatar
    Science Advisor

  7. Dec 22, 2012 #6
    I use Eclipse with the AVR plugin to program my Atmega168 and 328s, I've tried AVR studio as well. I kind of wish I had gotten started using AVR studio instead, because using eclipse can be a really... really huge pain. However I really like the way eclipse can zip around to show definitions and macro expansions. Eclipse is free and buggy, but extremely powerful.

    The Arduino IDE can also be used to develop ATMega168 code. If you are only interested in developing one specific application this might be a good idea since it bundles a standalone compiler, editor, examples, and drivers for the microcontroller's peripherals in a pretty user-friendly way. Arduino software is free. A physical arduino is not required.

    I am a hobbyist so i try to do things on the cheap. It is possible to buy an ATMega from a website like SparkFun with the arduino bootloader on it, which enables serial programming, and then its pretty easy to program that chip as a programmer for additional chips purchased without a bootloader (this is carried out over the SPI port). You then need an FTDI chip to communicate via serial from the PC to the chip. If you have the means, its probably a better idea to just buy an AVR programmer for 30 bucks, be careful about driver installation though, since this is easy to mess up.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Is there a free software to program an Atmega 168-PU Atmel microconller?
  1. Free Schematic Program (Replies: 5)

Loading...