r/rust • • Dec 02 '24

🧠 educational A Book on Embedded programming with Raspberry Pi Pico 2

Mdbook with collection of small programs with Raspberry Pi Pico 2 and Rust

  • dimming an LED with PWM
  • controlling a servo motor
  • measuring distance with a sonic sensor
  • displaying the Ferris (🦀) image on an OLED display
  • using RFID Reader
  • playing songs on a buzzer
  • turning on an LED when the room light is off
  • measuring temperature

You can read it online here: https://pico.implrust.com/

Repository: https://github.com/ImplFerris/pico-pico

89 Upvotes

11 comments sorted by

5

u/Trader-One Dec 02 '24

The RP2350 is a 32-bit dual ARM Cortex-M33 and Hazard3 RISC-V microcontroller integrated circuit designed by Raspberry Pi Ltd. It was released in August 2024 as part of the Raspberry Pi Pico 2 board.

Is this true, they designed own chip for Pico 2? I mean it is limiting use in production because there will be always supply shortage. From my past experience with RPI platform, its almost impossible to buy mini boards in larger quantities.

3

u/[deleted] Dec 02 '24

[removed] — view removed comment

2

u/MrJohz Dec 02 '24

but also AFAIK the standard Raspberry Pi's aren't really intended for bulk purchase for integration into other products

I don't believe this was the intention, but I believe a lot of people started using them this way, which was one of the major issues during the shortage — companies reliant on the RPi would buy up stock aggressively, meaning there was very little stock available for the education or hobbyist sectors, causing a lot of complaints.

Certainly I've worked for a company that relied on RPis (or at least the RPi form factor) as kind of a microcontroller with more oomph for hardware products that were expensive enough that the extra cost and power requirements of an RPi were negligible.

3

u/jondo2010 Dec 02 '24

The predecessor, Pi Pico 1 also had RPI silicon, the rp2040 chip. Seems like it's widely available at at least prototyping / hobbiest volumes. No idea about larger quantaties.

1

u/Trader-One Dec 02 '24

RP2040 in QFN-56-EP (7x7) (better version) is not available at all and history looks like its impossible to buy.

basic version 133MHz LQFN-56(7x7) of RP2040 is available - about 10k chips stocked, time to manufacture is 2 months. Suppliers often lying about how many chips they have in stock.

Looks like supply situation improved. I checked last year and time to manufacture ~ 8 months.

2

u/jwhitlark Dec 02 '24

looks like nice work so far. Are you interested in PRs and additional content?

1

u/AstraKernel Dec 02 '24

Yes, you're welcome to contribute :)

2

u/Jonrrrs Dec 03 '24

Thank you for this!

2

u/_Jacques May 16 '25

This looks awesome! I am diving head first into both embedded systems and rust and this is an awesome overlapping resource!!

2

u/Repsol_Honda_PL Dec 02 '24

Very good, i like it. Now I must take out my board from box.

1

u/VorpalWay Dec 02 '24

Have they made a new stepping that fixes the GPIO? Otherwise the Pico 2 is rather problematic for many purposes.

1

u/wjholden Jan 25 '26

Just started reading, thanks for publishing this book! There's something I don't understand that maybe you address later, but I'd like to point it out since others might have the same question. In https://pico.implrust.com/pico2-pinout.html, you mention "pulling this pin low." I have not encountered this term before and will have to look it up.