avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] avrdude-Problems


From: Robert Cochran
Subject: Re: [avr-chat] avrdude-Problems
Date: Fri, 11 Apr 2014 17:42:34 -0400

Hi Linus,

I think some of your physical connections are wrong.

However, rather than troubleshoot based on your description, I think a few suggestions might help you more.

1. Do you have the datasheet for the micro in your language? Go to the Atmel website, they offer the datasheet for free. You really need it.

2. There are many guides on the internet for how to "blink and LED" with an AVR micro. You should consult one that offers photos and shows the circuit connection. I have the Atmega 32 and Attiny84 parts sharing a breadboard and I have been following the YouTube videos of a particular website. This one is pretty good, perhaps you can get it translated to your preferred language. I'm ashamed to say that all I understand is English.

https://www.youtube.com/results?search_query=newbiehack%20microcontroller&sm=12

3. If you have a personal website somewhere, you might want to take photos of your project under good lighting and post the photos there. You want to make sure that circuit connections are easy to separate and identify in the photos. Then perhaps someone might be able to view the photos and help you. I don't think list members normally send photos to the avr chat list. They likely get removed anyhow by the mailing list software.

4. Going to an introduction to Arduinos class is very helpful if you can find one in your area. The cost of materials and instruction is worth it.

Thanks

Bob Cochran
Greenbelt, Maryland, USA





On Fri, Apr 11, 2014 at 12:31 PM, address@hidden <address@hidden> wrote:
Hello again,

First of all I'd like to thank you for your answer, it was very helpful and that part now works perfectly fine. Just, the behaviour of the microcontroller keeps confusing me: After I got the right connection to the programmer, everything worked, except the programming itself: there I got a 'mismatch error'. After searching the web for an answer, I found,  that it might have something to do wih the frequency with which the controller is being programmed. So I changed the baud-rate (no idea what it actually is) from default to 300 (useing AVRFuses), whereafter programming resulted in a 'success', which I thought to be a good sign. So I wrote a smal program to try wether it really worked (well, I wrote it beforehands, or I could not have tried to write the .hex-file to the controller; see in the appendage for the program and the .hex).
As a board I soldered a power supply with three 1.5V batteries and a capacitor of 47microFarad, to plan the voltage, inbetween the GND/4.5V and a seperate part consisting of a LED-Diode (the side where a part is cut off towards PD1) and a resistor (470ohm) combined serial, with one end to 4.5V and one end to PD1, and a push-button between 4.5V and PD2 (the aim of the program is to be able to turn on/off the LED by pushing the button). Additionaly I connected the RESET-pin to 4.5V to avoid a reset.
Well, when I connected the power supply (4.5V as well to ARef and AVcc) to the rest nothing happened. The voltage was fine, except the part, where the microcontroller should have worked: neither the LED nor the push-button had any voltage. Afterwards I read the flash-memory with the help of AVRFuses to check wether programming had really worked. It took a long time until completion and when I checked the .hex-file (see Try1.hex) it was different to what I had progammed... After several trys and checkings I had to forfeit...
Once again I would be most grateful if you could help me!

Best regards,
Linus
_______________________________________________
AVR-chat mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/avr-chat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]