I made an Arduino UNO minimal circuit on breadboard, and want to ICSP it, but I tested, there was no power through ICE, why?
I made an Arduino UNO minimal circuit on breadboard, and want to ICSP it, but I tested, there was no power through ICE, why?
The ICE detects (that is, it requires) the target power so it knows what logic levels to drive for programming.
Edit: parenthesis statement
Atmel programmers do not supply target power, but rather measure it to provide the correct interface level.
provide target power externally.
Note, most AVRs have two sets of power pins, both must be fed, and 100nf bypass caps are required as close to the pin pairs as possible!
You need to supply power because that is the way AVR programmers are (almost always) built. That is the only answer that is needed.
Jim
Your crystal wires are waaaaay too long. The crystal must be very close to the AVR. You also need some bypass caps on the power pins.
that is the way AVR programmers are (almost always) built
and is common for other programmers, too.
... there was no power through ICE, why?
Target Voltage Supply (VOUT) | Power Debugger
Debugger Powered | MPLAB® PICkit™ 4 In-Circuit Debugger User's Guide
edit :
Power Debugger | Atmel Studio 7
You are off to a great start, but I'd suggest, (as above), a few changes to your setup.
Put the Crystal as close to the micro as possible, as shown above, (not connected by long wires).
In the above photo the Xtal's caps could also have their leads shortened...
You need by-pass caps, typically 0.1 uF, again as close to the micro's pins as possible.
In the above photo there is a small yellow cap in the breadboard holes next to the micro's pins, just to the left of the Xtal.
You can see the Red(+) and Black(-) power supply wires going to the micro.
On the opposite side of the micro is a partly hidden, dark red / maroon colored by-pass cap, next to the micro, and another red and purple power supply wires.
(For the record, the older STK500 programmer DID / DOES supply V+ to the micro, and the STK600 has that capability.
That was a major point of confusion when I first started programming AVRs!
Many other programmers just read the target micro's operating voltage.)
JC
(For the record, the older STK500 programmer DID / DOES supply V+ to the micro, ...
Pololu - 8. Using VCC or VBUS to supply power via Pololu USB AVR Programmer v2.1
Resolved, solution is: 12v + 7805
Resolved, solution is: 12v + 7805
Not really, you are ignoring the comments about the wires to the crystal and the need for capacitors.
You might be able to program your chip (sometimes) but your circuit WILL be unreliable.
Why do people ask questions and then ignore the answers they get?
I noted your comments about the wires and capacitors, since till now all the projects used in this way were OK, so I thought it would be enough.
Resolved, solution is: 12v + 7805
With the added facility of having a mini egg fryer depending on the current used.
egg fryer ? would it be so hot ?
It depends on the current used, do the maths. If the power pack is regulated 12V you will have 7V difference X current= Watts.
@100mA you will get 0.7W, without a heat sink it will burn your fingers. 5V regulators are happy with about 7.5V input (or less for a low drop out regulator)
This is the advanced edition(since 12v was there, so just use it now):
Nice job!
That is a much better layout!
JC
Be careful when working with LiPo batteries! Your wiring will cause a fire if there's a short circuit somewhere. Insert a fuse or other form of protection