| Author |
Message |
|
|
Posted: Jul 15, 2010 - 04:34 PM |
|

Joined: Jul 14, 2010
Posts: 10
Location: India
|
|
WARNING: some users have reported that the PDF's on the website linked from this post are infected with a virus. Suggest you do not access the site.
Hello viewer,
This tutorial is intended for those who are new to AVR and want to program a AVR microcontroller as easily and quickly as possible.
This is a step by step tutorial with an example code.
So far I found that WinAVR is the best option to write a code and also program the microcontroller. Although there are other environments such as AVR Studio (free sofware provided by ATMEL itself) and ECLIPSE IDE etc, but I found WinAVR easier, especially if you are using a USBasp Programmer to program your microcontroller.
These days most of the laptops lack the serial port, but USBasp give the power to program the microcontroller using USB protocol. Hence it is easier and of-course it is an open source. We can also make it at home.
In this tutorial we will use the followings:
1.WinAVR software
2.USBasp AVR Programmer
Please go to the mentioned site for more details:
http://www.robozaa.co.cc/tutorials-avr-t6.htm
NOTE: This tutorial is the same as the Tutorial titled "Writing the First Code" by the same author.
There I could not add a PDF file which could be downloaded so I have added it here.
Please feel free to download for future reference. |
|
|
| |
|
|
|
|
|
Posted: Jul 15, 2010 - 05:10 PM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
|
|
|
|
Posted: Jul 15, 2010 - 07:21 PM |
|

Joined: Jul 14, 2010
Posts: 10
Location: India
|
|
|
clawson wrote:
This reads like a confused version of the "•Installing and Configuring WinAVR" link on:
Kindly read the full tutorial. You will notice that it has nothing to do with installing and configuring winAVR.
Infact it is about how to write code with winAVR and program a mcu with winAVR.
nothing about installation here.
It might seem confusing... if only read...but if done practically along with reading then only you will understand its true potential...
no need to search for .hex file.......
no need to go to command prompt and write a long code
for AVRdude everytime you program your mcu...
its hassle free..
in this sense it is better... first try then comment... |
|
|
| |
|
|
|
|
|
Posted: Jul 15, 2010 - 08:15 PM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
I DID read the full PDF - load of utter tosh if you ask me. You clearly did NOT read the document I linked to or you'd have read that it was all about setting up Programmers Notepad and getting to the point of compiling/programming the first program.
This all seems like trolling of the first water to me. |
_________________
|
| |
|
|
|
|
|
Posted: Jul 15, 2010 - 08:24 PM |
|

Joined: Jul 14, 2010
Posts: 10
Location: India
|
|
I did read your stuffs.
But I think that my tutorial is probably best suited for a new comer. Everyone has his views so do you ans so do I.
Anyways thanks Clawson for your wonderful comments.  |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 04:25 AM |
|

Joined: Dec 30, 2004
Posts: 8788
Location: Melbourne,Australia
|
|
| I especially like the 7805 oscillator. With no capacitors, it will most likely be an oscillator rather than a voltage regulator. |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 04:48 AM |
|

Joined: Jan 30, 2005
Posts: 853
Location: Junction City, OR USA
|
|
Perhaps a method for vetting is needed in order to keep the quality of tutorials high. Maybe post them in a "sandbox" for peer review before committing them to the tutorial forum. The integrity and accuracy of tutorials, no matter how basic is a must.
Rick |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 05:56 AM |
|

Joined: Jul 14, 2010
Posts: 10
Location: India
|
|
|
|
|
|
|
Posted: Jul 16, 2010 - 06:32 AM |
|

Joined: May 02, 2007
Posts: 3022
Location: Nieuwegein, Netherlands
|
|
Why on earth are you showing the atmega16/32 as a header in your schematic. specially for beginners this is the most stupid thing to do as they have to do at least one step more in finding out what pin they connected their io to.
also when you post a schematic again, make it a good schematic. You for sure did not connect any power supply nor did you even mention in your schematic where they should go to. This is a thing that people should not have to think about when reading a tutorial on software. They should just be able to take the schematic as is copy it and then use the software to learn.
I also think the tutorials should be placed here and not on a third party site. So post it here if you think it is usefull for new commers, then when your site will be gone in a few years then the tutorial still stands.
As more and more junk( to say it the hard way) gets posted here, probably to get the attention of the forum for other things, I'm also very in favour of a sandbox to filter the placed content. We have to keep the level of the tutorials up as we are directing more and more people to it for help.
Kartman, I have once made a switched power supply with a LM317 for fun. There is even an app note describing it, so it can be done. I never used a 7805, but as it is more or less identical to a 317 that should also work. Did not read the tutorial, so it could be a crappy design though.
regards |
_________________ 1)Datasheet and application notes checked?
2)tutorial forum
3)Newbie start here
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 06:48 AM |
|

Joined: Nov 29, 2007
Posts: 3219
|
|
|
meslomp wrote:
I also think the tutorials should be placed here and not on a third party site.
But the whole idea is to promote his own website. Making advertising money and all that.
One of his "projects" is already marked down on the cleaner thread because of shameless spam http://www.avrfreaks.net/index.php?name ... 660#723660 for his site, and his first thread posting http://www.avrfreaks.net/index.php?name ... mp;t=95812 is also blatant spam for the site.
BTW, he got the idea for doing that stupid tutorial from his first thread, where people tried to educate him what the tutorial forum is intended for.
I'd say, delete all his threads, and his account. He is just a spammer trying to fly under the radar. |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 07:26 AM |
|

Joined: Jul 14, 2010
Posts: 10
Location: India
|
|
TO meslomp:
Actually the circuit that i posted here was not posted properly. So I have given the Link.
Also if you had the time to read my tutorial then you would know that I clearly mention that
Please refer the following if you haven't already, before proceeding.
1. Basics of MCU
2. Ports and Registers
With links ofcourse
In the 1. Basics of MCU.... it has been clearly mentioned how to connect the MCU to power supply and ground.. and stuffs like connecting the external crystal etc.
So no need to explain such things again in tutorial which is meant for understanding the process of programming avr using usbasp and programmers notepad.
To ArnoldB:
OK... So you think that you are a smart guy...
Well you are absolutely right "the whole idea is to promote his own website. Making advertising money and all that." except that in my website I do not have any unnecessary advertises (except for the one who is hosting my website....will you pay for my hosting? ..) and i am not even selling anything there ...Please dont be a dumbo
Please grow up. Let the administrators decide what to do with my accounts and postings. There are people there (unlike you ofcourse) who does support my efforts....
Why should I do the same hard work once again... writing the matter and stuffs when it is already available online...
Would you have not done this if you had a website...
I bet you did...
Anyways be cool... |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 07:30 AM |
|

Joined: Dec 30, 2004
Posts: 8788
Location: Melbourne,Australia
|
|
| meslomp - the switching supply idea came from a National app note methinks. In an old Panasonic dot matrix printer the 7805 was made to work in this manner. From what I recall there was a pnp transistor , a series resistor, 7805, an inductor and schottky diode. voila' one switchmode. It had me scratching my head when I first saw it. |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 07:56 AM |
|

Joined: Nov 29, 2007
Posts: 3219
|
|
| sa4250mnpo70, thanks for proving beyond doubt that you are an incompetent idiot. With your statement that you just want to promote your website I can now list you in the spam deletion thread. |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 07:57 AM |
|

Joined: Jul 14, 2010
Posts: 10
Location: India
|
|
|
Kartman wrote:
meslomp - the switching supply idea came from a National app note methinks. In an old Panasonic dot matrix printer the 7805 was made to work in this manner. From what I recall there was a pnp transistor , a series resistor, 7805, an inductor and schottky diode. voila' one switchmode. It had me scratching my head when I first saw it.
Ha ha ha...
Thats very funny... yup.. i would have also scratched my head then...
Anyways actually the reason behind using 7805 is that it is cheaply and easily available in my country but
LM317 is also used sometimes.
In my future projects I might use LM317... I bought it recently... but trust me 7805 works!! We are all using it.. even for industrial applications sometimes. |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 07:59 AM |
|

Joined: Jul 14, 2010
Posts: 10
Location: India
|
|
|
ArnoldB wrote:
sa4250mnpo70, thanks for proving beyond doubt that you are an incompetent idiot. With your statement that you just want to promote your website I can now list you in the spam deletion thread.
I think that you need English lessons.
Please understand the meaning... and you may do whatever you want..
Thank you |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 08:05 AM |
|

Joined: Nov 29, 2007
Posts: 3219
|
|
|
sa4250mnpo70 wrote:
I think that you need English lessons.
Yes, I do. But please not from you. Your teaching skills are, well ...
Quote:
and you may do whatever you want..
And you are now listed on the spammer reporting thread.
Quote:
Thank you
You are welcome. |
|
|
| |
|
|
|
|
|
Posted: Jul 16, 2010 - 10:05 AM |
|


Joined: Jul 18, 2005
Posts: 62354
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
|
Quote:
Please grow up. Let the administrators decide what to do with my accounts and postings.
Very well. |
_________________
|
| |
|
|
|
|
|