Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 7
It's going to be extremely difficult to get any kind of Python script running directly on the Arduino. The reason is that it's an interpreted language, so you would need the interpreter on-board in addition to the plain text script. There's probably not going to be enough memory for all of that.
Your best bet would probably be finding a way to compile a Python script to native machine code (which is how C/C++ works). I believe there are projects around to do something like that for other platforms, but (as far as I know) none which does it successfully for Arduino yet.
You might find some more useful information on this question at Stack Overflow: Is there a way to "compile" Python code onto an Arduino (Uno).
Thanks
+ 8
Micropython is the closest way to have it like Arduino, instead of an entire OS like Raspberry Pi.
+ 7
It seems to be possible:
https://www.makeuseof.com/tag/program-control-arduino-JUMP_LINK__&&__python__&&__JUMP_LINK/
But why would you want to do it? If you already know enough C/C++ to program your arduino, you should be fine.
+ 4
I find that C and C++ are the most like the Open-Source Arduino programming. Knowing Python is always helpful; having any background in coding will be helpful.
BTW, I learned the C/C++ Arduino programming from a few books before I ever learned any specific language. I am now taking C++ and want to take Python next.
Good luck!
+ 3
C
C++
Python3
CPython.
Would help you out.
🤔🍁⌚💬👏
+ 2
To Programm with arduino, you need to learn c language. I'm not sure there is memory enough to install a python interpreter on Arduino Uno...
Check on Google!
+ 1
Why not using the arduino language itself? 🤔