Problem connecting my AVRISP mkII to my ATMEGA32 microcontroller

Thread Starter

kamppis

Joined Oct 26, 2013
2
Hello everybody, nice to meet you :). I have a history with arduino and decided to start learning microcontrollers. I went and bought AVRISP mkII to upload my code to the microcontroller. I have fought couple days now and still no luck. It seems my PC recognize the AVRISP but the AVR isn't recognize the microcontroller. I'm not sure if i am doing something wrong or is the controller broken. I hope you guys can help me. I took a pictures to help you guys understand the situation.

So this is the collection:
http://imgur.com/a/xw8B2

1. picture is my device bottom. It is really the AVRISP mkII.
2. picture is my device when i plug the USB. Is this correct?
3. picture is end of my device. I added another link where is shown pins i connected. Could you guys check that i did it right?
4. picture is my microcontroller. ATMEGA32 16PU 1130
5. picture is my device manager. AVRISP is under "jungo". Is it supposed to be like this?
6. picture is when i start my Atmel studio. I go to device programming
7. picture is in programming. The studio finds my device.
8. picture is when i try to read. The error appears.

Finally picture of my connected pins:
http://i.imgur.com/NtqMnZQ.jpg (sorry, PIN11 is not reset, it is GND)

I have no luck in any way. I tried to use WinAvr program too, but it wont recognize my device and i cannot upload the code. I really hope you could help me out guys.
 

Shagas

Joined May 13, 2013
804
Have you connected power to your microcontroller? :)

I don't see any power connected to your breadboard so you probably assumed what I assumed when I was starting with the avr.

The mkII does not provide power . You actually have to connect your 2.8 to 5volts + ground to your breadboard (microcontroller) for the mkII to work .

Also , this is a great forum for everything concerning electronics in general but should you require future help with AVR specifically then I'd suggest AVRfreaks:

http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewforum&f=3

Also , another good place to start is the site linked below .
He uses the atmega32 so you can relate . Even though I don't like his methods and his way of explaining things sometimes , I still learned quite abit when I was starting out so I recommend it.

http://www.newbiehack.com/MicrocontrollerIntroductionABeginnersGuidetotheAtmelAVRAtmega32.aspx
 
Last edited:

Thread Starter

kamppis

Joined Oct 26, 2013
2
Thank you! That worked great! Not i can read and program my microcontroller! Yet, when one falls another foe rises. My controller only works when avrisp is connected. When i unplug it microcontroller stops working and after i plug it in, it immedialy starts working again.

I have read that capacitor between + and ground might do the trick, what do you think? I dont have them yet so i havent tried. Also, somewhere someone said, that i should change the fuses, but i dont know how. Could you help me out?

And thank you for the link. I will surely check it out!
 

Shagas

Joined May 13, 2013
804
Hmm strange . Well I always have a few ceramic caps between the VCC and GND near the microcontroller but I don't think that's the issue.
Try putting a 7-10k resistor from the RESET pin to VCC .

How many volts are you powering your ATMEGA32 with?

I don't think you need to change anything in the fuses.. they should be fine by default.
 
Top