# New microcontroller to look at: Pi Pico

**URL:** <https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865>\
**Category:** Hardware\
**Created:** [January 21, 2021, 8:39am UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865 "2021-01-21T08:39:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [January 21, 2021, 8:39am UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865/1 "2021-01-21T08:39:47Z")

</div>

$4 with a custom chip produced for the Pi foundation (note, does NOT run Linux, but micropython is an option)

Dual-core Arm Cortex M0+ processor, flexible clock running up to 133 MHz  
264KB of SRAM, and 2MB of on-board Flash memory  
Castellated module allows soldering direct to carrier boards  
USB 1.1 with device and host support  
Low-power sleep and dormant modes  
Drag-and-drop programming using mass storage over USB  
26 × multi-function GPIO pins  
2 × SPI, 2 × I2C, 2 × UART, 3 × 12-bit ADC, 16 × controllable PWM channels  
Accurate clock and timer on-chip  
Temperature sensor  
Accelerated floating-point libraries on-chip  
8 × Programmable I/O (PIO) state machines for custom peripheral support

software will need a bit of time to get up to speed (apparently only 1 core is used currently)

but the PIO will make for super accurate encoder inputs (and if, needed, stepper pulse generation) and the PWM for clean outputs

> **[Raspberry Pi Enters Microcontroller Game With $4 Pico](https://hackaday.com/2021/01/20/raspberry-pi-enters-microcontroller-game-with-4-pico/)**
>
> Raspberry Pi was synonymous with single-board Linux computers. No longer. The $4 Raspberry Pi Pico board is their attempt to break into the crowded microcontroller module market. The microcontrolle…

[https://www.raspberrypi.org/documentation/pico/getting-started/](https://www.raspberrypi.org/documentation/pico/getting-started/)

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [January 21, 2021, 8:43am UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865/2 "2021-01-21T08:43:24Z")

</div>

oh yes, programming is plug into your computer via usb and it looks like a drive, copy your firmware image to it, no special programming software needed

no wifi like a ESP-32 but better I/O

---

<div class="post-metadata">

**Author:** ![mooselake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/mooselake/32/6218_2.png) [@mooselake](https://forums.maslowcnc.com/u/mooselake)\
**Post date:** [January 21, 2021, 4:31pm UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865/3 "2021-01-21T16:31:59Z")

</div>

I just saw that too, wonder if the PIO processors would be a great fit for Maslow motors and encoders? Just speculation, because the articles were mostly puff pieces without any serious detail. Have to wonder if they pass the master card test yet (whip out your MC and buy some).

While it’s dual core there doesn’t seem to be a good way to use the second core (again, puffery) yet. It does seem intriguing to run the usb interface and planner etc. on one processor, motor control/encoder feedback on the second and (maybe) the PIOs. Have to wonder how the PIO compares to a BBB’s PRUs.

Seems like a good fit for something like the Nano style CNC boards (or Bart’s super board) where it would plug into a baseboard with the motor interfaces and IO, Add an RPi to run web control and talk to the world, one box standard interface. Wonder if it has enough advantage over Bart’s Board to be worthwhile.

And wonder why I’m typing wonder so often. This is another board I really wish I could have gotten back when I was spending long nights with 68K VME boards or before those 10ns cycle time AMD 2900 bit slice boards with a whopping 4K of 48 bit wide microinstruction space, in refrigerator sized boxes selling for several hundred grand (US currency unit worth about 2 Maslows).

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [January 21, 2021, 4:40pm UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865/4 "2021-01-21T16:40:22Z")

</div>

each PIO processor can run 4 state machines at once, they look pretty similar to the BBB PRUs (they are able to run a full VGA or HDMI output in them apparently)

for the maslow, I would see three of the state machines used to read the encoders and maintain a position count. the PWM outputs look very simple and powerful so I don’t think there is any help that would be needed there.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [January 21, 2021, 4:41pm UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865/5 "2021-01-21T16:41:59Z")

</div>

One thing I didn’t notice initially. This isn’t just the Pi foundation releasing a board. It’s a custom chip produced by the Pi foundation and sold to others. Adafruit, Sparkfun, and Arduino all have multiple boards designed, with some of them available now as well.

---

<div class="post-metadata">

**Author:** ![mooselake](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/mooselake/32/6218_2.png) [@mooselake](https://forums.maslowcnc.com/u/mooselake)\
**Post date:** [January 21, 2021, 10:52pm UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865/6 "2021-01-21T22:52:57Z")

</div>

Saw that, they’re all quite a bit more than $4US each.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [January 22, 2021, 12:01am UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865/7 "2021-01-22T00:01:24Z")

</div>

True, the Pi Pico is a pretty minimalist board, a good buck/boost converter, a  
LED and not much else.

fromwhat I’ve seen, these are available in quantity.

David Lang

---

<div class="post-metadata">

**Author:** ![Orob](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/orob/32/16344_2.png) [@Orob](https://forums.maslowcnc.com/u/Orob)\
**Post date:** [January 22, 2021, 3:08am UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865/8 "2021-01-22T03:08:03Z")

</div>

These look pretty cheap to me… just have to go to the store to get them.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/3X/f/d/fda9c4c2dfd03f9a693cc1cbd21aaf7e919c2e14.png)

---

<div class="post-metadata">

**Author:** ![Orob](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/orob/32/16344_2.png) [@Orob](https://forums.maslowcnc.com/u/Orob)\
**Post date:** [February 8, 2021, 11:54pm UTC](https://forums.maslowcnc.com/t/new-microcontroller-to-look-at-pi-pico/15865/9 "2021-02-08T23:54:04Z")

</div>

My first trip to the store and they were out of stock, but new stock came in.

 ![PXL_20210208_233206179](https://canada1.discourse-cdn.com/flex031/uploads/maslowcnc/original/3X/2/1/2171a77e19b9569380122b9fd3e6d2c04c404968.jpeg)
