View: 1070|Reply: 2

Rasptank strange LEDs behaviour

[Copy link]

1

Threads

8

Posts

23

Credits

Newbie

Rank: 1

Credits
23
Post time 2021-1-5 00:00:18 | Show all posts |Read mode
Since days, the 'breathing led' function has a malfunction. I made a video for showing what happens:
https://youtu.be/OJ9xRhBbowE

From the web interface, if I press "police light", nothing happens and leds continue in this way.
If I stop the webserver and I start webServer.py manually, leds works as they supposed: well. The same if I launch robotLight.py. This malfunction happens only if the webServer is started automatically at Raspberry startup.
First times all worked well, this problem has started happening since some days. I've also reloaded all scripts but without success. I've also disassembled and re-assembled cables but problem persists.


Reply

Use magic Report

1

Threads

8

Posts

23

Credits

Newbie

Rank: 1

Credits
23
 Author| Post time 2021-1-5 06:41:04 | Show all posts
I Solved the problem.
I added a 2 seconds delay at startup of main in webServer.py
Reply

Use magic Report

23

Threads

223

Posts

814

Credits

Senior member

Rank: 4

Credits
814
Post time 2021-2-5 12:05:47 | Show all posts
1609775601 replied at 2021-1-5 06:41 AM
I Solved the problem.
I added a 2 seconds delay at startup of main in webServer.py

OK!thank you for your sharing!
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules