Jumping mouse drives me crazy

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
Posts: 23
Joined: Thu Jul 12, 2018 11:40 am
Location: Christchurch, New Zealand

Jumping mouse drives me crazy

Post by Hanilein » Sun Feb 03, 2019 12:07 am

I use a Pyboard with V1.9.2 for approx. 9 months.

recently it got possessed - it makes the laptop mouse jumping around and clicking, a jump per second. It happens more often and right now, i cannot work anymore.

In the boot.py the pyboard is set to be a storage device. And it has been working for months, this new behavior started some weeks ago.
As soon as I pull the USB plug from the pyboard, the laptop is back to normal. Plug goes in, mouse starts jumping.
Rebooting the computer does not help either.

Anyone any idea?


The boot.py is:

Code: Select all

# boot.py -- run on boot-up
# can run arbitrary Python, but best to keep it minimal
import pyb

pyb.freq(168000000, 168000000, 42000000, 84000000) # default

#pyb.main('main Power Save.py') # main script to run after this one
pyb.usb_mode('VCP+MSC') # act as a serial and a storage device
#pyb.usb_mode('VCP+HID') # act as a serial device and a mouse

Ivo Gorny

User avatar
Posts: 3241
Joined: Fri Jul 18, 2014 8:01 am
Location: UK

Re: Jumping mouse drives me crazy

Post by pythoncoder » Mon Feb 04, 2019 9:05 am

I assume the Pyboard isn't running code (via main.py).

I would try the pyboard on another PC. Then try a different mass storage device on your laptop. Finally try disabling mass storage on the Pyboard.

I've never heard of this one before.
Peter Hinch

Posts: 23
Joined: Thu Jul 12, 2018 11:40 am
Location: Christchurch, New Zealand

Re: Jumping mouse drives me crazy

Post by Hanilein » Sun Feb 10, 2019 11:07 pm

Hi Peter,

no, the PyBoard isn't running code.
It may have to do with my setup, though i do not understand, how.
The PyBoard sits on a breadboard, there are two FTDI cables connected and a RS232-to-USB converter. All 4 devices are using one 1-to-4 USB hub, connected to the docking station of my laptop. One of the two FTDI cables transmits a GPS datastream to the laptop, with no involvment of the pyboard at all.

When that problem occurred in the past, I usually disconnected the pyboard from the hub, and the jumping mouse stopped. It re-appeared, as soon as the pyboard was reconnected, and I had to reboot the laptop.

I recently discovered, that the problem does not reappear, when I disconnect and reconnect the whole hub.
So, I have a workaround for now, and the problem seems only to appear once or twice a week, that's no too bad.

The breadboard is also the reason, why I have not yet tested this with another pyboard - I use a special adapter which also has a battery for the RTC, and I don't have a second pyboard modified for that purpose yet. As soon as i have, i will test it.

Maybe someone else has an idea why that happens...

Anyways, many thanks for your help.
Ivo Gorny

Post Reply