I have one small issue with automatic switch off of perimeter sender.
In the code is :
#define ROBOT_OUT_OF_STATION_TIMEOUT_MINS 360 // timeout for perimeter switch-off if robot not in station (minutes)
so that means, that sender will switch off automaticaly after 6hours, when no new charging detected. Problem is during the nigth, because when mower stop mowing at 20:00, next aprox 3hours takes a charging (till 23:00) and after next 6hours sender will switch off (5:00am). Then mower will jump into error perimeter timeout.
Is only solution to switch off this timer or you have any other solution ?
What's about sensor, which will detect presence of the mower inside station or any other interaction between mower and station/sender?
The charge current sensor is supposed to switch off the sender. The stationled in the mower is drawing a few mA, and the sender is off.
If the mower is driving out, the current is 0 and the sender switches on again.
I have set the chg_current_min to 0.001 (check in the Serial console what current is drawn when the mower is not charging in the station) on my selfbuilt sender, otherwise I would have the same problem.
Very important is the yellow led into the mower with the Ina169 the read the led drain current.
Normaly when the mower is in station the mower yellow LED drain current so the sender stop and the sender yellow led blink.
The Relay for charging battery is closed and the charge start.
After 3 hours the battery is full and the relay is open to stop charging but the mower don't move.
The mower need to stay into the station until the next mowing time and the ROBOT_OUT_OF_STATION_TIMEOUT_MINS is never call in this normal case.
The sender start again imediatly when the mower leave the station and the ROBOT_OUT_OF_STATION_TIMEOUT_MINS also.
Here at the end of video you can see the 2 Yellow led (one on the mower and the other into the station).
Yes right. My problem is, that I have wrong current limit for mower detection in the station.
When mower is charging , detection is ok and yellow LED is blinking, but when charging is done, detection isn't ok and yellow LED is stable ON.
So I must check what's a consumption when mower is charged and in the station to adjust current limit.
Need some little change in the code but:
All depend on the type of battery you use.
If Li ION protected pack and the good charger ,maybe you don't need to know the charging current.
The Charger make all by itself in normaly 3 Hours.
You can only use the Charg_pin to detect the station.
Problem in this case the mega don't know if the battery is full charge before next start so better way is the original AZURIT solution with good reading of charging current.
I think my solution is this :
inside mower is LED which goes on when mower is in the station :
there is resistor 1k5 and voltage is 24V = current 16mA, which I have always when mower is connected. If mower is charging, current is much higher, but when charging is over, I must be able detect via sender this current to know if mower is still in the station. Later afternoon I will check.