Download Print this page

ON Semiconductor AND9670/D Quick Start Manual page 11

Iot development kit (idk) idksmartpassivesensor rfid shield

Advertisement

Go to the IDK installation path, in this example the IDK installation directory is C:\OnSemiconductor
Go to the folder C:\OnSemiconductor\samples\AS3993_RFID and copy two files AS3993_RFID.cpp and
AS3993_RFID.h into your working directory within the workspace and rename the files in order not to confuse with
the pre−compiled library, in this example renamed to: myAS3993_RFID.cpp and myAS3993_RFID.h
Press within the IDE F5 button to make the copied files visible
Now the project explorer window lists the copied file, double click on the file myAS3993_RFID.cpp and press
Ctrl−F
In the find/replace window enter AS3993_RFID in the "find" field and myAS3993_RFID in the "replace" field as
shown in the Figure below and press "Replace All" button
Do the same steps for the files AS3993_RFI.h;main.cpp; Shield.h;header.h
Rebuild the project AS3993_RFID again
Now you can modify the parameter like TX attenuation and Autopower on/off in the myAS3993_RFID library.
By default, the TX attenuation is set to 6 and Autopower = off
To change the TX Attenuator value go to myAS3993_RFID.h and set the values of your interest and rebuild, in the example
below TX Attenuator value is 6 dB
#define TEMP_MIN_TX_ATTENUATION
#define MOIST_MIN_TX_ATTENUATION 6
The Autopower functionality can be switched on or off in the myAS3993_RFID.cpp file with the parameter
"tempAutopower". Press Ctrl−F and type tempAutopower in the file myAS3993_RFID.cpp and set the value of the
tempAutoPower to "true" if you want to switch on the Autopower parameter and rebuild the project.
Int mzAS3993_RFID: :measureTempTags()
{
TempAutoPower = true; //false by default;
Do the same modification for the member function myAS3993_RFID::measureMoistTags() in the same file.
If Autopower is switched on, the TX attenuation value will be varied automatically from set value to max 19 dB according to
the strength of the reflected signal from the tag.
AND9670/D
Figure 13. AS3993 class
6
www.onsemi.com
11

Advertisement

loading