Controlling micropython board from desktop computer
Controlling micropython board from desktop computer
I want to control a micropython rp2040 board from my desktop computer. Are there any good write ups for how to do this with pyserial or anything else?
Re: Controlling micropython board from desktop computer
Not sure. But this one may help if you're using a windows PC: https://picockpit.com/raspberry-pi/rasp ... n-windows/
-
- Posts: 83
- Joined: Mon Mar 20, 2017 10:22 pm
Re: Controlling micropython board from desktop computer
What kind of control specifically are you looking to do? What's the goal?
Re: Controlling micropython board from desktop computer
I'm also curious what you mean by "control" here - are you looking to send serial commands, turn attached devices on/off?
Also, what kind of desktop computer are you using?
Also, what kind of desktop computer are you using?
Re: Controlling micropython board from desktop computer
maybe he was talking about a built in compilator? like arduino has one
Re: Controlling micropython board from desktop computer
AFAIK, there is no built-in compiler in the Arduino IDE itself. Arduino packages for a certain architecture install the respective compiler when the package is installed. The Arduino IDE then calls this compiler/linker.
Re: Controlling micropython board from desktop computer
I can control the TMC5160 board via the micropython repl. But i want to control it from some python3 code i run on my desktop. With pyserial or whatever. My desktop can be apple, win, ubuntu.
-
- Posts: 83
- Joined: Mon Mar 20, 2017 10:22 pm
Re: Controlling micropython board from desktop computer
Rather open-ended question without knowing what it is you would do when controlling it (such as turning on a lamp) but one way to do it is send serial commands from the desktop. The uPy script listens with input() as though it were typed directly into the script, and outputs lines that are parsed on the desktop. Use new lines to delineate output.
https://pyserial.readthedocs.io/en/late ... intro.html
https://pyserial.readthedocs.io/en/late ... intro.html
Re: Controlling micropython board from desktop computer
Maybe the OP's looking for something equivalent to Firmata, the serial remote protocol much used in interaction design? I don't know of any written-in-MicroPython implementations of Firmata, or any that could talk to a Trinamic board (stepper driver?)
-
- Posts: 83
- Joined: Mon Mar 20, 2017 10:22 pm
Re: Controlling micropython board from desktop computer
Firmata would be a great choice. I don’t think the Pi board needs to run uPy, they probably have an image just for that.