IC Card and SIM adapter
The IC card and SIM adapter for Bus Pirate 5 has sockets for mini, micro and nano SIM cards. Everything is connected and ready to go - get started right away.
Common IC cards usually follow the ISO 7816-3 standard and have the same pinout and contact shape. Image source.
mini, micro, and nano SIM cards
The top of the adapter has sockets for mini, micro, and nano SIM cards. Most mobile phone SIM cards use a half-duplex serial UART interface, such as the Bus Pirate HDPLXUART mode.
Socket | Description |
---|---|
U1 | 6 pin mini SIM card socket |
U2 | 8 pin micro SIM card socket |
U3 | 6 pin nano SIM card socket |
We looked at a lot of sockets and decided these were the best bet. Complex sockets with springs, hinges and slides are prone to break. These simple sockets should hold up better with repeated use.
Smart IC cards
A KF-011C socket on the reverse accepts most ISO 7816-3 smart cards:
- SLE4442 IC cards with passcode protection, supported by 2-Wire protocol mode
- 24C02/24C04/24C08/24C16 EEPROM cards, supported by I2C protocol mode
- Bank cards, ID cards, and other smart cards, supported by HDPLXUART mode
A card detect switch is connected to an LED on the top of the board. CARD LED will light when a card is inserted.
Power and Ground Selection
Switch | Normal | IO pin | Description |
---|---|---|---|
VCC | VOUT | IO0 | Connect VCC pin of the socket to VOUT or IO0 |
GND | GND | IO1 | Connect GND pin of the socket to GND or IO1 |
SW1 and SW2 along the side of the adapter select the power (VCC) and ground (GND) connection to the card socket. For normal use select VCC:VOUT and GND:GND. Found a non-standard pinout? Flip the switches to connect the VCC and GND pins of the socket to Bus Pirate pins IO0 and IO1.
Pin Connections
Bus Pirate | IC Card/SIM | Adapter | Description |
---|---|---|---|
Vout | C1 | VCC | Bus Pirate power supply to socket VCC |
IO0 | C7 | I/O | I/O data pin |
IO1 | C3 | CLK | Clock pin |
IO2 | C2 | RST | Reset pin |
IO3 | C6 | VPP | Programming voltage pin |
IO4 | C1 | IOVCC | IO4 connection to socket VCC |
IO5 | C5 | IOGND | IO5 connection to socket GND |
IO6 | C8 | N/A | C8 unused pad. micro SIM and IC card only |
IO7 | C4 | N/A | C4 unused pad. micro SIM and IC card only |
GND | C5 | GND | Bus Pirate ground to socket ground |
Resources
- IC Card and SIM adapter schematic and PCB
- How to interface SLE4442 IC cards
- How to interface 24C02 EEPROM cards
- How to interface SIM and bank cards
- Half-duplex UART mode documentation
- 2-Wire mode documentation
- I2C mode documentation
- sle4442 command documentation
Get Bus Pirate 5
Community
Documentation
Bus Pirate 5 documentation is broken into hardware and firmware sections. Here's some other fun stuff you might enjoy.