element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Ralph Yamamoto's Blog Happy Pico Pi Day
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 15 Mar 2021 3:31 AM Date Created
  • Views 864 views
  • Likes 7 likes
  • Comments 2 comments
  • thonny
  • neopixel ring
  • micropython
  • pi pico
Related
Recommended

Happy Pico Pi Day

ralphjy
ralphjy
15 Mar 2021

I thought I shouldn't let Pi Day go by without doing something on an RPi, so I decided that since I've been using the C/C++ SDK with the RP2040 that it would be appropriate to try something on the Pi Pico with MicroPython and the Python SDK.  I'm using the RPi400 as the development host, so I'm actually using 2 Pis image - bonus points...

 

Loading MicroPython was easy since there is a UF2 file provided (https://www.raspberrypi.org/documentation/rp2040/getting-started/static/f70cc2e37832cde5a107f6f2af06b4bc/rp2-pico-202102… ) and I've added a Reset button to my breadboard so I don't have to mess with unplugging and re-plugging the USB cable to get the Pico in mass storage mode.

 

The Thonny IDE is already included in the RPi400 OS image, so I just needed to pick up some example files.  I thought it would be fun to try out the NeoPixel ring since I had one handy.  There is code available on the github repo pico-micropython-examples https://github.com/raspberrypi/pico-micropython-examples/blob/master/pio/neopixel_ring/neopixel_ring.py#L1-L104 .

 

Here's the basic hookup - just +5V, Gnd, and GPIO 6 for the NeoPixel ring.  You can also see the Reset button that I have wired between the Run pin and Gnd.

image

 

Here is the program loaded in Thonny (I'm using VNC to operate the RPi400 remotely).

image

 

And a quick video.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

I've satisfied my need to do something for Pi Day.  MicroPython is a lot easier to set up than C/C++, but I think It's really about being able to find libraries for what you're trying to run.

 

I hear the Marie Callendar pot pie calling me for dinner....

  • Sign in to reply

Top Comments

  • carmelito
    carmelito over 4 years ago +3
    Happy Pi day ! I have a Pi Pico on order. The reset button seems to be the best way to go, thanks for the idea ..
  • neilk
    neilk over 4 years ago +1
    Hi Ralph. Nice demo of Python on the pico. I had a quick play with it during one of my frustrating periods with C/C++ for the pico on Windows. Must get back to that soon and also look in more detail at…
  • neilk
    neilk over 4 years ago

    Hi Ralph. Nice demo of Python on the pico. I had a quick play with it during one of my frustrating periods with C/C++ for the pico on Windows.

     

    Must get back to that soon and also look in more detail at python.

     

    Neil

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • carmelito
    carmelito over 4 years ago

    Happy Pi day ! I have a Pi Pico on order. The reset button seems to be the best way to go, thanks for the idea image ..

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube