MrMoDDoM / MuTag

Repository for PCB and source file of the MuHack NFC Tag keychain
GNU Affero General Public License v3.0
13 stars 1 forks source link

Correct pin connections for USBasp #1

Open GKnirps opened 1 month ago

GKnirps commented 1 month ago

Hi, I got a MuTag at the Chaos Communication Camp last year and I finally found some time to play around with it.

On this page, you say I can also use a USBasp for programming the tag. This is convenient because I already have one of those.

However, I'm a bit at a loss of which pins to connect. For the Arduino solution, the readme files lists the correct connections but I cannot find anything about the USBasp.

Can someone help me out here?

MrMoDDoM commented 1 month ago

Hi! The USBasp should have a set of MISO/MOSI as well clock and reset pins.

Depending on your version, you should be able to access the 6Pin header on your board ( https://www.datasheetcafe.com/usbasp-pinout-avr-programmer/ )

Then simply match the data line name ;)

USBasp MuTag
VCC VCC
GND GND
SCK SCK
RST RST
MISO MISO
MOSI MOSI
GKnirps commented 2 weeks ago

Hi, thanks for the reply!

I don't have the 6-Pin header on my USBAsp. I can probably map the 10 pin output (which has only 8 unique connections), but I am unsure with some of them.

I can find GND, SCK, MISO, and MOSI, but I am unsure where RST and VCC go. The schema you send me looks slightly different from the one I have on my device. I assume VCC is the power supply, and RST is reset? I'm not really familiar with these abbreviations.

MrMoDDoM commented 2 weeks ago

Yes, you are correct, the VCC is the 5v power line, and RST is the indeed reset :) The only two line you should double check are the VCC and GND (ground) ones, as they can damage the Tag if connected wrongly.. you can mess up how much you want the other line, they can not do any harm ;)

As before, simply match the line name between the Tag and the USBasp, using the 10 pin header is fine.