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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Legacy Personal Blogs Just Finished My Python Course : Can you run Pythin directly on any Arduino?
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dubbie
  • Date Created: 21 Feb 2020 12:17 PM Date Created
  • Views 2047 views
  • Likes 8 likes
  • Comments 23 comments
  • python
  • arduino
Related
Recommended

Just Finished My Python Course : Can you run Pythin directly on any Arduino?

dubbie
dubbie
21 Feb 2020

I have just finished my Introduction to Python Course put on by FutureLearn which was not too difficult and I think I might have learnt something. Now I want to try out a few things - I still do not know how to blink a LED in Python yet.

 

What I would like to do is to run Python programmes (scripts?) directly on an Arduino. I have looked on Google and so far I have not found anything that indicates it might be possible. I know that Python is interpreted but does anyone know if there is a powerful enough Arduino that has had Python ported to it? I know the Raspberry has and probably other boards as well.

 

Dubbie

 

PS My Java course, also on FutureLearn started this week, hopefully learning two languages in such a short time will not be too confusing.

  • Sign in to reply

Top Comments

  • tariq.ahmad
    tariq.ahmad over 5 years ago +4
    Hi dubbie , I don't have an exact date but I know this will be a pretty big deal when its released: Arduino Portenta H7 Powered by STM32H7 Supports Python and Javascript Out of the Box! We will be carrying…
  • michaelkellett
    michaelkellett over 5 years ago in reply to dixonselvan +3
    It takes a while to get to the point but your link is about running Python on a PC and it talking to an Arduino: However, there are some approaches you can take to use Arduino with Python or other languages…
  • beacon_dave
    beacon_dave over 5 years ago +3
    You may be able to install CircuitPython on some Arduino boards based on the SAMD microcontrollers. https://learn.adafruit.com/installing-circuitpython-on-samd21-boards Some examples of digital IO here…
Parents
  • baldengineer
    baldengineer over 5 years ago

    Put simply, it comes down to which Arduino you mean. If you're talking about an Uno, Nano or other 8-bit variants, then no. With only ~2K of RAM it just isn't possible.

     

    However, if you look at Arduino boards in the MKR-series or the Zero, these are based on the Cortex-M0 ARM processor. They have the potential to run either MicroPython or CircuitPython.

     

    If you expand to Arduino-compatible boards like the ESP8266, ESP32, or the 32-bit Feather-series from Adafruit then you also have multiple options. Every 32-bit Adafruit-made board I am aware of runs CircuitPython. Adafruit's Feather M0Adafruit's Feather M0 is one of my favorites.

     

    When it comes down to it, the difference between MicroPython and CircuitPython can be small. However, CircuitPython is directly focused on being easy-to-use and learn, especially on supported hardware.

     

    What I like about CircuitPython supported hardware is that programming them is as simple as saving the py file on their virtual disk image.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • baldengineer
    baldengineer over 5 years ago

    Put simply, it comes down to which Arduino you mean. If you're talking about an Uno, Nano or other 8-bit variants, then no. With only ~2K of RAM it just isn't possible.

     

    However, if you look at Arduino boards in the MKR-series or the Zero, these are based on the Cortex-M0 ARM processor. They have the potential to run either MicroPython or CircuitPython.

     

    If you expand to Arduino-compatible boards like the ESP8266, ESP32, or the 32-bit Feather-series from Adafruit then you also have multiple options. Every 32-bit Adafruit-made board I am aware of runs CircuitPython. Adafruit's Feather M0Adafruit's Feather M0 is one of my favorites.

     

    When it comes down to it, the difference between MicroPython and CircuitPython can be small. However, CircuitPython is directly focused on being easy-to-use and learn, especially on supported hardware.

     

    What I like about CircuitPython supported hardware is that programming them is as simple as saving the py file on their virtual disk image.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • dubbie
    dubbie over 5 years ago in reply to baldengineer

    James,

     

    Thanks for this. I have purchased an ESP32 (and ESP32CAM) with the idea of doing some image processing/face recognition, although I have not plugged it in yet - too lazy I think. Maybe next year.

     

    I like the idea of being easy to use, so Circuit Python is becoming more attractive.

     

    Dubbie

    • Cancel
    • Vote Up 0 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