Page 1 of 1

MicroPython startup, No flash drive

Posted: Tue Dec 14, 2021 12:55 am
by GilbertGagne
I'm a newbie with 2 new Pyb v1.1. I've waited until humidity was over 85%
to remove them from anti-static sleeves to avoid zapping them. I've
plugged them into USB port on my Win10 laptop. One Pyb blinks one Led and
the other blinks 3 Leds. Neither Pyb shows up in File Explorer. Program.
Openned Python 3.6 and input "import pyb". reply: ModuleNotFoundError: No module named 'pyb'.

What am I doing wrong?

Re: MicroPython startup, No flash drive

Posted: Tue Dec 14, 2021 7:19 am
by FeK9
GilbertGagne wrote:
Tue Dec 14, 2021 12:55 am
I'm a newbie with 2 new Pyb v1.1. I've waited until humidity was over 85%
to remove them from anti-static sleeves to avoid zapping them. I've
plugged them into USB port on my Win10 laptop. One Pyb blinks one Led and
the other blinks 3 Leds. Neither Pyb shows up in File Explorer. Program.
Openned Python 3.6 and input "import pyb". reply: ModuleNotFoundError: No module named 'pyb'.

What am I doing wrong?
Morning...

Don't own a PyBoard, but maybe this link of MicroPython Documentation 1.17 would help...

https://docs.micropython.org/en/latest/ ... index.html

Re: MicroPython startup, No flash drive

Posted: Tue Dec 14, 2021 7:23 am
by Roberthh
A good start would be installing the up-to-date firmware.

Re: MicroPython startup, No flash drive

Posted: Tue Dec 14, 2021 5:45 pm
by GilbertGagne
According to the referenced doc, the Pyb is correctly connected via USB to PC and PC is running File Explorer. File Explorer does not list any flash drive.

I would like to re-install up to date software but have not found how to do that. Some guidance and/or references would be greatly appreciated.

Re: MicroPython startup, No flash drive

Posted: Tue Dec 14, 2021 6:10 pm
by Roberthh
For Download images, go to https://micropython.org/download/?vendo ... 20Robotics
Select the board you own. There you will find the firmware images and load instructions.

Re: MicroPython startup, No flash drive

Posted: Thu Dec 16, 2021 7:08 pm
by nedkonz
GilbertGagne wrote:
Tue Dec 14, 2021 12:55 am
Openned Python 3.6 and input "import pyb". reply: ModuleNotFoundError: No module named 'pyb'.
What am I doing wrong?
You're opening Python on your PC, for one thing.

You need to talk to the MicroPython on the pyboard instead, over the USB serial link.

For this you need a communications program.

Re: MicroPython startup, No flash drive

Posted: Wed Dec 29, 2021 9:43 pm
by GilbertGagne
I tried downloading updated software but found that my USB cable passed power but not data. A new USB cable now reads the PYB Flash drive. Problem solved.

Thank you all for the helpful comments. It sure is comforting to have this rescue forum.