RFID On PCB1.3

Bernard schrieb:
You can do like Jussip say ;)
...
For testing please deactivate the Wachdog into mower.h line 140.

Hello
One short question
To deactivate the Watchdog i have to do:
#define Enable_DueWatchdog false
or
//#define Enable_DueWatchdog true
???
Set it to false or uncomment it with //
Thanks and have a nice hot day again
Bjoern
 
Zuletzt bearbeitet von einem Moderator:
Always Uncomment it and set it to true or false ,be carefully with the yesterday post concerning trouble with imu calibration and watchdog.
After imu calibration you can restore all the line and set the watchdog to true.
Check that the Due never reset automatically by checking the milliseconds in piardu
It work for me in auto mode .

For the Gps you have 2 modules in the shop BN880 and m6n .
The 2 don t work correctly (accuracy > 5 or 20 meters)and are not useful .
To see that simply put the mower in station for 2 hours and view the result
 
Hi
Now i am complete confused...
OK, lets start again:

For GPS
I have the NEO-6M GPS Modul GY-GPS6MV2 NEO-6M Flight Controller z.b. für Arduino from shop.
Now it is connected to P44 Wlan. Jumper11 and 6 are on 3.3V. In Arduremote GPS is on. After a few sec the blue LED on GPS is blinking (Sat fix)
But in Arduremote i see no result. No Plot. No GPS2D. No values.

For IMU
After uncomment "void watchdogSetup(void) {}" the clibration worked fine!
That means now i have to flash again a firmware with "void watchdogSetup(void) {}" activated?

PiArdu
Actual the Pi is booting nice.
Python looks like:
============ RESTART: /home/pi/Documents/PiArdumower/PiArdu209.py ============
Linux Platform
b''
RFID file loaded OK
heure change 0
heure change 1
heure change 2
heure change 3
heure change 4
refresh setting timer
PY_VAR73
PY_VAR85
PY_VAR97
PY_VAR109
PY_VAR121
Set the new time and date to PI
sudo date -s '0-0-0 0:0:0'
27/08/19 11:21:09

But in the moment i click for example on "List Var" under console an error start that never stops:

DEBUG : Mower fail to send state each 500 ms
11:34:37 $RMSTA,986927,0,0.00,0.00,0.00,27.93,0.15,0.04,0.02,0.00,8191,*5e
11:34:37 INCOMMING MESSAGE ERROR FROM DUE
11:34:37 Save console to record all the process

This Error runs over the screen one after next. I have no chance to go Back to main screen. It jumps direct back to console page.
What can i do?
Thanks
Bjoern
 
It's normal the GPS is not manage by DUE but by the PI.
You need to go on piadru GPS page , start and wait and you can see the data in the page after a few minute.
The data is not use at all by the soft it's only recorded and you can open the file later with your PC

FOR ME the GPS is only gadget and can't be useful because not accurate.


Yes Flash again with the line activate.

First be sure the pynmea2 folder is the last one from GitHub.

PiArdu209 use a try catch line 398 so the error is not easy to understand.
Possible a permission issue into pynmea2/types/talker.py.
This file is used to decode all message .

Test with PiAru207.py , there is no try catch so the error is more esay to understand and show me the error message.

Also i need to remove the test on 500 ms into Piardu209 (it was a stupid idea).
 
Hi

GPS
Ok, i will forget the GPS in moment. Perhaps later i will connect a GPS direct to Pi. I like the idea with the
Sat Map View of the house and the position of the mower on it. :cheer:

IMU
OK, i will flash with line active.
What to do with "#define Enable_DueWatchdog true" in mower.h?

IMU2
I have a different problem with IMU also: Calibration of tilt is working perfect. Just wait 1 or 2 minutes.
But for compass calibration i think there is a bug. I have to press 2 times the calibrate button in Arduremote. Then the mower make the calibrate sound.
And i think the same happens during mowing in automatic: Mower want to start autocalibration, turns a little, stops, and then the calibration sounds start.
It looks that the first event is not starting the calibration. Can this possible?

PiArdu
Where can i find the latest last and latest version?
Sorry but i am confused with Github. Can you please post the right link again?

Thanks and best regards,
Bjoern
 
GITHUB https://github.com/Boilevin/AzuritBer/tree/RFID click clone or download and download zip.
Extract all and copy the Piardumower folder into your home/pi/Documents
Into folder txt File read the end of setup raspberry.txt for permission or check on the net .

For the compass.
Pess one time and move the mower arround all possible direction (there is no beep but a print in the console on each new value) and click again to save when no new value are coming.
In automatic it's normal and not really a calibration (The mower align the Compass and GYRO and wait until the GYRO drift is stop) ,You need to check the console result, and if the mower rotate just a little and stop less than 20 seconds it's perfect.

"#define Enable_DueWatchdog true" in mower.h?
allow you to enable or disable the watchdod by changing true to false
You can change the delay between the calib into setting imu.
 
Hi
Frustrated....
Again and again everything installed, set parameter, try, again,...
Here are the last Errors from Python with 207
:
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "copyright", "credits" or "license()" for more information.
>>>
============ RESTART: /home/pi/Documents/PiArdumower/PiArdu207.py ============
Linux Platform
b''
RFID file loaded OK
heure change 0
heure change 1
heure change 2
heure change 3
heure change 4
refresh setting timer
PY_VAR73
PY_VAR85
PY_VAR97
PY_VAR109
PY_VAR121
Set the new time and date to PI
sudo date -s '0-0-0 0:0:0'
28/08/19 17:54:42
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.5/tkinter/__init__.py", line 1562, in __call__
return self.func(*args)
File "/usr/lib/python3.5/tkinter/__init__.py", line 608, in callit
func(*args)
File "/home/pi/Documents/PiArdumower/PiArdu207.py", line 417, in checkSerial
decode_message(message)
File "/home/pi/Documents/PiArdumower/PiArdu207.py", line 669, in decode_message
f=open(cwd + "/log/PlotPeri.txt",'a+')
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Documents/PiArdumower/log/PlotPeri.txt'

And here with 209:
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "copyright", "credits" or "license()" for more information.
>>>
============ RESTART: /home/pi/Documents/PiArdumower/PiArdu207.py ============
Linux Platform
b''
RFID file loaded OK
heure change 0
heure change 1
heure change 2
heure change 3
heure change 4
refresh setting timer
PY_VAR73
PY_VAR85
PY_VAR97
PY_VAR109
PY_VAR121
Set the new time and date to PI
sudo date -s '0-0-0 0:0:0'
28/08/19 17:54:42
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python3.5/tkinter/__init__.py", line 1562, in __call__
return self.func(*args)
File "/usr/lib/python3.5/tkinter/__init__.py", line 608, in callit
func(*args)
File "/home/pi/Documents/PiArdumower/PiArdu207.py", line 417, in checkSerial
decode_message(message)
File "/home/pi/Documents/PiArdumower/PiArdu207.py", line 669, in decode_message
f=open(cwd + "/log/PlotPeri.txt",'a+')
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/Documents/PiArdumower/log/PlotPeri.txt'

Console is empty.
Reason is easy: After first crash the port is again ACM1 and not longer ACM0.
Dont know what to do. :(
Best regards,
Bjoern
 
No such file or directory: '/home/pi/Documents/PiArdumower/log/PlotPeri.txt'
I am sorry the file are missing in GitHub.

Here 4 files to copy in your /PiArdumower/log/ folder.
Into zip because it don't work correctly as txt
logfile.zip

Attachment: https://forum.ardumower.de/data/media/kunena/attachments/3545/PlotBat.txt/
 
Zuletzt bearbeitet von einem Moderator:
For acm1 and acm0
The issue is that the Due send data each 500 ms
If the PiArdu is not running the buffer qty increase and when it is full the serial port crash (It can take 1 or 2 minutes or more)

But this never occur when all is correctly setting.

First use Piardu207 until you have a correct running and can see the loop per sec in the Auto page or the incomming message in console bottom left.
When it's OK you can use PiArdu209 or 210.

Don't hesitate to show the log to help me understand what is wrong.
 
Hi
Thank you for the mising files.
For acm1 and acm0 bug:
Sorry, but how can it help to take a different PiArdu version for this bug?
My Pi need much more time to boot than the Due. So i will have this issue nearly everytime!?
Why is the Due sennding every 500ms data without a connected Pi?
Best,
Bjoern
 
My Pi need much more time to boot than the Due
It's normal.
So i will have this issue nearly everytime!?
Here there is a problem, i have tested this with 3 Pi and due and never see this issue.
The Pi start in less than 1 minute.And Always in ACM0.

Can you make a photo of the wiring, How the pi is powerred ?
Normaly you have to use a USB cable from PI to Due NATIVE USB and use a DC/DC converter to power the pi with the micro usb post and connected on the 24V PCB1.3.

how can it help to take a different PiArdu version for this bug
In the 207 version there is no try except on the code so the error are more easy to understand but the code stop.
In 209 version or later the try except allow the prog to continue to run but it can fail later if the due is not connected.

Why is the Due sending every 500ms data without a connected Pi?
To use the RFID the Pi is mandatory but if you don't use it ,simply deactivate it using arduremote on R/C setting menu

If you have really trouble with raspbian and python maybe i can make an Iso file of the SD Card and send it using we transfert ,but not sure it is possible because it's more than 16 GB?
 
Hi
Today again a good day. I took different Raspberry and installed from zero.
Much much better results. In this minute the mower finished first drives over RFID cards.
Worked pretty nice. Also V210 runs stable. Sometimes my Bluetooth connection failed during mowing. Arduremote connects and 2 sec later disconnect.
Tomorrow i will start with different cards and movements.
Thanks and best,
Bjoern
 
If it work you can now check the console and save file to understand all the working process of a day.
I have a version running with ACM0 or ACM1 automaticly but is it really usefull ???
 
Hi
Yesterday i made a lot of drives with my RFID cards on islands.
I have to order more cards ;)
But it works great.
Actually i dont know how to use the timer. Without Pi it was easy:
- Setup Date and Time with Arduremote
- Setup a timer with Arduremote
- Save to eeprom
- Ready

Now everytime when i check my Date and Time with Arduremote the result is 0,0,0,0,0.
When i adjust the Date and Time with Pi and click on "Send time to mower" and click 5 min later
on "Read time from mower" i get back the adjusted time. I mean it looks like the time is not running.

What is correct way to setup Date and Time and a Timer?
Thanks and best,
Bjoern
 
Date and Time with Arduremote the result is 0,0,0,0,0.
You need to set the MAIN timer use to YES or the date is never read.
After that simply set it with arduremote into setting date time.

You have to Set Yes or NO on the 5 timers but never set NO to the Main one(At the upper of the timer setting page)

For the Piardu , On startup the prog automaticly adjust the Pi date and time to the PCB one.
On The Pi side the Timer can be change by read or send to mower.But there is a bug in the day checkbox (bit to byte conversion) and i need to check it.
Actually it's better to change using arduremote and only read it on the Piardu, but you can test. (Don't forget that the go home force the station for more than 1 hour).


I made a change on the speed RFID setting for soft docking using card ,you can find on Githud on last RFID branch commit
 
Hi
When it must work like you explained then i have the next problem :(
What i have done:
- Start Due and Pi together
- Wait for booting Pi
- Setup Main Page: Checked "Use Timer"
- Arduremote: Adjust Date and Time and Save Settings
- Wait a few minutes
- Go back in Arduremote to Date Time setting: Same Time i adjusted. That means time is not running.

Next try:
- Shutdown Pi
- Power off Mower
- Power on all
- Wait for booting
- Check Date and Time Setting with Arduremote: Everything is resetet. Everywhere 0. Date=0, Year=0, Hour=0,...

What i am doing wrong?
Best,
Bjoern
 
Normaly if :
Setting Timer Use is set to YES
The date and Time need to be OK in all case and never 0

Can you check again that it's YES on the Timer page.
 
Ok, i will check again. In moment my battery is empty :S

Bernard schrieb:
Date and Time with Arduremote the result is 0,0,0,0,0.
I made a change on the speed RFID setting for soft docking using card ,you can find on Githud on last RFID branch commit
What means soft docking? How does this work?

Actuall i am using the RFIDs only to leave my islands under 90°.
Can i also us a RFID under the wire that only change the speed? I mean during the long way to home?
By the way: Is there a automatic solution to switch on mower motor during go home? Because also there the gras is growing ;)
Best,
Bjoern
 
Zuletzt bearbeitet von einem Moderator:
What means soft docking
Low speed docking (Simply put a tag 60CM before the station with speed = 80)

Can i also us a RFID under the wire that only change the speed? I mean during the long way to home?
Exactly the SPEED option change tracking speed to the value that you want for ( it's actually 10 second but certainly
i can use the Distance1 that you set on RFID setting )
I think it's better to use the fast return to station using other tag because the motor can drive faster on the grass that when tracking
It's exactly the same as island but you chosse the correct direction to reach the station just before it.

So the tracking duration to reach the station is always very short.

Is there a automatic solution to switch on mower motor during go home
Not finish actually but It's the Perimeter option that you can choose on the timer:
The mower leave the stattion and mow slowly all the wire without reading RFID TAG until reach again the station.
 
Oben