So for this project my idea was to build a Pet Diet Food Recorder. The idea was to use RFID tag clipped to the pets collar. Every time the pet would go to eat, the tag would be close enough to the RFID tag reader where the tag would be read and recorded.
I used the MAX32620FTHR because of some of the builtin features, like LiPo charger as I wanted to be able to run it off a battery. Originally for this project, I wanted to store the data on a SDCard, but after playing around with the system, I didnt like it. I really wanted to find something wireless like a bluetooth LE module, but I didnt have one.
For the project build, the MAX32620FTHR came with another board that is used to program it. You connect the FTHR board to this programmer board and the programmer board to your pc.
For me, I used the Arduino IDE to program it. Just goto the git url https://github.com/MaximIntegratedMicros/arduino-max326xx and follow the instructions to add the library to the Arduino IDE.
In the location where you place the attached code on your pc, download the following time library https://github.com/PaulStoffregen/Time and extract it to the same directory as the main code. In the Arduino IDE, open these files along with the main code. I used this library for time functions to be able to create the output.
Once this is done you can upload the code to your board.
To add the RFID module, use the wiring sequence below. My module uses SPI, so I used the pins listed.
RFID MAX32620FTHR VCC --> 3.3v GND --> GND SS --> p3_0 RST --> P3_1 SCK --> P5_0 MOSI --> P5_1 MISO --> P5_2
Once your connections are all made, reset the Max32620FTHR board and run the serial monitor on your pc. The code has a default time set, but if you want to change it, you can use Google to get the current date/time in unix seconds, copy it in the text box in the serial monitor and hit send. Then when you pass a RFID tag near the reader, it should print out the tag number and date/time. The code will scan for the tag every 5 seconds, so you can tell by the output how long your pet was eating. Below is a sample output.
irmware Version: 0x91 = v1.0 Scan PICC to see UID, SAK, type, and data blocks... ED1D40A8 13:33:14 2018/08/01 ED1D40A8 13:33:19 2018/08/01 ED1D40A8 13:33:24 2018/08/01 ED1D40A8 13:33:29 2018/08/01 ED1D40A8 13:33:34 2018/08/01 ED1D40A8 13:33:39 2018/08/01 ED1D40A8 13:33:44 2018/08/01 ED1D40A8 13:33:49 2018/08/01 ED1D40A8 13:33:54 2018/08/01 ED1D40A8 13:33:59 2018/08/01 313C06B7 13:34:28 2018/08/01 313C06B7 13:34:33 2018/08/01 313C06B7 13:34:38 2018/08/01 313C06B7 13:34:43 2018/08/01 313C06B7 13:34:48 2018/08/01 ED1D40A8 13:35:17 2018/08/01 ED1D40A8 13:35:22 2018/08/01 ED1D40A8 13:35:27 2018/08/01 ED1D40A8 13:35:32 2018/08/01 ED1D40A8 13:35:37 2018/08/01 165CB4AC 13:35:48 2018/08/01 165CB4AC 13:35:53 2018/08/01 165CB4AC 13:35:58 2018/08/01 165CB4AC 13:36:03 2018/08/01 165CB4AC 13:36:08 2018/08/01 ED1D40A8 13:42:05 2018/08/01 ED1D40A8 13:42:13 2018/08/01 ED1D40A8 14:39:00 2018/08/01 ED1D40A8 14:39:05 2018/08/01 ED1D40A8 14:39:10 2018/08/01 ED1D40A8 14:39:15 2018/08/01 ED1D40A8 14:39:20 2018/08/01 ED1D40A8 14:39:25 2018/08/01 313C06B7 14:41:56 2018/08/01 313C06B7 14:42:01 2018/08/01 313C06B7 14:42:06 2018/08/01 313C06B7 14:42:11 2018/08/01 313C06B7 14:42:16 2018/08/01 313C06B7 14:42:21 2018/08/01 313C06B7 14:42:26 2018/08/01 313C06B7 14:42:31 2018/08/01 165CB4AC 14:45:12 2018/08/01 165CB4AC 14:45:17 2018/08/01 165CB4AC 14:45:22 2018/08/01 165CB4AC 14:45:27 2018/08/01 165CB4AC 15:12:49 2018/08/01 165CB4AC 15:12:54 2018/08/01 165CB4AC 15:12:59 2018/08/01 165CB4AC 15:13:04 2018/08/01 165CB4AC 15:13:09 2018/08/01 165CB4AC 15:13:14 2018/08/01 165CB4AC 15:13:19 2018/08/01 165CB4AC 15:13:24 2018/08/01 165CB4AC 15:13:29 2018/08/01 165CB4AC 15:13:34 2018/08/01
- I would like to add some sort of wireless communications to this. Bluetooth or Wifi would be ideal.
- A graph app that can visualize the data at a glance, Processing could do this.
- Add a real time clock to the project.
The MAX32620FTHR board is a really nice board for low power applications. I'm not convinced that my application would be the best on this board, one of its sister boards with builtin BT or WiFi would probably be better.