- Fixed links (ATMEL documentation)
- Added section on full pinout
Hello!
Today we are going to do some "hardware" hacking (if we can call it like that ...). Yes, NDH badge hacking :D.
I do not have any real knowledge in electronics but it should be enough to pawn it.
The thing I am the most amazed with is that nobody wrote an article about it but the creator of the badge (tixlegeek) ...
Let's fix that!
The situation
First of all, I could not not find the pinout on Tix's Le Geek blog so I had to "reverse" it.
It is because I have the following programmer (a version of USBasp):
So the cable is a 2x5 pin ICSP AVR.
We want to have something clean so we are going to use a BUS cable:
As well as small clips:
To set up the clips, you need to use a flat-nosed plier like this:
For reversing the pinout you could also use wires and a breadboard (I don't have a breadboard ... or any electronic stuffs ^^"):
Don't forget your NDH badge!
Reversing the pinout
Ok for the pinout you could try to find VCC and GND first with a multimeter and then the other ports. As I do not have any electronic equipment I haven't tried that.
But here what was my idea with the wires :
Yeah, try to craft kind of a hook or something and plug the other part to a breadboard and test it.
luckily there is another way to find out about the pinout:
Yes just looking at the chip documentation you could find the pinout.
Anyway for the chip, looking close enough you could see its reference:
ATMEL 1114 ATTINY2313V-10SU
Done we have the pinout.
Just have to make the cable ;).
The pinout
Badge NDH
------------------------------------------------- | | | | | | RST MOSI MISO SCK VCC GND
Port 2x5 ping AVR ICSP
1 3 5 7 9 --------------------------------------------------------- | MOSI | NC | RESET | SCK | MISO | --------------------------------------------------------- | VCC | GND | GND | GND | GND | --------------------------------------------------------- 2 4 6 8 10
Do the pinout and then we're in business :).
Full pinout
Just in case people might find this useful:
------------------------- | PORTD | ------------------------- | PIND0 | RX | | PIND1 | TX | | PIND2 | D4 | | PIND3 | D3 | | PIND4 | D2 | | PIND5 | D1 | | PIND6 | D5 | ------------------------- | PORTB | ------------------------- | PINB0 | D6 | | PINB1 | D7 | | PINB2 | NC | | PINB3 | NC | | PINB4 | NC | | PINB5 | MOSI | | PINB6 | MISO | | PINB7 | SCK | ------------------------- | PORTA | ------------------------- | PINA0 | NC | | PINA1 | NC | | PINA2 | RESET | -------------------------
It is evident that you need to read the documentation to understand that table: the chip documentation.
Conclusion
With a bit of curiosity, it was possible to find out about the pinout fairly easily.
As I miscounted the AVR ICSP pinout ... my cable is not right, so the software part is going to be for another day ;).
Cheers,
m_101
Resources:
- [NDH2K11] Badges hackable!
- NDH2K11's Badge: Spec. & hackz
- NDH2K11's Badge: PROGRAMMATIONNNNNN!!!!
- ATTiny2313 documentation
Aucun commentaire :
Enregistrer un commentaire