AzuritBer Pi Firmware RFID(English)

Aus www.wiki.ardumower.de
Wechseln zu: Navigation, Suche

Level 3 Raspberry Pi + RFID Reader

Using Rfid reader and card locate on the perimeter wire ,mower can mow on multiple area or change direction and have different behaviour (Fast start,Fast return,escape from island,Change tracking speed etc...)

After testing many Reader only this one (PN5180) can read card at more than 10 cm and detect it after year under grass.

Hardware connecting

You need : PN5180 reader board , some card , ESP32 DEV KIT V1 (or later but with same pin diagram).

PN5180.png Esp32 layout.png



PN5180 use SPI interface to communicate with ESP32 and ESP32 DEV KIT replace the bluetooth module HC05 to communicate with PCB1.3, so you can build a small PCB to connect all wire, or order some of them from JLCPCB for example (The same board is also use to build the WIFI sender.)


Rfid wiring.jpg



Here the first version with wrap on small PCB:

Rfid esp32.jpg


and the PCB (see easyeda and file locate on AZURITBER github) use to connect everything (Rfid reader / PCB1.3 / Wifi sender)

Rfid wiring 10 .png Rfid wiring 20 .png Rfid wiring 30 .png


Put PN5180 board inside your platform as near as possible form ground (Max 10 CM) , no problem with motor or other electronic noise.

Using arduino IDE , You can download firmware inside ESP32 to have everything working : https://github.com/Boilevin/AzuritBer/tree/master/ESP32_RFID

If everything is OK you can see Last Rfid tag code in console or into Arduremote each time you move a tag near the reader

ArduRemote Setting gps rfid.jpg Piardu console 3.png

Setting

Into Piardu in menu RFID you can choose what you want the mower do:

2 Value need to match to have a mower react (TODO) : TAG Nr AND Mower STATUS


Piardu rfid 18.png



According Tag Nr read and Status of mower ( "BACK_TO_STATION" or "TRACK_TO_START" or "WIRE_MOWING" )

Mower can DO : 'RTS' or 'FAST_START' or 'SPEED' or 'NEW_AREA'

Here example of RTS it is return to station and can be use to escape from island or simply fast return to station :

Piardu rfid 20.png

When tag 1AD8DB95 is find AND mower Status is TRACK_TO_START , Mower stop tracking roll 28 Degree and run at new PWM speed of 250 to find again the wire and continue tracking.


Here example of FAST_START it can be use to go very fast from one location on the wire to other one when tracking to find a new area :

Piardu rfid 30.png

When tag 72B8DB95 is find AND mower Status is BACK_TO_STATION , Mower stop tracking roll 50 Degree and run at new PWM speed of 250 to find again the wire and continue tracking.