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

Do not forget the jumper JP4 and JP10

Rfid wiring jumper.png



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 'AREA1' or 'AREA2' or 'AREA3'

Fast Return to station

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

Speed and Ang 1 are used

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.



Go to new mowing Area

Can be use to Go to a new mowing area (with other sender)  :

Speed ,Ang 1,Dist 1,Ang 2,Dist 2 are used and correct IP Sender setting into config.py to start and stop sender. Without WIFI it's also possible to start and stop manually the area2 sender, Most important is that the mower can read the perimeter signal inside AREA2, so try to stop mower near the Perimeter wire

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.


Back to station from Optional area

It is used 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 in Video

Here a fast start to go in area2 :

AT 0:40 FAST_START tag is detected Mower leave wire and run at PWM=255 to cross the area1 mowing without blade running.

AT 1:24 mower find again the area1 perimeter wire and continue to track

At 1:34 The AREA2 tag is find : mower stop to read area1 signal and start to go to area2 (NO wire under asphalt)

AT 2:07 Mower is now into AREA2 and start AREA2 sender ,Check perimeter signal,and try to find area2 perimeter.

AT 2:12 the area2 wire is find and tracking start until start distance (set into timer setting) is reach

AT 2:56 mowing in AREA2 start

AT 3:07 mower roll to adjust Compass and Gyro heading to be sure the lane are always in same orientation over time.

https://www.youtube.com/watch?v=NGX7KlfbtKA&list=UUIMdsOWo0cHTKruv9PVdJPw&index=6



Here Escape from AREA2 Island and return to charging station:

At 0:19 a tree island is find ,Mower start to track the wire

At 0:40 the RTS tag is find and used to escape from the tree island , mower leave the wire and try to find it again in fast mode at other location.

At 0:47 the main AREA2 perimeter wire is find, mower can continue to track

At 1:52 Change area tag is find : Mower stop AREA2 sender and move to AREA1 without reading perimeter signal.

At 2:17 AREA1 Signal is detected and mower start to find AREA1 perimeter Wire.

At 2:34 again one RTS tag is find to go fast to station.


https://www.youtube.com/watch?v=9JXWokdmjaE&list=UUIMdsOWo0cHTKruv9PVdJPw&index=8