Electronics > Microcontrollers

Pico vs 8bit Compiler

(1/6) > >>

commie:
Hi Folks,

Just recently, I discovered the Pi Pico.
Well, I'm well versed with 8051/AVR 8 bit support and coding and dont see an immediate need for more power and in fact, I haven't really had an experience for more processor power.However, the Pico uses two programming avenues, 1)program with c compiler or 2) Program with interpreter/microPython the Pico's can be had for £3 per pc in qty(5) and can run at 130MHz offer about 220kb ram 2Mbyte flash.

I have always thought interpreters to be inefficient though? what do you think?

rstofer:
Inefficient depends on your frame of reference.  If MicroPython is fast enough for the application, who cares whether it is interpreted or compiled?  Java is interpreted...

I was just playing with the Pi Pico and MicroPython last week.  I'm starting to really like it.

I bought a Pico Breadboard to hold the device and provide for buttons and LEDs plus a small breadboard.

https://www.amazon.com/components-Raspberry-Board-Breadboard-Multi-Purpose/dp/B08TM2VHFF

I added some bumpers to the underside of the board:

https://www.amazon.com/Cabinet-Adhesive-Stoppers-Cushions-Cupboard/dp/B08GC8VZ3C

All in, this is a pretty nice development platform and MicroPython is also pretty slick.

There's a pretty good book for newcomers:

https://www.amazon.com/Get-Started-MicroPython-Raspberry-Pico/dp/1912047861

commie:

--- Quote from: rstofer on September 26, 2021, 08:24:09 pm ---Inefficient depends on your frame of reference.  If MicroPython is fast enough for the application, who cares whether it is interpreted or compiled?  Java is interpreted...

I was just playing with the Pi Pico and MicroPython last week.  I'm starting to really like it.

I bought a Pico Breadboard to hold the device and provide for buttons and LEDs plus a small breadboard.

I added some bumpers to the underside of the board:

All in, this is a pretty nice development platform and MicroPython is also pretty slick.

--- End quote ---

Agreed!, what I should have said, interpreters are slow whilst running microsoft basic running on a 1MHz R6502?

Doctorandus_P:
I have bought a few We-Act "Black Pills" with an STM32F411 on it and soldered on a 25Q16, and while wondering what to do with it, I spend an afternoon in flashing micropython on it.

http://micropython.org/

I am still confused though what sort of advantage micropython has over C++.
Maybe it has some use on controllers such as the (also supported) ESP32 if Micropython has direct support for a HTTP server to generate some web pages on the fly and can combine that with live measurements, MQTT and other higher level protocols.

Do note though that I've been programming in (mostly) C and C++ for some 30 years and have only moderest interest in Python itself. Which means, C and C++ are my default languages and I'd have to have a good reason to do anything in Python.

But even then, I have the tendency to just skip micropython and use "normal" Python on a small single board computer such as the BBB, Cubieboard, or one of the Olimex boards that are linux-capable.

commie:

--- Quote from: Doctorandus_P on September 26, 2021, 08:42:12 pm ---
Do note though that I've been programming in (mostly) C and C++ for some 30 years and have only moderest interest in Python itself. Which means, C and C++ are my default languages and I'd have to have a good reason to do anything in Python.
--- End quote ---

Hi,

If you can program c then all the better because you then hop from processor to processor. Obviously, if you you are smart with c then that is the better option.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version