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

Posted by akshayjadhav 7 years ago  |  last reply 7 years ago

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

Posted by feebo 6 years ago  |  last reply 6 years ago

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.

Asked by axodus 8 years ago  |  last reply 4 years ago

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.

Posted by gimmelotsarobots 8 years ago  |  last reply 4 years ago

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.....

Posted by techieman 4 years ago  |  last reply 4 years ago

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.

Posted by lifelong-newbie 10 years ago  |  last reply 10 years ago

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.

Posted by guyfrom7up 10 years ago  |  last reply 10 years ago

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! 

Asked by ShuvamP 2 years ago  |  last reply 2 years ago

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.

Posted by Dantex 10 years ago  |  last reply 10 years ago

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.

Asked by sotsirh194 9 years ago  |  last reply 7 years ago

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.

Posted by sotsirh194 10 years ago  |  last reply 10 years ago

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; } }  

Asked by pro2xy 7 years ago

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.

Asked by Nr-Think different 6 years ago  |  last reply 6 years ago

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.

Asked by The Skinnerz 6 years ago  |  last reply 6 years ago

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.

Asked by dark sponge 9 years ago  |  last reply 9 years ago

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

Posted by T3h_Muffinator 10 years ago  |  last reply 10 years ago

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.

Asked by hightekrednek2396 7 years ago

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.

Posted by andy70707 8 years ago

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

Posted by toffie 9 years ago  |  last reply 9 years ago

How do you read the digital output from an adc on an avr in c?

Asked by sotsirh194 10 years ago  |  last reply 10 years ago

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

Asked by sve 7 years ago  |  last reply 7 years ago

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

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

Asked by GusPS 9 years ago  |  last reply 9 years ago

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?

Asked by Ethanal 8 years ago  |  last reply 8 years ago

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.

Asked by sotsirh194 10 years ago  |  last reply 4 years ago

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.

Asked by WWC 5 years ago  |  last reply 5 years ago

How do you use makefiles with avrdude?

I am new to avr and want to know if you can use avrdude with makefiles?

Asked by sotsirh194 10 years ago  |  last reply 10 years ago

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.

Asked by sotsirh194 10 years ago  |  last reply 8 years ago

How well can you debounce a switch with a cap?

Asked by sotsirh194 10 years ago  |  last reply 9 years ago

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?

Posted by matthewbeckler 9 years ago  |  last reply 9 years ago

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?

Asked by sylviebarak 5 years ago  |  last reply 5 years ago

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 ?

Asked by _Boltz_ 2 years ago  |  last reply 2 years ago

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.....

Posted by techieman 4 years ago  |  last reply 3 years ago

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!

Posted by KT Gadget 8 years ago  |  last reply 7 years ago

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?

Asked by Teslaling 7 years ago  |  last reply 7 years ago

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

Posted by J50Nunlimited 11 years ago  |  last reply 11 years ago

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.

Posted by zachninme 11 years ago  |  last reply 11 years ago

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!

Asked by DELETED_cdousley 8 years ago  |  last reply 7 years ago

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?

Asked by gada888 3 years ago

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! 

Posted by skyfire360 6 years ago  |  last reply 6 years ago

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

Posted by guyfrom7up 10 years ago  |  last reply 10 years ago

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....

Asked by chatsbk007 4 years ago  |  last reply 4 years ago

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.

Asked by sotsirh194 10 years ago

Is it possible to map data to values in C (for AVR)? Answered

I am trying to make a USB 8x8 pixel LED screen that will display single characters received over serial emulation. I have a proof of concept device but due to my lack of knowledge of C I'm struggling slightly with a specific aspect of the code. To display a character I need to take the 'source' char (such as 0x41) and look it up in the flash memory of the AVR, returning an array of chars (which will be used to render the character). It would be desirable for that information to reside in its own file (a Header perhaps?) - because this would enable multiple interchangeable fonts. This is certainly possible in PIC micro-controller (I made a program utilising data blocks in Assembler a while ago for PIC) and I can't imagine that it's difficult on an Assembler level for AVR either, but I am unsure what I am looking for in the C language. Any help would be appreciated, Thanks, Drew P.S. I'm a Java programmer but new to C and AVR.

Asked by andy 8 years ago  |  last reply 8 years ago

Howto wire an AVR programmer to a microcontroller-socket? Answered

Hi, i'm bloody new into electronics and i want to make these "animatronic cat ears". I bought an avr-programmer with a usb-jack on the one hand and a 10pin-jack on the other hand, a chip and sort of a exchange-socket (dunno how it's called). Now i'd have to solder the socket (2x8 pins) onto a piece of breadboard and connect it to the 10pin-jack of the programmer  (otherwise i'd have to buy new programmer with socket for expensive 20 bucks). I can't really find the info howto wire things and i'm a lil bit afraid of frying things.

Asked by Luziviech 6 years ago  |  last reply 6 years ago

How many inputs are possible on an AVR-Stick datalogger (for an arcade controller)?

Hi all. I was ordering some buttons and a stick for a MAME cab I'm building and decided to see if I could use an AVR-stick (https://www.sparkfun.com/products/9147?) as a controller interface (my original plan was to hack a Sidewinder). I assumed that as it acts as an HID I could simply assign stick/buttons inputs to keyboard keys and Roberts yer fathers brother, a nice little controller to tuck into the cab! To be honest though I'm not that familiar with this kind of thing and any kind of help or pointers would be awesome. I have 13 inputs in all for the cab but the AVR-Stick only has 6. What's the score with wiring multiple inputs? Would I just use differing values of resistor to send difference voltages to the AVR-Stick? Am I getting it completely wrong? Am I asking too many stupid questions? I'm in your capable hands Instructables folk. Thanks in advance. Zdeevo

Posted by ZdEEvO 6 years ago  |  last reply 6 years ago