Arduino and Python

Hello,

I was wondering if there is any way to program Arduino using Python.
I want to learn more about AI and I read that python is the best language for that purpose.
I think that using Arduino for AI is a little bit silly but I don't know any other microcontroller.
So, I want to tell me what IDE should I use to program Arduino using Python or any other microcontroller that I could use instead of Arduino.

Thanks in advance :smiley:

Arduinos are only programmed in C++. Python is an interpreted language and an Arduino does not have enough memory or speed to run the Python interpreter.

I believe you can run MicroPython on an ESP32 module - I have bought some recently but have not tried MicroPython yet. I would expect that MicroPython will use a great deal of the "speed" of the ESP32 for its own internal purposes with the result that the code I write will probably be much slower than if I wrote it in C++.

You can program an ESP32 with the Arduino IDE if you install the appropriate core libraries.

I suspect it would make a lot more sense to do AI programming on a PC (or maybe a RaspberryPI) which will be very much faster than an ESP32, never mind an Arduino.

...R

Sparkfun has some micropython boards.

However, I would just install python on a PC if you want to explore python.

Robin2:
I believe you can run MicroPython on an ESP32 module - I have bought some recently but have not tried MicroPython yet. I would expect that MicroPython will use a great deal of the "speed" of the ESP32 for its own internal purposes with the result that the code I write will probably be much slower than if I wrote it in C++.

The fastest Arduino that I have is an esp8266. Do you know if ESP32 is better than ESP8266?

Robin2:
I suspect it would make a lot more sense to do AI programming on a PC (or maybe a RaspberryPI) which will be very much faster than an ESP32, never mind an Arduino.

How can I use a PC to program AI? I mean what software I need to do it.

Btw, thanks a lot

Use NI to program AI. Problem is, NI is so buggy, that the sightest hope of AI performing better than NI is just a sign of how buggy NI is.

You can use MicroPython on the ESP8266:
https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html

Petrouil:
How can I use a PC to program AI? I mean what software I need to do it.

That seems a very strange question considering the questions with which you started this Thread.

If you don't know how to get started with AI on a PC how on earth did you expect to get started on an Arduino?

You need to ask about AI on a Forum that deals with AI or on a Forum that deals with Python programming on a PC.This is not the right Forum.

...R

I can recommend some YouTube channels where various forms of Machine Learning are demonstrated:

The Coding Train (formerly "The Coding Rainbow"):

Jabrils:

Code Bullet: