The Raspberry Pi Thread [5]


  1. Posts : 15,037
    Windows 10 IoT
    Thread Starter
       #1871

    There are a couple of threads on the go on the explorer base on the Pimoroni Forum. Some nice code in there too.
    Search results for 'PICO explorer base' - Pimoroni Buccaneers
      My Computer


  2. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #1872

    I just need something small just for practice ,,Just soldered the header on, man what a time i had ,not sure if it was my iron temps or the size of pico .. It shows up on my laptop so I guess its working ,will of course I'll know for sure when I try to run something that uses all pins
    alphanumeric said:
    There are a couple of threads on the go on the explorer base on the Pimoroni Forum. Some nice code in there too.
    Search results for 'PICO explorer base' - Pimoroni Buccaneers
      My Computer


  3. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #1873

    well ,first try didn't work for me ,likely something I'm doing wrong .. following info on this site .
    Getting set-up with the Pimoroni Pico Explorer and using it to get the demo running - Raspberry Pi Pod and micro:bit base
      My Computer


  4. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #1874

    well ,first try didn't work for me ,likely something I'm doing wrong .or bad solder job... following info on this site .. Getting set-up with the Pimoroni Pico Explorer and using it to get the demo running - Raspberry Pi Pod and micro:bit base
      My Computer


  5. Posts : 15,037
    Windows 10 IoT
    Thread Starter
       #1875

    First thing you need to do is install Pimoroni's custom image.
    Getting Started with Raspberry Pi Pico - Pimoroni Yarr-niversity
    from here
    Releases . pimoroni/pimoroni-pico . GitHub
    Hold the Boot Select Down, plug it in, release the button. Then drage and drop the uf2 file to it and reboot it.
    On my Pi400 I did a
    sudo apt update && sudo apt upgrade -y
    This upgrades Thonny to the latest and adds PICO support. In the lower right corner it will say Python x.xx etc. Click that and change the interpreter to Pi PICO. Once you do that you can run your code on the PICO from Thonny. Clicking the Run button will run it on the PICO. Just plug it in normally without pressing the Boot Select Button.
      My Computer


  6. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #1876

    I installed Thonny on my windows laptop ,i did the Pimoroni install and then followed info from site i linked, cant remember exactly what I did after that ,I'm Having short term memory issues,,I get confused halfway through doing things,no memory of what i done ,, .It's driven me nuts
    alphanumeric said:
    First thing you need to do is install Pimoroni's custom image.
    Getting Started with Raspberry Pi Pico - Pimoroni Yarr-niversity
    from here
    Releases . pimoroni/pimoroni-pico . GitHub
    Hold the Boot Select Down, plug it in, release the button. Then drage and drop the uf2 file to it and reboot it.
    On my Pi400 I did a
    sudo apt update && sudo apt upgrade -y
    This upgrades Thonny to the latest and adds PICO support. In the lower right corner it will say Python x.xx etc. Click that and change the interpreter to Pi PICO. Once you do that you can run your code on the PICO from Thonny. Clicking the Run button will run it on the PICO. Just plug it in normally without pressing the Boot Select Button.
      My Computer


  7. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #1877

    ok ,this is the part I'm not understanding ,,, not in the mood today for trying again ,,maybe tomorrow
    alphanumeric said:
    sudo apt update && sudo apt upgrade -y
    This upgrades Thonny to the latest and adds PICO support. In the lower right corner it will say Python x.xx etc. Click that and change the interpreter to Pi PICO. Once you do that you can run your code on the PICO from Thonny. Clicking the Run button will run it on the PICO. Just plug it in normally without pres sing the Boot Select Button..
      My Computer


  8. Posts : 15,037
    Windows 10 IoT
    Thread Starter
       #1878

    It will be different on a PC. Go to Tools > Interpreter, and it will say "The same interpreter which runs Thonny (default)"
    Click the drop down and look for MicroPython(Raspberry Pi PICO). That's what I see listed on my Pi, I don't see it as an option on my PC though? I guess I have to update Thonny or install a new version?
    On my "Pi" its listed in the lower right hand corner of the open Thonny Window. And that's where you click to change it.

    EDIT: Just installed the latest version and I now have the MicroPython(Raspberry Pi PICO) option.
      My Computer


  9. Posts : 15,037
    Windows 10 IoT
    Thread Starter
       #1879

    I just plugged my PICO into my PC, it was detected and setup in I think it said FS mode. I just accepted the default and didn't change anything. In Thonny I changed the Interpreter to MicroPython (Raspberry Pi Pico) and left the Port to < Try to detect port automatically >.
    I then clip and pasted the following in, saved it to my PC, clicked run, and the Pico's LED blinked. =)
    Don't save it to the PICO, not unless you want it to be run every time its powered up. If that is what you want to do you have to save it as main.py. Saved as any other name and it won't run automatically. You could still run it manually though.
    Code:
    from machine import Pin, Timer
    led = Pin(25, Pin.OUT)
    timer = Timer()
    
    def blink(timer):
        led.toggle()
    
    timer.init(freq=2.5, mode=Timer.PERIODIC, callback=blink)
      My Computer


  10. Posts : 5,707
    insider build 10586.3 win10 pro 64
       #1880

    I fiddle a bit last night ,but nothing works ,I get so confuse and had to stop .,I will switch to using it on my Pi , I have to try to read more ,and watch less tv ..lol ..
    alphanumeric said:
    I just plugged my PICO into my PC, it was detected and setup in I think it said FS mode. I just accepted the default and didn't change anything. In Thonny I changed the Interpreter to MicroPython (Raspberry Pi Pico) and left the Port to < Try to detect port automatically >.
    I then clip and pasted the following in, saved it to my PC, clicked run, and the Pico's LED blinked. =)
    Don't save it to the PICO, not unless you want it to be run every time its powered up. If that is what you want to do you have to save it as main.py. Saved as any other name and it won't run automatically. You could still run it manually though.
    Code:
    from machine import Pin, Timer
    led = Pin(25, Pin.OUT)
    timer = Timer()
    
    def blink(timer):
        led.toggle()
    
    timer.init(freq=2.5, mode=Timer.PERIODIC, callback=blink)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 12:09.
Find Us




Windows 10 Forums