AlterMundi-MonitoreoyControl / Proyecto-Incubadora

0 stars 5 forks source link

improves rotation failure detection #102

Open javierbrk opened 15 hours ago

javierbrk commented 15 hours ago

Para probar: desactivar los timers comentando las líneas 240,244 y 254 bajar el periodo de rotacion en la línea 247 a 30s usando la siguiente línea

rotation:register(30000, tmr.ALARM_AUTO, rotate)

si todo sale bien y se activan los switches ... [TRACE 2024-10-29 11:39:44 DST:0] : [R] rotation------------------------------- [TRACE 2024-10-29 11:39:44 DST:0] : gpio reeds values up: 1 down: 0 [TRACE 2024-10-29 11:39:44 DST:0] : rotating upppppp [TRACE 2024-10-29 11:39:45 DST:0] : rotating turning onnnn [TRACE 2024-10-29 11:39:45 DST:0] : [R] turn rotation on------------------------------- [TRACE 2024-10-29 11:39:46 DST:0] : [R] rotation working pin activated 35 -0 [TRACE 2024-10-29 11:39:46 DST:0] : turning offfffffff [TRACE 2024-10-29 11:39:46 DST:0] : [R] noise, not able to enable rotation [TRACE 2024-10-29 11:39:46 DST:0] : [R] noise, not able to enable rotation [TRACE 2024-10-29 11:39:46 DST:0] : [R] noise, not able to enable rotation [TRACE 2024-10-29 11:39:46 DST:0] : [R] noise, not able to enable rotation [TRACE 2024-10-29 11:39:47 DST:0] : [R] rotation working rotation is active thanks to pin 34 level 1 [TRACE 2024-10-29 11:39:50 DST:0] : turning offfffffff [TRACE 2024-10-29 11:39:50 DST:0] : [R] rotation working :)

si el switch se queda en bajo [TRACE 2024-10-29 11:40:14 DST:0] : [R] rotation------------------------------- [TRACE 2024-10-29 11:40:14 DST:0] : gpio reeds values up: 0 down: 1 [TRACE 2024-10-29 11:40:15 DST:0] : rotating downnn [TRACE 2024-10-29 11:40:15 DST:0] : rotating turning onnnn [TRACE 2024-10-29 11:40:15 DST:0] : [R] turn rotation on------------------------------- [TRACE 2024-10-29 11:40:20 DST:0] : turning offfffffff [ERROR 2024-10-29 11:40:20 DST:0] : [R] rotation error ----- sensors not activated after rotation [TRACE 2024-10-29 11:48:57 DST:0] : [R] rotation------------------------------- [ERROR 2024-10-29 11:48:58 DST:0] : [R] rotation disabed, sensors are not working [TRACE 2024-10-29 11:49:27 DST:0] : [R] rotation------------------------------- [ERROR 2024-10-29 11:49:28 DST:0] : [R] rotation disabed, sensors are not working

javierbrk commented 15 hours ago

asociado al issue #97 si el switch se queda pegado al imán se desactiva el volteo.