RFID On PCB1.3

Have you set the Rpi Use to yes into Arduremote ?
When i tell you a message each 500ms it's not in the console text box but on the botton left of the Console page .
After RMSTA it' s the millis value
console_2019-08-25.jpg

Attachment: https://forum.ardumower.de/data/media/kunena/attachments/3545/console_2019-08-25.jpg/
 
Zuletzt bearbeitet von einem Moderator:
It's work with this change into robot.cpp : void Robot::deleteUserSettings()
The addr was and it's not OK
Click first to setting, Factory setting and do not forget to click again on Set factory setting(require rebboot) and reboot, do not forget to unplug the USB cable

Code:
void Robot::deleteUserSettings() {
  int addr = ADDR_USER_SETTINGS;
  Console.println(F("ALL USER SETTINGS ARE DELETED"));
  eewrite(addr, (short)0); // magic
 }
 
Hi
Thanks a lot. I will try.
For the Pi connect you are right. It was off in Arduremote.
But i have problem with serial.
This is the Log from Phyton3 Shell:
============ RESTART: /home/pi/Documents/PiArdumower/PiArdu207.py ============
Linux Platform

************************************
ERREUR DE CONNECTION WITH PCB1.3 DUE
************************************

RFID file loaded OK
heure change 0
heure change 1
heure change 2
heure change 3
heure change 4
Traceback (most recent call last):
File "/home/pi/Documents/PiArdumower/PiArdu207.py", line 3668, in
checkSerial()
File "/home/pi/Documents/PiArdumower/PiArdu207.py", line 405, in checkSerial
mymower.dueSerialReceived=Due_Serial.readline()
NameError: name 'Due_Serial' is not defined
>>>

Any idea?
Best, Bjoern
 
Into Pi terminal type:
lsusb

The Arduino SA need to be here


Into python idle3 you can use glob to see the port number



Code:
import glob
ports=glob.glob('/dev/ttyAC*')
print(ports)


Check the result ,normaly it's
ttyACM0
 
I Don't understand Why but i never see this ACM1 with the due connected on PI ,Do you use a DUE clone or original and is it connected to Native USB ?
I see this ACM1 only with Arduino Mega ,but in all case i need to find a way to automaticly adapt the code ,But How ???;)
.
 
Bernard schrieb:
It's work with this change into robot.cpp : void Robot::deleteUserSettings()
The addr was and it's not OK
Click first to setting, Factory setting and do not forget to click again on Set factory setting(require rebboot) and reboot, do not forget to unplug the USB cable

Code:
void Robot::deleteUserSettings() {
  int addr = ADDR_USER_SETTINGS;
  Console.println(F("ALL USER SETTINGS ARE DELETED"));
  eewrite(addr, (short)0); // magic
 }

Hi
That looks like my Robot.cpp. So what do i have to change?
For doing a reset i also tried to install a firmware with console to PC.
With the d comand and next setting page i also tried to reset. The message was something like: "Loading factory defaults".
But in the console you can see my old values. Not the values from Mower.cpp
Best,
Bjoern
 
Zuletzt bearbeitet von einem Moderator:
Hi
Thank you. What is the way to fix?
Do i have to change this part only:
void Robot::deleteUserSettings() {
loadSaveRobotStats(true);
int addr = 0;
Console.println(F("ALL USER SETTINGS ARE DELETED"));
int addr = ADDR_USER_SETTINGS;
Console.println(F("ALL USER SETTINGS ARE DELETED PLEASE RESTART THE DUE"));
eewrite(addr, (short)0); // magic
loadSaveRobotStats(false);
}
Or can i get somewhere the new robot.cpp? I am new with Github, sorry.
Thanks,
Bjoern
 
You can do like Jussip say ;)
But if you use the full code without particular file it's better to download all again
For testing please deactivate the Wachdog into mower.h line 140.
 
Hi
Today was a good day. With the last change of code i was able to do factory reset.
Now everything work better.
Also my port is now '/dev/ttyACM0'
Tomorrow i will start with RFID cards because now i can switch it on in Arduremote, Yeah!
2 questions to you professionels:
1) I have IMU GY-88 MPU-6050 connected to PCB1,3. It is not mounted straight. But i think after calibration that the mounting orentation is zero. But it is not.
So i get a tilt error after start with IMU ON.
2) Where do you have connected the GPS? I have the one from shop.
Thanks again for your great work.
Best,
Bjoern
 
RFID settings page angle and distance. What units distance is, cm maybe? Compass angle or relative to tag reading angle?

IMU has to be mounted right and level. My gps was connected to due via pcb but nothing happened :D Next time when playing with it I'll try raspi connected
 
It is not mounted straight. But i think after calibration that the mounting orentation is zero. But it is not.
I see the same issue in the last version, and it's a watchdog issue.
To avoid it Simply remove the line 269 from robot.cpp and repeat the calibration.

Code:
void watchdogSetup(void) {}


Wait 1 or 2 minutes until finish and pitch and roll are near 0


void watchdogSetup(void) {}
Not fully tested with the module from shop but normaly it may work (with a very very very very bad accuracy)
The GPS is connected on P44 Wlan because GPS port is in error on PCB1.3
JP11 and JP6 to 3.3V
Into mower.cpp line 125 change the speed to 9600
And activate it in arduremote.
Now into PiArdu you can test it, wait 5 minutes to be sure
20190606_124823.jpg


2 files are generate on the pi gps folder and you can read then from GPSPRUNE or U-Center to see the mower and your house :eek:hmy:
Attachment: https://forum.ardumower.de/data/media/kunena/attachments/3545/20190606_124823.jpg/
 
Zuletzt bearbeitet von einem Moderator:
RFID settings page angle and distance
Angle is deg and relative to position of the mower.
Distance are centimeters and actualy only use when go to new area.
Speed is PWM and max 255


For the GPS i have a module from shop so i test it and tell you exactly if other change are needed.
 
Oben