AVR Programmer

I am building a  AVR Programmer refering from site : http://www.fischl.de/usbasp/ So Please can any body give the  .Hex   file to burn my Atmeg8( the on AVR circuit board). Would be a great Help to me  !  ! Thank a lot - Akshay Jadhav

Topic by akshayjadhav   |  last reply


arduino or AVR

Hey!! any one plz tell me which one is better either AVR or arduino .... i wanted to buy arduino ..bt i found one with just 6 pin inputs on stores ,,,i was seeking to make  LED cube of 16 x 16 ... sory have added two questions......plz response

Topic by feebo   |  last reply


AVR debugger

I'm looking for a DIY debugger for atmel AVR microcontroller (ATMega644 to be exact but any other avr will do). that have step-by-step debug capabilities. DIY means i preferred making the circuit at home rater then buying some kit. thanks.

Question by axodus   |  last reply


AVR Tutorial?

So I built a nice little programmer, and now I want to learn to program my AVR microcontrollers. WHERE DO I FIND A TUTORIAL?! I've been looking for hours, and all I can find is information on building a programmer for AVR microcontrollers. I already did that! I can't find a single tutorial on how the programming language for AVRs work. Does anybody know where I can find a tutorial on the programming language for AVRs, or the AVR assembly lnaguage? This is the only thing that there seems to be nothing about on the internet.

Topic by gimmelotsarobots   |  last reply


Avr help

Help me in Programming my Avr...... Ques :- How to program avr using BRiCS Development board (avr 333) and usbtiny. I am new to avr programming....? When i used avr dude and entered following command i got this :- command by me ::    -c usbtiny -p m16 -P usb Avrdude's response :: avrdude.exe: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. Do i need to give external power to the board or it uses USB's Power supply....... WHY IT IS HAPPENING. Pls Help me.....

Topic by techieman   |  last reply


AVR development

Looking to get into programming AtMel AVRs and i would like to know if anyone can suggest a development board that ain't Arduino for getting started with. I've heard good things bout the STK500, but can't find one to buy anywhere. Also I've added some pics, answers to those questions would be brilliant.

Topic by lifelong-newbie   |  last reply


AVR Help

I finally have all I need to start programming, I have a programmer (this one to be exact)http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&rd;=1&item;=130202441672&ssPageName;=STRK:MEWN:IT&ih;=003and I have a bunch of attiny13vYou can talk to me as if I know nothing about microcontrollers and programming.I have googled for about 10 minutes and havn't found a tutorial or anything that can help me. I just want to learn the most up to date stuff, like I don't want to learn assembly if I can use C (I don't know C). Please, I need help.Also I need help of how to setup everything on a breadboard, like what pin of the 10 pins from the programmer go to which pins of my attiny13 and where to apply how much voltage.

Topic by guyfrom7up   |  last reply


Arduino or AVR chips?

I have a strong will to learn micro controllers, but i am confused with certain aspects . Since, i am new at these, so please suggest me. Which one should i chose arduino or avr chips. Please, also suggest , which programming language would be easy , arduino based or .c based (avr) language. I am also not sure if i go for arduino, would i be able to upload program to avr chips using arduino ide ( if i don't learn .c). Need Help! 

Question by ShuvamP   |  last reply


Avr, Arduino, ic...

I am new at electronics and I would like to knew more about AVR, Arduino, IC and others microcontrollers, so could someone give me site about it or make instructable whit codes, programming boards and pins.

Topic by Dantex   |  last reply


Help with eclipse and avr!

I am trying to get eclipse to work with the avr plugin to upload code to my attiny2313. Every time I press the button to send the code to the avr a message saying "The file [${workspace_loc:/test_avr/Release}/test_avr.hex] For the flash memory does not exist or is not readable Maybe the project needs to be built first." I try to build the project with the build button on the toolbar and resend but the same message keeps coming up. I have allready set the avrdude settings to the same ones I used successfully to upload hex files to the micro.

Question by sotsirh194   |  last reply


Help Programming on an AVR

I am looking at getting an USBtinyISP to start programing ATtiny 13's. I plan on using avrdude. I already have some experience with the Basic stamp, arduino and c++ when writing computer programs. My main concern is how to state and use an input or output. In examples I have seen I do not understand the inputs and outputs.

Topic by sotsirh194   |  last reply


using AVRS with a mac?

Hi I am wondering if anyone here has experience with programming AVRs.I am trying to program an attiny2313 with a USBtinyISP programer kit from adafruit that I built. I am using it with a mac.I have followed the steps from these links:to build my ISP:http://www.ladyada.net/make/usbtinyisp/I followed these steps for installing the software:http://www.ladyada.net/learn/avr/setup-mac.htmlI am using AVR MacPAK:http://www.obdev.at/products/avrmacpack/index.htmland AVRDUDE:http://www.ladyada.net/learn/avr/avrdude.htmland also tried these tips:https://www.instructables.com/id/EH5DAZW3FWEYVZDEF4/I don't know much about Terminal, mac ports or AVRDUDE. I used Terminal to fill out the make file but I got lost after that.I do know that the ISP that I built works because the green light comes on.I can write the code in Basic, but I get stuck after that when it comes to using the Make file or compiling it. How would I compile my code and send it to the ISP? Has anyone here ever programmed AVRs with a mac?I'm getting a PC soon and maybe that will be easier, but for now I'm trying to get it to work on mac.If I could get some help that would be great thanks!

Question by rocket100   |  last reply


Help with AVR USART?

Hello... Im trying to make a set of RF remote switches using an atmega16.  I want to push a momentary button on the Tx board and effectively have a relay connected to one of the output pins TRIGGERED on the Rx board. I have attached the code I did for this, I send the entire data=PINC; through uart and catch it on the other end and do PORTC=data; but with this approach I would not be able to TRIGGER the output pin. Please help.....  TX side code.... #include #include #include "usart.h" void main() {  //Initialize the USART with Baud rate = 2400bps  USARTInit(416);  //Enable Internal Pullups on PORTC  PORTC=0xFF;  /* Keep transmitting the Value of Local PORTC to the Remote Station. On Remote RX station the Value of PORTC sent on AIR will be latched on its local PORTC */ uint8_t data; while(1) { data=PINC; /* Now send a Packet Packet Format is AAZ total Packet size if 5 bytes. */ //Stabilize the Tx Module By Sending JUNK data UWriteData('J'); //J for junk //Send 'A' UWriteData('A'); //Send Another 'A' UWriteData('A'); //Send the data; UWriteData(data); //Send inverse of data for error detection purpose UWriteData(~data); //End the packet by writing 'Z' UWriteData('Z'); //Wait for some time _delay_loop_2(0); _delay_loop_2(0); _delay_loop_2(0); _delay_loop_2(0); } } RX Side code #include #include "usart.h" void main() { uint8_t i; //Clasical loop varriable uint8_t packet[5],data=0; DDRC|=0xFF; //All Output //Initialize the USART with Baud rate = 2400bps USARTInit(416); /* Get data from the remote Tx Station The data is the value of PORTC on Remote Tx Board So we will copy it to the PORTC of this board. */ while(1) { //Wait for a packet while(!UDataAvailable()); if(UReadData()!='A') continue; while(!UDataAvailable()); if(UReadData()!='A') continue; while(UDataAvailable()!=3); //Get the packet for(i=2;i<5;i++) { packet[i]=UReadData(); } //Is it ok? if(packet[2]!=((uint8_t)~packet[3])) continue; if(packet[4]!='Z') continue; //The packet is ok data=packet[2]; //Now we have data put it to PORTC PORTC=data; } }  

Question by pro2xy 


Speedometer using AVR!?

Hello im using avr atmega 8 and i need to display the speed in a lcd panel!.How would i convert the data from the hall-effect sensor to digital and from there to numerical value..Im confused about the caliberation.

Question by Nr-Think different   |  last reply


External interrupt on atmega AVR Answered

I've been learning to program an AVR (atmega644p) in assembly, but I cannot get it to respond to any interrupts. I am trying to use the external interrupt INT2 on portb,2, but the program does not respond to a signal on the pin either as an input or output. I have verified all the ports work, and have added LEDs to indicate that the program has reached the wait loop. I have looked at several code examples, and there doesn't appear to be anything missing. At the moment, I think that the issue may be with the fuses dealing with the boot sector. Fuses are currently set to Low:0xFD, High:0xDF, Extended:0xFF. Thanks in advance for any suggestions as to what the problem might be.

Question by The Skinnerz   |  last reply


AVR microcontroller programming help? Answered

I am about to start programming AVR microcontrollers with a USBtinyISP programmer from http://www.ladyada.net/make/usbtinyisp/. The problem is the computer I use is running vista, and the fact that it is 64 bit doesn't make it any better. I tried WinAVR but it didn't seem to be working properly. I happen to have a bootable linux CD, so mayby that could be used with my computer.Should I run linux or can I find some other software that will work with 64 bit vista? What software should I use to program it? Please explain in detail.

Question by dark sponge   |  last reply


AVR sense/PWMing Help!

Hi again! I'm intent on finishing up a few loose end projects of mine, but before I do so, need the following information. How can I sense some resistance or voltage with my uC? I know I can do an a/d conversion, but that only triggers when Vin > some 1 preset value. I'm looking to make an adjustable knob to turn the intensity of an LED up and down. Also, how can I PWM some LEDs with my AVR uC - I can use the tiny2313 or mega8 or tiny 13, but I have no preference. I just need 3 different PWM channels. Any ideas? I already googled, but apparently I'm terrible at finding good tutorials. (oh, and I'm coding in C) The LEDs will be inserted into this nice, custom built (by myself) welded devil duckie. Horns and tail will turn to control RGB. Thanks a whole lot, -Muffin

Topic by T3h_Muffinator   |  last reply


Avr Dragon and Arduino 0022?

I just got my new avr dragon from atmel and i was wondering if anyone had a programmers.txt file i could have that include the dragon i dont know enough to write my own for it but i thought id ask the community.

Question by hightekrednek2396 


Help with AVR servo controller

I have a bunch of ATtiny 2313's, an arduino, and plenty of resistors, other ICs etc. I want someone to help me program and build a ATtiny 2313 based servo controller, that must work from a single, inverting input (each direction moves the servo to the right or left, only needs about 90 degrees of movement, so 45 in each direction). I don't have a programmer, but apparently you can program them from arduinos, so you would also need to show me how to set up a breadboard and some code to program the servo controller code to the ATtiny. If someone could help it would be great, its for a project but I have never done anything with AVRs before and I have only used my arduino a few times to make LCD drivers etc.

Topic by andy70707 


AVR, Variable resistors, USB

Hello everyone,What a great site this is, I've only seen like 50 projects so far and I know there are an incredible large amount still left to discover on the site.. for all of you who write the guides and articles, great job! =)So on to my questions..I'm trying to learn how to build and program a circuit with an AVR uC. Previously I've played with NE555 circuits and I've connected those normal HD44780 LCDs to the LPT port and so on..I've also worked with repairing TV sets earlier, replacing both normal components and SMBs..So I got some basic knowledge of soldering and reading schematics, so thats no problem.However the programming part is more problematic and also how to connect some components to the uC.. My wish to learn is how to connect variable resistors to the uC and connect the uC to a computer (via USB perhaps) and then read the values there and perhaps sending them further to another program.More simple, I want to be able to connect a variable resistor to a uC and then be able to read the value and use that value on the computer..In the long run, what I want to accomplish is a similar piece like the Aurora open source mixer. http://www.auroramixer.com/But first I want to learn how to connect lets say 2-3 variable resistors, which I believe should be connected to the ADC channels on the uC, right? Together with a low value resistor between the variable resistor and the uC, I've got that info from somewhere so I hope I'm on the right track.Ok, so that's quite simple, I guess.. But then, how do I read the values on the uC? I think the uC should poll the ADC pins with a few milliseconds in between, or does it work in some other way? Before I connect it to a PC, a simple way to see if it works would be to send the "value" from the variable resistors to a led for each resistor and increasing or lowering the brightness of the led depending on the value from the resistor.That should be quite simple to rewrite when hooking up the uC to a computer, just forward the info the PC instead of to the led.. or to them both perhaps..What would the code be for doing such?My "problem" as most people think, is that I learn by examples, not by books or pages on the net with advanced explanations.. I need to have it quite simple, even though I have no problem learning new stuff..I've been working with PHP programming for a few years and even though I know its far from PHP in a uC, its still programming so I have some sort of basic thinking, which I hope will be handy somehow =)I've searched through the net, also searched AVR Freaks and I've even asked on the forums of AVR Freaks who tells me, sure you can do that, you just have to start programming.. But I really dont know where to start..I learned PHP by downloading examples, see what they do, change a bit and see what happens and so on.. Sure I can do that with the AVR as well, but there are no examples that even read just one pin with a variable resistor connected.. if I had that I would be able to duplicate and make it read on more pins and so on..I should be able to emulate the code somehow with the AVR developer software, so somehow I should probably be able to emulate a variable resistor and find out what values I get from it.. but I havent been able to get something like that working either..Finally, I'm now writing here cause this page hosts a great load of great guides, from "how to sew your own panties" to "building your own waterbottle rocket".. and because I didnt get that much help from AVR Freaks..so you guys are my last hope, I hope you could help me out..// Chrisps. if someone would be interested in making a guide on how to accomplish this and perhaps even connect the uC over USB to a computer, that would be the best thing ever ;) but I'm not gonna go that far, just some help would be enough.. hehe .ds

Topic by toffie   |  last reply


Need AVR debugging/help

Here's my setup, I'm building an electronic car that needs to go a predetermined distance for a contest. We get the distance right before the challenge, and then my team is going to program it into the avr. We get distance feedback via an encoder wheel and a phototransistor with IR LED. The phototransistor pulls the pin (PB0) up. Do I need a pulldown resistor? The code powers a motor through a transistor via PB4. There is a calabrate function so that we can enter the distance on top, the calabrate function will turn it into a useful number, and then the code will run. The motor runs until the calabrated number is reached. Unfortuanteley the code doesn't work. Any help, please? I'm probably not specific enough in this little paragraph, so please leave a comment if this doesn't make any sense.The target uController is the attiny13/attiny13acode (this is one of the first AVR codes i've made, with the help of other team members):#include #include #include #define mmDistance 5 // the required distance in millimeters // For the aTTiny13a/*pinout:1) PB5, RESET2) PB3, CLK3) PB44) GND5) PB0 MOSI6) PB1 MISO7) PB2 SCK8) VCC*/ // Input from encoder wheel is PB0 (physical pin 5) // Output to motor is PB4 (physical pin 3)int Calibrate(int x) // Calibrate converts distance to set{ int y; y = x+3; return y;}int main(void){ int clickDistance, setDistance, on = 0; clickDistance = 0; // clickDistance is the distance travelled so far DDRB = 0b00001000; // setting outputs and inputs 00001000 setDistance = Calibrate(mmDistance); // setDistance is set distance in clicks PORTB = 0b00001000; // turn on motor on = 1; //on tells if previous sense had button on or off while(clickDistance < setDistance) { // while loop if(PINB == 0b00000000 && on == 1) // button off, previous true { clickDistance = clickDistance+1; // increments clickDistance by 1 on = 0; } if(PINB == 0b00001000) { on = 1; } } PORTB = 0b00000000; // turn off motor _delay_ms(5000); return (0);}

Topic by guyfrom7up   |  last reply



how do i use the ADC present within the ATtiny 861v microcontroller?

I want to convert a input analog signal to a Attiny 861V microcontroller using the built in ADC and then use the digital data to be compared to some prespecified value. Im using AVR studio and ISP mkII programmer. What is the C code i should use to do this

Question by sve   |  last reply


Hi. Anyone working with AVR ZigBee (Freescale chip)?

Hi. Anyone working with AVR   ZigBee (Freescale chip)?

Question by GusPS   |  last reply


AVR Dragon vs USBtiny on Mac?

I am trying to decide between buying an AVR Dragon and a USBtiny. The USBtiny seems nice and simple, but the AVR Dragon has more features. Do the extra features of the AVR Dragon work on a Mac, or should I just save the money and buy the USBtiny?

Question by Ethanal   |  last reply


How do you read a digital input on an avr in c? Answered

The type of input I am talking is one 0 to 255.

Question by sotsirh194   |  last reply




Attiny84 is not working and frezes

Hallo,i have uploaded the program for several Attiny84, some of them working perfectly and the rest are not sending any signals. i checked the Fuse sitting, it is right because i compared with the other working attiny. i tried to upload the program by Atmel studio 7 much times but it is not working. i can see from atmel studio that the program uploaded and the fuse sitting is right my experience in AVR is not really good. could i someone help methanks in Advance

Question by chabs123   |  last reply


Divide by 8? Answered

What is the purpose of using divide by 8 in avr programming? Without knowing more about this is seems like the long way around.

Question by WWC   |  last reply


How do you use an analog to digital converter?

I am fairly new to electronics and want to know how to use an analog to digital converter with an avr microcontroller preferably in c. I do not mean the built in one.

Question by sotsirh194   |  last reply



Why the stipulation of using the Arduino IDE, and not the Arduino hardware?

I see that the new Arduino contest rules stipulate that your project must use the Arduino IDE. I was actually thinking of making a cool new Instructable using an Arduino Mega, but using avr-gcc instead of the Arduino "framework". Would that be permissible for entry into this contest?

Topic by matthewbeckler   |  last reply




How many AVR projects have there been on Instructables since its inception?

How many of the projects on instructables have used an Atmel AVR microprocessor?

Question by sylviebarak   |  last reply


Determining frequency of processor And AVR O.C. ?

So This question has two parts.... i need to measure the frequency of a computer processor.....and an avr microcontroller........ actually i want to know weather it is possible to connect a arduino to a pc's processor through wires or an avr through wires to a secondary system like an arduino which will measure the frequency....... and is it possible to overclock an avr ? if yes , then how can i ?

Question by _Boltz_   |  last reply



Do different AVR microcontrollers have different ISP pins? Answered

I am building an avr programmer shield for an Arduino. I need to know if all 8 pin/14 pin/20 pin/28 pin/40 pin avrs have the isp pins in the same spot. In other words, is every 8 pin avr going to have it's isp pins on the same 4 pins, or are there variations?

Question by Teslaling   |  last reply


AVR ISP power supply through parallel port

Hi I am building an AVR ISP and it requires a 5V power supply (for 74LS541 and the AVR). I have done some googling but found it to be confusing. Does anyone know how to get a 5V power supply from the parallel port? Thanks

Topic by J50Nunlimited   |  last reply


Can i use an avr microprocessor to output a specific current?

If anyone has some arduino code or something for an attiny 13 it would help alot!

Question by DELETED_cdousley   |  last reply


Help me in Programming my Avr......

Ques :- How to program avr using BRiCS Development board (avr 333) and usbtiny. I am new to avr programming....? When i used avr dude and entered following command i got this :- command by me ::    -c usbtiny -p m16 -P usb Avrdude's response :: avrdude.exe: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. Do i need to give external power to the board or it uses USB's Power supply....... WHY IT IS HAPPENING. Pls Help me.....

Topic by techieman   |  last reply


UART programming for AVR Butterfly help

Hey everyone, I need help with programming the AVR Butterfly with an FM transmitter code that I found on the net. I have all the pieces soldered together (nothing exploded or smoked) and I am trying to upload a file, however, I cannot get it to connect to the BASIC Stamp adapter from serial-to-UART. What I have: Usb-To-Serial Basic Stamp Adapter AVR Butterfly (Butterfly is being programmed through the UART ports) I am using AVR Studio 4 to upload the code, but it will neither confirm that the serial cable is there nor after doing the holding-the-joystick process to tell the butterfly to go into programming mode for the program to see it. Am I doing something wrong? Or is there an easier program to upload the code? I also have Visual Studios '05 and the Basic Stamp program from the Parallax website. If its any good to say, I also have the USBTinyISP programmer that can connect to the ISP ports on the Butterfly. Any help would be appreciated!

Topic by KT Gadget   |  last reply


How to drive serial data via (shift registers) AVR?

Is there some sort of code that will allow easy serial data tranfser from an AVR to a shift register (specifically the max6921 driver)? Thanks

Topic by guyfrom7up   |  last reply


How can I programme a AVR microcontroller with this board?

How can I programme a AVR microcontroller with this board? I got this board frm a frnd.....I wd like to knw how can I programme a AVR microcontroller with this board? Will I need a separate usbisp programmer r this is enough..... r a makeshift arrangement can b done....

Question by chatsbk007   |  last reply


Programming AVR in C (Help me!)

Hi! I've been trying to figure this out, and I can't seem to find the answer. I've seen it done in Assembler, so it is possible. I'm using ATiny2313's, if it makes a difference. I want to know how I can output a negative voltage through a pin. I'm trying to do some multiplexing. Thanks. I just started with AVR microcontrollers.

Topic by zachninme   |  last reply


How to program an AVR barebone atmega328?

HI,ALL Now i want to program an barebone atmega328,I searched the net for methods of doing so,the rock that i bumped my head on was the 'boards'file.I bootloadded the chip with ISP method, then found the 'boards file' stating 'barebone atmega328 with internal 8M crystal'.the case i am using is an external 16M crystal.as the test rerult is not what it turn out to be,so i want to know if the 'internal 8M crysta' is OK?

Question by gada888 


USB, AVR, and PICs! Oh my!

Heya! I come from a pretty solid CS background, so I'm trying to wrap my head around the concept of EE projects.  I've got the basics of circuit design down, but I'm getting a little bogged down researching how to interface USB<-->ICs.  While I know efforts like Arduino provide a significant amount of pre-built software and hardware that can accomplish most DIY projects, I would really prefer to learn/have control over the whole software stack (and as much of the hardware stack as possible) from App to Userspace Driver to Kernel Driver (I've written a few, but never actually built my own circuitry to talk to).  I'm looking to learn for some resources on how to interface at a low level.  I wouldn't shy away from writing my own PIC/AVR/??? bootloader if it means I have more control over the communication stack.  I'm sure I'd be re-writing a lot of the Arduino/AVR software that's out there, but hey, I see it as a learning opportunity... right? :) It seems that FTDI makes some USB/UART(Serial) chips that many of the sparkfun-esque USB->Breadboard adapters are based on.  From what I can tell though, most of the chips do literal USB Full/Low speed->115200 bit/s Serial connection.  This seems like an awfully large downsample of the possible communication bandwidth... Is this how things like printers, external hard drives, and webcams work? So, in short, if I was going to write my own USB stack/drive/kernel module to go along with a custom IC bootloader, how would I go about it? Are there any resources out there describing how one would go about this? Thanks for your time! 

Topic by skyfire360   |  last reply


How do I read an ADC with an avr?

The adc is external and 8 bits. I just need to know how to put the individual bits in the sequence. The adc uses an spi interface.

Question by sotsirh194 


how AVR fitted within a circuit programmed?

I want to know how the circuit should be modified so that it can be programmed through ISP programmer while it remain on the circuit no need to take it off. a link or diagram might be useful thanks

Question by UmerJavaid   |  last reply