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 6 years ago  |  last reply 6 years ago


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 7 years ago  |  last reply 7 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.

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

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

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

Topic by lifelong-newbie 11 years ago  |  last reply 11 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.

Topic by guyfrom7up 11 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! 

Question by ShuvamP 3 years ago  |  last reply 3 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.

Topic by Dantex 11 years ago  |  last reply 11 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.

Question by sotsirh194 10 years ago  |  last reply 8 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.

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


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 10 years ago  |  last reply 6 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; } }  

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

Question by Nr-Think different 7 years ago  |  last reply 7 years ago


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

Question 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

Question by sve 7 years ago  |  last reply 7 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.

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

Question 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

Topic by T3h_Muffinator 11 years ago  |  last reply 11 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.

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

Topic 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

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


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 10 years ago  |  last reply 10 years ago


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

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

Question 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?

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

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

Question 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?

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

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


How well can you debounce a switch with a cap?

Question 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?

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


Better basic language or C language for programing AVR microcontroller ?

Question by Rendydevara 9 years ago  |  last reply 7 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?

Question 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 ?

Question by _Boltz_ 2 years ago  |  last reply 2 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?

Question 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

Topic by J50Nunlimited 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!

Question by DELETED_cdousley 8 years ago  |  last reply 8 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.....

Topic by techieman 4 years ago  |  last reply 3 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

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

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

Question by sotsirh194 10 years ago


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 usbg3rd 7 years ago  |  last reply 7 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.

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

Question 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

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


Atmel AVR IDE/assembler won't run (Windows 8)

I'm trying to write some code for my AVR in assembly, but I cannot get either the Atmel studio 6.0 (with or without sp1) or AVR32 studio 2.6 to run. Studio 6.0 with the service pack states that it will work on windows 8 but consistently gives the error message "The application was unable to start correctly (0xc000007b)". AVR32 generates a Java error. This is consistent across all compatability settings and running as administrator. This is on a pretty much clean install of windows 8 pro x64, with all updates and the latest release of both 32 and 64 bit Java. All other software has installed and run without issues, including the equivalent software for microchips microcontrollers. I would appreciate any suggestions as to how to get this software to run, or any alternatives that may work. Thanks in advance for any help.

Question by The Skinnerz 6 years ago