Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
10th May 2019, 11:45 AM
Prince PS[Not_Active]
Prince PS[Not_Active] - avatar
+ 8
Micropython is the closest way to have it like Arduino, instead of an entire OS like Raspberry Pi.
10th May 2019, 1:18 PM
Ahri Fox
Ahri Fox - avatar
+ 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.
10th May 2019, 12:10 PM
Thoq!
Thoq! - avatar
+ 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!
12th May 2019, 11:05 PM
Jesse
Jesse - avatar
+ 3
C C++ Python3 CPython. Would help you out. 🤔🍁⌚💬👏
12th May 2019, 2:09 AM
Asim Farheen
Asim Farheen - avatar
+ 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!
10th May 2019, 11:42 AM
Théophile
Théophile - avatar
+ 1
Why not using the arduino language itself? 🤔
10th May 2019, 2:01 PM
Werg Serium
Werg Serium - avatar