MicroPython startup, No flash drive

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
GilbertGagne
Posts: 7
Joined: Wed Nov 11, 2020 5:40 pm

MicroPython startup, No flash drive

Post by GilbertGagne » 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?

FeK9
Posts: 33
Joined: Sun Jan 20, 2019 8:19 am

Re: MicroPython startup, No flash drive

Post by FeK9 » Tue Dec 14, 2021 7:19 am

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

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython startup, No flash drive

Post by Roberthh » Tue Dec 14, 2021 7:23 am

A good start would be installing the up-to-date firmware.

GilbertGagne
Posts: 7
Joined: Wed Nov 11, 2020 5:40 pm

Re: MicroPython startup, No flash drive

Post by GilbertGagne » Tue Dec 14, 2021 5:45 pm

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.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: MicroPython startup, No flash drive

Post by Roberthh » Tue Dec 14, 2021 6:10 pm

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.

nedkonz
Posts: 24
Joined: Thu Aug 05, 2021 9:58 pm

Re: MicroPython startup, No flash drive

Post by nedkonz » Thu Dec 16, 2021 7:08 pm

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.

GilbertGagne
Posts: 7
Joined: Wed Nov 11, 2020 5:40 pm

Re: MicroPython startup, No flash drive

Post by GilbertGagne » Wed Dec 29, 2021 9:43 pm

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.

Post Reply