Inventor 2040 W (Pico W Aboard) Which UF2?

Where do I find the UF2 download for the Inventor 2040 W (Pico W Aboard) ? I would love to try the examples.

I’d try 1.19 and see what happens. The Motor Controller and Servo 2040 were out then, and the Pico Audio etc. If they new these products were on the way, they likely slipped support into that uf2, but kept quiet on it.

All the examples need the inventor library and all I get is;

>>> %Run -c $EDITOR_CONTENT
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
ImportError: no module named 'inventor'
>>>

Its useless without the library!

1 Like

Ah, OK have a look here,
CI: Add Automation + Inventor to picow build. · pimoroni/pimoroni-pico@feac1fe (github.com)
And here,
CI: Add Automation + Inventor to picow build. · pimoroni/pimoroni-pico@b3a84f8 (github.com)

Unfortunately, still did not find the library required.

You may have to file an issue here.
Issues · pimoroni/pimoroni-pico (github.com)
Or do the
Contact Us for Raspberry Pi Technical Support - Pimoroni

@hel @Matt

Your other option is to try the other individual examples for the stand alone versions.
If your really bored at can’t wait. ;)
pimoroni-pico/micropython/examples/pico_motor_shim at main · pimoroni/pimoroni-pico (github.com)
and
pimoroni-pico/micropython/examples/servo2040 at main · pimoroni/pimoroni-pico (github.com)

Hi @Tonygo2 - we’re working on getting an official Pico W build out as soon as possible but the W stuff is still in beta in upstream MicroPython so everything’s a bit up in the air at the moment!

You could give this beta build a go in the meantime: CI: Add PicoW MicroPython build. · pimoroni/pimoroni-pico@f1a5c5c · GitHub (you’ll need to be logged in to Github). I think it was built before Automation and Inventor were merged in though, so to use those classes you’ll need to copy across inventor.py or automation.py to your Pico using Thonny.

Thank you. That got the RGB LEDs working.
Wireless partly works: you need to install urequests library to get
3.8.2. HTTP with urequests
from the Official Guide to work.

I’ll wait a bit while wireless gets sorted.

# Connect to network
import network
from secret import ssid,password
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect(ssid, password) 
# Make GET request
import urequests
r = urequests.get("http://www.google.com")
print(r.content+'\n\n')
r.close
r = urequests.get("http://date.jsontest.com")
print("\nTime from 'http://date.jsontest.com'\n")
print(str(r.json()))
r.close()


Time from 'http://date.jsontest.com'

{'milliseconds_since_epoch': 1656931337110, 'date': '07-04-2022', 'time': '10:42:17 AM'}
>>> 

Great for getting the time without a RTC.

1 Like