Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
25 Feb 2017
Das neue Board ist ab sofort HIER ERHÄLTLICH
Aufbauvideos im WIKI findet Ihr hier.
  • Seite:
  • 1

THEMA: Perimeter sender automatic switch off

Perimeter sender automatic switch off 4 Monate 1 Woche her #13150

  • alda
  • aldas Avatar Autor
  • Offline
  • Benutzer
  • Benutzer
  • Beiträge: 447
  • Dank erhalten: 43
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?

Alex

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Perimeter sender automatic switch off 4 Monate 1 Woche her #13155

  • gk
  • gks Avatar
  • Offline
  • Benutzer
  • Benutzer
  • Beiträge: 29
  • Dank erhalten: 16
Hello Alex.
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.
Folgende Benutzer bedankten sich: alda

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Perimeter sender automatic switch off 4 Monate 1 Woche her #13158

  • alda
  • aldas Avatar Autor
  • Offline
  • Benutzer
  • Benutzer
  • Beiträge: 447
  • Dank erhalten: 43
Good idea,
thank you
Alex

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Perimeter sender automatic switch off 4 Monate 1 Woche her #13165

  • Bernard
  • Bernards Avatar
  • Offline
  • Benutzer
  • Benutzer
  • Beiträge: 452
  • Dank erhalten: 84
Hi. Alda.
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).

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Perimeter sender automatic switch off 4 Monate 1 Woche her #13173

  • alda
  • aldas Avatar Autor
  • Offline
  • Benutzer
  • Benutzer
  • Beiträge: 447
  • Dank erhalten: 43
Thank you,
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.

Alex

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Perimeter sender automatic switch off 4 Monate 1 Woche her #13174

  • Roland
  • Rolands Avatar
  • Offline
  • Benutzer
  • Benutzer
  • Beiträge: 366
  • Dank erhalten: 153
Did you calibrate the ADC with pressing 1?

Serial.println(F(" 1 for current sensor calibration"));

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

"There’s a way to do it better - find it" ― Thomas A. Edison

Perimeter sender automatic switch off 4 Monate 1 Woche her #13189

  • Bernard
  • Bernards Avatar
  • Offline
  • Benutzer
  • Benutzer
  • Beiträge: 452
  • Dank erhalten: 84
Hi Alda.

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.

Good luck

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Perimeter sender automatic switch off 4 Monate 1 Woche her #13190

  • alda
  • aldas Avatar Autor
  • Offline
  • Benutzer
  • Benutzer
  • Beiträge: 447
  • Dank erhalten: 43
No,
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.

Alex
Anhang:

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Perimeter sender automatic switch off 4 Monate 1 Woche her #13195

  • alda
  • aldas Avatar Autor
  • Offline
  • Benutzer
  • Benutzer
  • Beiträge: 447
  • Dank erhalten: 43
ok, I connected and values are as I expected :

time=28 chgCurrent=0.000 chgCurrentADC=0.05 isCharging=0 periCurrent avg=0.20 max=0.22 duty=1.00 dutyPWM=255 faults=0 tout=0
time=28 chgCurrent=0.000 chgCurrentADC=0.03 isCharging=0 periCurrent avg=0.20 max=0.23 duty=1.00 dutyPWM=255 faults=0 tout=0
time=29 chgCurrent=0.010 chgCurrentADC=9.84 isCharging=1 periCurrent avg=0.21 max=0.22 duty=1.00 dutyPWM=255 faults=0 tout=0
time=29 chgCurrent=0.010 chgCurrentADC=9.54 isCharging=1 periCurrent avg=0.00 max=0.00 duty=1.00 dutyPWM=255 faults=0 tout=0

so when no charging, current is around 10mA, so I decreased limit to 6mA and now all looks ok.

Alex

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Seite:
  • 1
Ladezeit der Seite: 0.260 Sekunden