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.


Start-area2.gif Fast-return.gif


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

The same tag can be use to different behaviour.

Piardu rfid 18.png


Edit a record

Be careful To edit existing tag : click on the list to choose the tag you want to edit.Click on Delete This Tag to remove old tag from list.Now change value on the text box on right part of the screen , and click on Add this Tag to add the new one.Do not forget to save to file.

Piardu rfid 70.png


What is possible

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'

Fast Return to station

RTS can be use to escape from island or simply fast return to station :

Piardu rfid 20.png


When tag 72B8DB95 is find AND mower Status is BACK_TO_STATION ,if you put RTS in the TODO column : Mower stop tracking roll 28 Degree and run at new PWM speed of 250 to find again the wire and continue tracking.



Fast Start

Can be use to go very fast from one location on the wire to other one when tracking : to reach a new area for example :

Speed and Ang 1 are used

Piardu rfid 30.png

When tag 1AD8DB95 is find AND mower Status is TRACK_TO_START ,if you put FAST_START in the TODO column : Mower stop tracking roll 50 Degree and run at new PWM speed of 250 to find again the wire and continue tracking.


Change tracking speed

Can be use to Dock at low speed or simply change tracking speed when you want : ON big straight line mower can track at PWM=255 or on hard angle you can reduce the tracking speed

Speed and Dist1 are used.

Piardu rfid 40.png


When tag 4082DA95 is find AND mower Status is WIRE_MOWING , Mower continue tracking but run at new PWM speed of 80 for next 100 cm.




Here example of area change it can be use to Go to a new mowing area (with other sender)  :

Piardu rfid 60.png

When tag B0CEDB95 is find AND mower Status is TRACK_TO_START , Mower stop tracking roll -38 Degree ,Stop the AREA1 Sender over WIFI if needed , stop to read perimeter signal ,run at new PWM speed of 180 for the next 13 meters , roll again -90 and run for 0.5 meters ,Start the AREA2 Sender over WIFI, Check if signal is OK and start to find again perimeter wire to mow on the new area.



Here example of area change it can be use to back to charging station from other mowing area  :

Piardu rfid 50.png

When tag 8ECDDB95 is find AND mower Status is BACK_TO_STATION , Mower stop tracking roll -82 Degree ,Stop the AREA2 or 3 Sender over WIFI , stop to read perimeter signal ,run at new PWM speed of 200 for the next 10 meters , roll again -90 and run for 0.5 meters ,Start the AREA1 Sender over WIFI, Check if signal is OK and start to find again perimeter wire to track to find the charging station.



Result