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

  • Thread starter Thread starter jstbyndjupitr
  • Start date Start date
  • Tags Tags
    Program Software
Click For Summary

Discussion Overview

The discussion revolves around finding free software options for programming the Atmega 168-PU Atmel microcontroller, particularly in the context of a project involving motor control and gyroscope inputs. Participants explore various software tools and methods for programming the chip, including considerations for hardware requirements.

Discussion Character

  • Technical explanation, Debate/contested, Experimental/applied

Main Points Raised

  • One participant is seeking assistance with programming the Atmega 168-PU for a motor control project.
  • Another participant mentions that AVR Studio can be used but requires a programmer like the AVRISP MkII or an Arduino board for uploading programs.
  • A different participant provides a direct link to Atmel Studio, suggesting it as an alternative programming tool.
  • One user shares their experience using Eclipse with an AVR plugin, expressing a preference for AVR Studio despite Eclipse's powerful features.
  • It is noted that the Arduino IDE can also be utilized for developing code for the Atmega168, emphasizing its user-friendly nature and bundled tools.
  • A hobbyist mentions the possibility of using an ATMega with an Arduino bootloader for easier programming and suggests the purchase of an AVR programmer as a cost-effective solution.

Areas of Agreement / Disagreement

Participants present multiple software options and methods for programming the Atmega 168-PU, with no consensus on a single best approach. There are differing opinions on the usability and effectiveness of various programming environments.

Contextual Notes

Some participants highlight the need for additional hardware, such as programmers or FTDI chips, to facilitate programming, indicating dependencies on specific setups and configurations.

jstbyndjupitr
Messages
5
Reaction score
0
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?
 
Engineering news on Phys.org
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/
 
Thanks for the reply matlabdude, I tried to check those links but they didnt work...
 
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.
 
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.
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 19 ·
Replies
19
Views
2K
Replies
4
Views
3K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
3K
Replies
2
Views
3K
  • · Replies 22 ·
Replies
22
Views
5K