Page 1 of 1

pyboard not working

Posted: Thu Aug 08, 2019 9:23 am
by WaterLee
I have built a self-balancing robot based on pyboard. I use PWM to control DC motor and UART to get the attitude data from a specific module. The problem is that when I use the repl to test my code, everything is OK, but when I transfer the code to the SD card, the motor and the attitude data don't work.

Re: pyboard not working

Posted: Thu Aug 08, 2019 11:22 am
by jimmo
Hi,

Can you provide more information -- does your program execute at all, or just fail to control the PWM and UART?

If you write a simple main.py that just flashes the LED and put it on the SD card, does that work?

What if you use internal flash rather than the SD card?