I've recently been playing around and testing the different demo programs with the PiStorm brick, Raspberry Pi 3 and NXT motors. When I run a single motor, it runs with no issues and all other programs seem to execute perfectly. The moment I introduce a second motor (it doesn't have to be using setSpeedSync, even just turning on two motors at the same time with setSpeed) then the LED next to F1 starts blinking red and the program seems to crash. As far as I understand it that red LED blinking indicates that there isn't enough power for the system to continue running the program? However, I've tried using batteries to power the PiStorm and I've tried a variable power supply, which is rated 40V and 5A. The maximum current being recorded when any of the demo programs are run is 0.6A.
I should also mention that on occasion, 04-Motor-Sync program runs as intended and so do some of my custom programs that use two motors. But this does not make sense to me at all. Furthermore, I recorded these errors from the log files (on the web interface):
Swarm Server:
Traceback (most recent call last): File "", line 127, in File "", line 22, in my_ip_address File "socket.py", line 224, in meth socket.error: [Errno 101] Network is unreachable swarmserver returned -1
MSWeb:
* Serving Flask app "MSWeb" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: off * Running on http://0.0.0.0:3141/ (Press CTRL+C to quit) 192.168.1.112 - - [31/Jan/2020 19:00:00] "GET /device HTTP/1.1" 200 - 192.168.1.112 - - [31/Jan/2020 19:00:00] "GET /firmware HTTP/1.1" 200 - 192.168.1.112 - - [31/Jan/2020 19:00:00] "GET /eth0 HTTP/1.1" 200 - 192.168.1.112 - - [31/Jan/2020 19:00:00] "GET /wlan0 HTTP/1.1" 200 - 192.168.1.112 - - [31/Jan/2020 19:00:00] "GET /battery HTTP/1.1" 200 - 192.168.1.112 - - [31/Jan/2020 19:00:00] "GET /software HTTP/1.1" 200 - 192.168.1.112 - - [31/Jan/2020 19:00:00] "GET /getprogramsdir HTTP/1.1" 200 -
If anyone has any clue or could point me in the right direction that would be great!
Hi, thanks for the information. But my variable power supply was set to 9V and the max current pulled is ~0.5A. So I don’t understand why or how the voltage could be dropping so much to cause the program to fail. Has this occurred before, do you have any idea how to fix such an issue?
Unfortunately, I don't think it is the wire guage. The moment I noticed my problem occuring, my first action was to twist 2 wires together to increase the current capacity, but that did not yield any improvement nor did the current being pulled increase. :(