I’ve hit a big, annoying, and troublesome snag while trying to get lights into my pack. I just picked up some AVR chips and a programmer to move my Arduino prototyped lights into my pack.
The snag is that I’m unable to program them either with my Arduino (as an ISP) or the programmer itself.
I posted the problem on the Arduino forum, and I’m not really getting the help I am looking for.
Is someone is familiar with “Arduino on a Breadboard,” please pm me. I’m looking for someone who can walk me through the process, rather than me screwing around online trying to club-fist together a solution. My year’s major even in coming up in about 2.5 weeks (I’ve been working on this since Christmas), so I need results.
If neither the programmer nor the arduino are working my guess is either it’s your computer not sending it right, the cable is bad or you have faulty/busted chips.
I have switched the programmer’s drivers over to those that come with Arduino IDE. Are you available to talk in chat/Skype? It might be a little easier to go back and forth.
I don’t really have the time right now to do that. Really busy trying to get a Kickstarter campaign launched for my own electronics project. Besides, it could just be a simple wiring problem.
Post a photo of your breadboard.
Also, what ISP programming device are you using? I know you said you tried using the Arduino as a programmer, but what was the other programmer you tried.
Does that ribbon cable end bridge the gap in the breadboard or is it just connected to the one side? If it doesn’t I don’t see anything connected to the green or yellow wires on the far side of it.
Well the first thing I see is you don’t have any jumpers bridging the ± rails around pin 30. Those rails are almost always broken in the center, so if you’re powering one half the other half isn’t getting power.
The next thing I notice is I think you have the ISP cable’s connections mirrored on the wrong sides.
What I mean is, pin 1 is on the side under the ribbon. Pin 2 is on the side closest to the camera. You can’t just turn the ribbon 180 degrees to fix it, you have to unplug each of the connections and swap them with the wire on the opposite side.
It is bridged across the gap. The header is just bent forwards because the pins aren’t the same length (don’t ask).
@GhostGuy: I must have misread the markings on the header. I’ll flip it and rewire it. In the meantime, can you elaborate on the ± rail? I’m not sure what you mean.
He means the pins you have your positive and ground running through vertically on the board. Typically they’re not continuous all the way down the board, you have to bridge them halfway down. See the jumpers I have in this shot:
Ignore what I said before about pin 1 being under the ribbon. Your ribbon cable is is flipped so pin 1 is on the right side of the connector. I believe this is incorrect, but having it the wrong way round would only matter if you needed to plug it into a keyed header. Otherwise, you can just flip it 180 and plug it in backwards, which you have technically done with how you wired the pins.
Who made that ISP programmer anyway? It might be worth looking at the datasheet just to make sure they didn’t put the red stripe on the wrong side when they assembled it.
Oh and here’s another ISP programming resource showing circuits and mistakes in them. But it looks like you’ve got everything okay there. I assume that’s a 10K resistor.
It’s Atmel’s AVRISP2. I haven’t been able to find a datasheet for it (just pinouts that people have posted). I’ll try flipping the cable and see if that does anything.
One question I have is about a crystal. Some instructions I read say yes. Others say no, as the chip apparently has one. Aside from that, is it a software configuration that’s causing the problem?
Don’t flip the cable. Like I said, the way you have it plugged in should be fine. I also checked Atmel’s instructions for it and they show the cable with the stripe on that same side and indicate it is where pin 1 is.
But it’s odd putting it on the left side. Doesn’t matter though as long as the IDC connector isn’t polarized though since you can just flip it around, like I said.
Here’s another page on ISP programming showing the ribbon with the stripe on the other side:
Other than making sure you have the right driver installed, (what OS are you running?) and changing the INI settings in the Arduino IDE to output to the ISP, I can’t think of anything else to suggest. I may have heard of issues uploading with macs and Windows 7 but I’m not certain about that. All I can suggest is to go to sparkfun, check the page for the ISP programmer they sell, see if there’s any hints there in the comments, and see if they have any tutorials on it. I think I linked one above. Barring that, maybe purchase one of their ISP programmers and try that. Or get a new Atmega. Perhaps you fried that one?
I think googling for “atmega fuse settings” might also be prudent. I believe there is a way the chips can end up being locked down so they won’t accept uploads and there are ways to reset them.