Improved keyboard wedge

Ditto. Not exactly the same parts but close enough.

I’ll report back when I have modified one of my readers. (I’m gradually building up a collection of microcontrollers and readers, I am up to 4 trinkets, two rc522, two Pico, and one PN532 (in transit). I’ll have to add a couple of ESP32 too.)

1 Like

I’ll get a esp32 and give it a go, thanks for sharing.

Same here, and I’ll keep making cases for the ones I have parts for :+1:

1 Like

Well, the keychain does light up:

2 Likes

Cool, I just tested again. I have two trinkets hooked up to two different RC522 boards. My X field detector lights up with one board but not the other. The only discernible difference between the two boards is that one is a slightly darker blue (thicker lacquer coating perhaps?)

So, while it looks like the RC522 will work, the variability in quality is a potential issue.

Well, just implanted so not a good point of reference, but the phone and PM3 pick up the implant perfect, but i get nothing out of my improved wedge …

I have just replaced L1 and L2 on the RC522 that did not light my HF XFLD. It now lights up the detector the same way the other one did.

For reference I replaced them with A pair of TDK inductors from Digi key.

I won’t show you my far from brilliant SMD soldering.

Incidentally the two inductors were shipped in this bag, wrapped in the packing list, which was wrapped in a sheet telling me to check the packing for parts, which was then wrapped in a packing sheet, which was in a box about 6" x 5" x 1". The carrier holding the two inductors was about the size of the letters bottom right on the label.

My RC522 also will not light up the field detector, nor will it read my xSIID.
Am still waiting for my components, since I bought them from some random guy on ebay rather than digikey. The fact, that I have been cheaping out on the shipping has really turned this project into quite the waiting game for me …

As I don’t have any implants I can’t test either one with implants but definitely the lighting of the XFLD is a distinct improvement.

My implant is istll very new, but the phone reads it flawlessly …
The RS522 light up the xFD but I get absolutely nothing from the implant (I ditched the full case for the “open”/“half” with the. Exposed antenna on top)

The RC522 reads my NEXT implant perfectly fine, but I need to have the antenna touching my skin, and I need to have it perpendicular to one of the antenna straight sides.

1 Like

Just tested my modified rc522 and it does now light up the field detector. However I still can’t get a read on my XSIID.
So the mod does seem to work, but the rc522 is still not an amazing antenna.

Also as it turns out SMD soldering takes practice. Ripped a pad off my first rc522 and burnt the makings off a coil on my second board.
It still works though :slight_smile:

1 Like

I have recently received my PN532 boards and I have been messing around.
I have not been able to get any of the example code that I have found to run.
The main roadblock for me is, that I don’t usually deal with hardware stuff like this.
Maybe my wiring is wrong? What is a pull down or up resistor. Why would I choose HSU or I2C or SPI?
Perhaps there is a better place to ask such questions, however I am not sure which learning resource would help me.
Would somebody be able to supply me with a working pinout for the trinket m0 and example code?
Pls halp.

Additionally I would like to mention, that I bought a PN532 from this place .
Visually it looks exactly the same as the PN532 V4 that I received directly from Elechouse.
So despite V3 of the board being depicted on the website, this seems to be a good source for PN532. They ship from Germany, which for me is infinitely faster and cheaper, than shipping from Hong Kong.

HSU is a High Speed UART and is basically a high speed serial connection. I2C is a different type of serial connection, it is usually slower but uses a lot fewer connections. SPI uses several connections and is a third standard. I was using SPI for my initial build.

Here is the pinout chart from adafruit.

1 Like

I have been trying to get the iso14443a_uid examples from Elechouse and Adafruit to work. Am using SPI with same pinout as with the RC522.
The Adafruit example simply prints Didn't find PN53x board.
The Elechouse example behaves strangely. My serial device on /dev/ttyACM0 just disappears. Typing debug info via Keyboard.write also does not work. Can’t attach debugger … No try{} catch{} …
I really am lost. How am I supposed to debug anything?

I have my PN532 but I haven’t hooked it up yet. I am working on a complete rewrite that should make it easier to add additional readers, so once I have the rewrite done I will start looking at the PN532. My guess is that the elechouse version assumes you are using Serial, and so it shuts down the serial port… I haven’t looked at it yet though, that is just a guess based on the behaviour.


My box of project parts for various things… Microcontrollers, single board computers, peripherals… And I wonder why I never have enough time.

1 Like

Personally, I’m looking forward to your iCopy zCopy

Well, you can see the raspberry pi zero 2 right there. I also have a couple of small screens one with two buttons and one with a joystick and two buttons. Those are for that. I’m going to start with just a disk image with proxmark3 software and an access point on it. Then add a screen and see if I can make it so that it can perform simple proxmark commands probably with the OLED screen with the joystick. Relatively cheap parts (under $40 for the Raspberry Pi and screen) and it is the same size as the pi itself. The pm3 would be unmodified.

Also in there are some Raspberry pico micro controllers, a Metro mini a trinket m0 or two, a couple of RFID boards, some Digistump Digisparks, some vocore2s,…

It’s a small cheap controller/computer box of goodness. (I need to add my Chip Pros to the box)…

2 Likes

On the pn532 pcb there should be a couple of little switches make sure there switched for spi.

1 Like

After a night of sleep and some more messing around, i have gotten it to work.
After setting the Adafruit library to debug mode it sometimes detects the PN532. Not sure if it is a bad electrical connection, that is causing me issues, or maybe I have to increase some type of timeout value for the SPI.

Hello!
Sending : 0x0, 0x0, 0xFF, 0x2, 0xFE, 0xD4, 0x2, 0x2A, 0x0, 
Sending : 0x0, 0x0, 0xFF, 0x2, 0xFE, 0xD4, 0x2, 0x2A, 0x0, 
No ACK frame received!
Didn't find PN53x board

In debug mode it works half the time …

However I am quite pleased, that it couples with my XSIID very easily.

1 Like

The issue could be an SPI Frequency mismatch. The PN532 has a maximum SPI Frequency of 5Mhz. I believe lowering this number inside the library file Adafruit_PN532.cpp will fix the inconsistent connection.

Adafruit_PN532::Adafruit_PN532(uint8_t clk, uint8_t miso, uint8_t mosi,
                               uint8_t ss) {
  spi_dev = new Adafruit_SPIDevice(ss, clk, miso, mosi, 1000000,
                                   SPI_BITORDER_LSBFIRST, SPI_MODE0);
}

Edit: OR you could use the Seeed_Arduino_NFC Library which was built with the M0 (SAMD21G) in mind. Evidenced by this SPI frequency clause inside PN532_SPI.cpp

#elif defined __SAMD21G18A__
    /** M0 spi library does not support SPI_CLOCK_DIV8 macro */
    _spi->setClockDivider(24); // set clock 2MHz(max: 5MHz)
3 Likes