0

I am new in this Arduino coding world and I was trying to make a project. I normally used Arduino Unos all the time, but I was facing a problem and that is that the Arduino Uno has only 13 digital pins and 6 analog pins, and some of my friends advise me to use an Arduino Mega, but that costs too much, some to my friends also tell me that I could use only a Atmel chip, which will save money.

But the problem is that I can not burn these chips without a burner. I see online that Arduino Uno has Arduino ISP options also that will allow you to bootload or upload Arduino sketches to those kind of chips, but I have been trying for over 3 months and I cannot figure out how to do that

At present I am working with the ATmega8 chip.

This is my problem:

avrdude error - 1

Using stk500v1 but the problem is not resolved

avrdude error - 2

17
  • 1
    How many pins do you need? It is actually 19 digital pins and 6 analog pins. The analog pins can be used as digital pins. A typical issue when using an Arduino as an ISP is forgetting to use a resistor or capacitor connected to the reset pins to avoid reset and running the bootloader. The ATmega8 might be an issue as well. Which core are you using for that? Commented Jan 10, 2016 at 13:04
  • 2
    I hate to be that guy, but a USBasp clone costs little and would likely be delivered long before 3 months had passed. Commented Jan 10, 2016 at 20:20
  • 1
    Do not really see how that would help :) This is all about helping with hardware debugging (as I see it). Small steps forward to understand where the problems are. Even better would be to just sent the HEX file off to a company that did all the work for you. But where is the fun in that. Commented Jan 10, 2016 at 20:43
  • 2
    It wouldn't solve the problem, but it would get the job done. Which is why I posted it as a comment instead of an answer. Commented Jan 10, 2016 at 20:47
  • 1
    You say the problem "needs 22 digital pins and 7 analog pins" which is 29 pins. ATmega8/16/328 come in 28 and 32 pin packages. Several pins are used for ground and power, and the reset pin should be left free too. So it is not possible to have 29 pins. So what is your plan to create 29 I/O pins? The options are: a) use multiple ATmega chips, b) use some sort of I/O extender (e.g. shift register, multiplexer, etc), or c) use a different chip?
    – gbulmer
    Commented Jan 10, 2016 at 22:05

1 Answer 1

1

First thing you need to do in this situation is to crank up the verbosity level on the invocation of avrdude. You do this by adding one or more -v flags to the command line. With -v -v -v -v, you get maximum verbosity.

From your two logs, it appears that the initial handshake with the microcontroller was successful (which would indicate that your connections were good), but then the signature reading turns out quite badly. This is a rather unusual combination which makes me wonder whether you may have misidentified what microcontroller you have.

3
  • I was just trying in our way, and this is the result, Commented Jan 11, 2016 at 6:02
  • softbazz.com/main.html Commented Jan 11, 2016 at 6:23
  • That confirms that the initial handshake was good, so your connections must be OK, but that somehow a nonsense signature was read. This is puzzling. Unfortunately, the ATmega8 is quite old, so I'm not sure what could be going wrong here. Commented Jan 12, 2016 at 0:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.