mcqn / nfc-st25r3916

An RFID/NFC reader using the ST Microelectronics ST25R3916 chip
CERN Open Hardware Licence Version 2 - Strongly Reciprocal
2 stars 0 forks source link

Initial bring-up and tuning #4

Closed amcewen closed 3 months ago

amcewen commented 5 months ago

With a couple of boards fabbed we're onto bring-up and tuning of the antenna.

Initial key capacitor and resistor values are:

amcewen commented 5 months ago

On the first board I've been trying:

Things to try next:

amcewen commented 5 months ago

We tried the second board on Friday afternoon, and that was much more successful, the board could read a tag!

Then we were on to tuning. Using the antenna-tuning-util sketch and an oscilloscope with a simple RF probe:

oscilloscope probe with its ground lead looped round and clipped onto the probe tip

We worked out that the ST25R3916B has an option to run a field amplitude test, so added an option to scan through all values of aat_b and print out the amplitude. We could then try different values for C306/C309 and measure the results:

Each of those the highest value was at one end of the scale, whereas we'd like to have a peak value roughly in the middle of the range.

Now we can look at tuning the aat_a value. For that, I added a "full scan" option to the antenna-tuning-util sketch, that just iterates over all combinations of aat_a and aat_b. It prints out the values in a CSV format, and then that can be fed into xyz to produce nice heatmaps like this:

47pF-2R4-free-air-tuning-scan

amcewen commented 5 months ago

Modifying the resistors R300 and R302 would let us adjust the damping of the antenna (IIRC) and tune the effective range for reading tags. Swapping from 2R4 ohms to 1R5 ohms gave a useful increase in range. We also re-ran the antenna amplitude scans inside the enclosure (which made more difference than I'd expected).

Those results are all in the tuning-test-data folder now.

Inside the enclosure the amplitude peak is getting close to the edge of the on-board tuning parameters, so it would be useful to pull them closer to the centre of the range of both aat_b and aat_a.

Swapping C306/C309 to 39pF pulls the peak to ~110 for aat_b which is nice. It skews towards 50 or 60 for aat_a, so nudging the values of C303/C310 should improve that.

39pF-1R5-acrylic-enclosure-tuning-scan

amcewen commented 5 months ago

Switching C303/C310 to 33pF centred things on the aat_a axis nicely. It pulled the aat_b peak down though, to around 75. Swapping C306/C309 back to 47pF moves the aat_b peak higher again, to around 150 when in the enclosure, but up to the edge of the tuning range in free air.

Feels (to me) like we're getting near to a sweetspot for tuning things now.

huffeec commented 5 months ago

I've updated the schematic with:

C303 = C310 = 33pF
C306 = C309 = 47pF
C300 = C313 = 220pF
C315 = C316 = 150pF
R300 = R302 = 1R5
amcewen commented 5 months ago

For the C3xx caps we'll want C0G or NPO dielectric, rather than X7R, etc. and 50V or better voltage rating.

C306, C309, C301 and C312 should be 2% tolerance or better (and so C213 and C214 should be too as they're 10pF, the same as C301 and C312, and there's no point having two different 10pF parts in the BoM)

amcewen commented 3 months ago

Need to double-check these changes have made it into the BoM / schematic, and then we can close this.

huffeec commented 3 months ago

Closed with 4cfd301