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



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



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

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

Asked by GusPS 8 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



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 9 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 5 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 4 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 8 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 9 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 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 8 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


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

Posted by akshayjadhav 6 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 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 7 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_ 1 year 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 3 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 6 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 9 years ago


how usb programmer works?

I'm using usb programmer for AVR microcontrollers.How it works,which program is there in microcontroller on it?

Asked by 8 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

Asked by usbg3rd 6 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 9 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 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.

Asked by andy 7 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 5 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 5 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.

Asked by The Skinnerz 5 years ago


how do you compile code in avrdude? Answered

I do not understand how to compile c code in avrdude?

Asked by sotsirh194 9 years ago


Makefiles and Hex files

I am sorry for my stupidity but I am no AVR programmer. Here is my trouble. I am not so sure how to create a makefile in winavr or a hex file from some source code that I have. Whenever I do have code, it already has the makefile and the HEX file. Also, if you edit source code is the HEX file going to change too or will it stay the same? I noticed, that although an ATtiny85 is supposed to be compatible with the ATtiny25 when I try to program code into an ATtiny85 with ATtiny25 it doesn't work. Is there a place I change it to work with the ATtiny85...?

Posted by blinkyblinky 6 years ago


Makefiles and HEX files?

I am sorry for my stupidity but I am no AVR programmer. Here is my trouble. I am not so sure how to create a makefile in winavr or a hex file from some source code that I have. Whenever I do have code, it already has the makefile and the HEX file. Also, if you edit source code is the HEX file going to change too or will it stay the same? I noticed, that although an ATtiny85 is supposed to be compatible with the ATtiny25 when I try to program code into an ATtiny85 with ATtiny25 it doesn't work. Is there a place I change it to work with the ATtiny85...?

Asked by blinkyblinky 6 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 8 years ago


Attiny 2313 & Serial Port

Is it possible, using just an Attiny 2313, to exchange data with a computer via serial -- or do I need one of those RS232 chips?Theoretically, I think I can, using the digital IOs, dispite its lack of efficiency, but there may be some problem with that...Sending is the main part that I'm not quite confident about ;-)

Posted by zachninme 10 years ago


burning a hex using arduino isp

I had programmed attiny with arduino via arduino as isp . I was programing with atmel studio for a while and wanted to burn the hex file to a chip using arduino isp. i tried a lot but always  was unsuccessful  stk500_getsync(): not in sync: resp=0x00 popped  ny idea how to get rid of this and program it

Posted by geekrex 2 years ago


How do I use a 3.3v micro with 5v signals & transistors?

I need some help with a gap in my electronics knowledge. How do I use a 5v signal as input to a 3.3v micro controller, and inversely how do I switch a transistor with 5v load, from the same micro's output pin? (@3.3v)? Can I just use a suitable resistor on the input pin, and for the output can I simply drive the 5v transistor with 3.3v at the base?

Asked by NathanWilliams 7 years ago


I want some one to help me at making RC car controlled by wifi esp2866 and AVR atmega 32?

Greetings,iam mustafa,working right now as it technical support engineer for 3 years and 7 months .I have never made project for RC car or any project related to embedded systems as i was always scared and think that people who create these things are super smart and iam not smart enough .i always wish to work as embedded software engineer but i've never made a project in real life. i studied c programming and materials related with avr architecture and had many interviews but i fail always .At last interview, i'd failed and the interviewer asked me to do a project so that i get better .i decided to challenge myself and build an rc car .i asked a friend of mine to help me in project& i made a code using atmel studio IDE and simulator(proteus) to test my code..my code could move the dc motor right ,left and backward and forward till this moment on the simulator (proteus software) .After while i was sick and my friend was busy as he traveled abroad cause of his work.and iam very disappointed as i didn't finish my project .i get older and i want to make a shift career and work as an embedded software engineer but iam afraid that i won't achieve my dream . i hope this post will give me a hope to continue the path of achieving my dream careeri have bought this things: 4 DC motors 12 vwifi moduleH bridge moduleresistors and wires and breadboard===============================i hope that i find some one who is patient and keep an eye on me while i do the project .Thanks all

Posted by MustafaS72 13 days 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 9 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 10 years ago


Getting error during upload code? Answered

HI I am using macbook and arduino uno. i am unable to upload code. keep getting error. There was already one sketch in arduino from previous software that one still work fine. but can not able to upload new sketch even if i try same sketch. this is the error i will get every time /Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ar: abi.cpp.o: plugin needed to handle lto object/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ar: main.cpp.o: plugin needed to handle lto object/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ar: core/new.cpp.o: plugin needed to handle lto object/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld: /Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so: error loading plugin: dlopen(/Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so, 2): Symbol not found: _environ Referenced from: /Users/mandeepsingh/Downloads/Arduino.app/Contents/Java/hardware/tools/avr/bin/../libexec/gcc/avr/4.9.2/liblto_plugin.so Expected in: /usr/lib/libSystem.B.dylibcollect2: error: ld returned 1 exit statusexit status 1Error compiling for board Arduino/Genuino Uno.

Asked by mandeep82 1 year 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 6 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 3 years ago