CircuitPython – The easiest way to program microcontrollers
circuitpython.org
CircuitPython – The easiest way to program microcontrollers
1–10 of 46 posts
Re: CircuitPython – The easiest way to program microcontrollers
#2Re: CircuitPython – The easiest way to program microcontrollers
#3It's ok for prototyping, I would not use it on production. Still recommend using C++, and Platformio for most things.
But it helped me with quick hacks and proofs of concept.
For example, my company build a laser warning system that would be triggered when someone cut through the laser. I build a quick remote control to trigger the system without having to get on a ladder and put the hand in front of the laser to diagnose problems.
Re: CircuitPython – The easiest way to program microcontrollers
#4I used Circuit python in a Raspberry PI Pico. It's ok for prototyping, I would not use it on production. Still recommend using C++, and Platformio for most things. But it helped me with quick hacks and proofs of concept. For example, my company build a laser warning system that would be triggered when someone cut through the laser. I build a quick remote control to trigger the system without having to get on a ladder…
I've not used a pico but other microcontrollers with c++ interfacing tools, and my thoughts are these things don't have interpreters onboard so the language choice is likely not that important. But I'm limited to TI boards.
Re: CircuitPython – The easiest way to program microcontrollers
#5Re: CircuitPython – The easiest way to program microcontrollers
#6I used Circuit python in a Raspberry PI Pico. It's ok for prototyping, I would not use it on production. Still recommend using C++, and Platformio for most things. But it helped me with quick hacks and proofs of concept. For example, my company build a laser warning system that would be triggered when someone cut through the laser. I build a quick remote control to trigger the system without having to get on a ladder…
What was the downside? Why only prototyping? I've not used a pico but other microcontrollers with c++ interfacing tools, and my thoughts are these things don't have interpreters onboard so the language choice is likely not that important. But I'm limited to TI boards.
Re: CircuitPython – The easiest way to program microcontrollers
#7I used Circuit python in a Raspberry PI Pico. It's ok for prototyping, I would not use it on production. Still recommend using C++, and Platformio for most things. But it helped me with quick hacks and proofs of concept. For example, my company build a laser warning system that would be triggered when someone cut through the laser. I build a quick remote control to trigger the system without having to get on a ladder…
What was the downside? Why only prototyping? I've not used a pico but other microcontrollers with c++ interfacing tools, and my thoughts are these things don't have interpreters onboard so the language choice is likely not that important. But I'm limited to TI boards.
But it all depends of what you need to do with it. Like would I put python in something that someone can get hurt if it dosen't work ? Not. For things like just printing information in a OLED display? Sure, why not. Its easier to mess around with strings in python.
Re: CircuitPython – The easiest way to program microcontrollers
#8Earlier quoted context omitted.
What was the downside? Why only prototyping? I've not used a pico but other microcontrollers with c++ interfacing tools, and my thoughts are these things don't have interpreters onboard so the language choice is likely not that important. But I'm limited to TI boards.
In general with the the embedded Pythons, they are 2 or 3 orders of magnitude slower than C (big surprise) and they don't support all the hardware features. By necessity, they have a one-size-fits all approach that works fine for hobbyists but might not be sufficient for production. That all said, I love to bang out a prototype or one-off project with CircuitPython or MicroPython. Or Arduino if it makes sense.
Re: CircuitPython – The easiest way to program microcontrollers
#9Earlier quoted context omitted.
In general with the the embedded Pythons, they are 2 or 3 orders of magnitude slower than C (big surprise) and they don't support all the hardware features. By necessity, they have a one-size-fits all approach that works fine for hobbyists but might not be sufficient for production. That all said, I love to bang out a prototype or one-off project with CircuitPython or MicroPython. Or Arduino if it makes sense.
I never had to do something that could not be done with python. Probably some libs for more exotic hardware, but depending of how you program you can loose events like button presses if you do not consider the slow response time in python.
Do you write embedded code professionally?
Re: CircuitPython – The easiest way to program microcontrollers
#10In any case, can be good for PoC or similar things where your microcontroller is largely oversized for the application, but in practice you hardly can exploit your microcontroller's power using such a non-compiled high-level language. For a hobby project you can get a microcontroller that has 10x the actual power you need and use Python on it, but on an industrial scale it's not justifiable. 8-bit microcontrollers are still around for some reason...