Giter VIP home page Giter VIP logo

tobiasvandyk / pico-mcu-from-raspberry-pi Goto Github PK

View Code? Open in Web Editor NEW
31.0 3.0 7.0 147.22 MB

2021-2024: RPi Pico 2040 and ST7789, ILI9486, ILI9488 LCD Touch Macro keypad, VS1053 music player, PCM5101 USB-Audio-DAC, and OLED SSD1306, with RPi-cmake-SDK, Arduino IDE (both mbed and C++ SDK-based), and Micropython. using Windows, Linux and RPi Os.

License: GNU General Public License v3.0

C++ 64.27% Python 0.75% C 34.79% PowerShell 0.19%
raspberry-pi-pico ssd1306 oled rp2040 arduino usb-audio-dac pcm5101a i2s-dac pimoroni-audio-pack-pico vs1053

pico-mcu-from-raspberry-pi's Introduction

Use a programmable MacroPad to avoid being fired!

US banking giant Wells Fargo has sacked a number of employees following claims that staff were faking keyboard activity to fool the company into thinking they were working when they were not. As reported here 14 June 2024.

Use a TouchLCDMacropad with linked macros to simulate any type of work and fool the heuristics-based work-simulation-detection algorithms.

Also works with all the major product-lines from Raspberry Pi Holdings PLC RPI - just buy it - or Raspberry Pi and Raspberry Pi Foundation.

The Raspberry Pi 400

Probably the most usable and affordable GPIO-enabled personal computer ever made. If you have read about it and are thinking of buying it do not wait - just buy it! (while stocks last..)

Read some of the reviews and teardowns available on the internet such as Wired UK The Raspberry Pi 400 reinvents the microcomputer for 2020, Jeff Geerling's and The Verge Reviews, and Elektor's An In-Depth Look at the Raspberry Pi 400. Also see the James Chambers Raspberry Pi 400 Overclocking and NVMe SSD Setup Guide.

The Rpi400 with an SDCard boot/SSD root and data drive, boots in 7 to 8 seconds to the desktop from powerup (and from 4 raspberries to the desktop is 3 to 4 seconds), and has a keyboard initiated true switch-off (and switch-on), i.e. USB peripherals such as an SSD are completely switched off. Read more about my setup for using the RPi400.

Also visit the official Raspberry Pi400 Home or read the RPi400 MagPi Magazine Issue 101. You may also be interested in HackSpace Magazine's special Pico issue 39 and issue 40 . Or you can have the best of both - a combined RPi400-RPiPico

pico-mcu-from-raspberry-pi's People

Contributors

tobiasvandyk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pico-mcu-from-raspberry-pi's Issues

Pico Touch Macropad fixes

ST7789 LCD Macropad and TFT_eSP V2.5.43 fix:
Newer fixes: Use the 3files or 2files fix when using TFT_eSPI-Bodmer version 2.5.43 and also read this

Working2Files.zip
WorkingFiles3Files.zip

Old fix: To obtain a working Touch-Macropad for the the Waveshare IPS ST7789 LCD Pico Board 320x240 2.8 inch using Bodmer TFT_eSPI version 2.5.43 replace the file Processors/TFT_eSPI_RP2040.h with the same file from the previous version V2.5.34.

Choosing an LCD Touch Display: Of the 5 different LCD displays tested here, with the firmware as attached below, my favourite is the fast Waveshare 3.5 inch Type C 125MHz LCD display (even though it is not an IPS screen). It is available here.

Win11 24H2 new icon-bar with labels is good!
Old Win11 22H2:
Win11Icons

New Win11 24H2:
Win11-not-obtuse-icons

RP2040 SDCard 4bit SDIO?

July 2024: The Pico Evaluation Board was was modified by adding 3 connecting wires to convert the SDCard SDIO interface to a standard 1-bit SD interface. Remove pins GP5 GP18 GP19 from the Pico MCU male header. Then use the female Pico SMD header connections on the display board to connect the three wires as indicated below:

D3 CS GP22 stay as is
CLK GP5 disconnect from Pico and connect to GP10 SPI-1 CLK
CMD GP18 disconnect from Pico and connect to GP11 SPI-1 MOSI
D0 GP19 disconnect from Pico and connect to GP12 SPI-1 MISO

SDIO-SD

As an alternative implement SPI using PIO is also a solution - three sources that I know of:
(1) PioSpiTest.zip available here

(2) PIO-SPI the code is in the drivers/sdcard subdirectory - based on the comments here

(3) PIOSpi - Arduino spi driver over PIO to enable SPI over any GPIO

June 2024: From the description here, which
is also applicable to the Waveshare Eval Board, this can be made to have a functional SDCard using PIO SDIO:

You'll have to modify the PIO code:
You need SDIO_CLK offset from D0 by -14, which is 18 in mod32 arithmetic.
(19 + 18) % 32 = 5

In rp2040_sdio.pio you'll need to change this line:
.define PUBLIC SDIO_CLK_PIN_D0_OFFSET 30 ; (-2 in mod32 arithmetic) 
to 
.define PUBLIC SDIO_CLK_PIN_D0_OFFSET 18    ; (-14 in mod32 arithmetic)

Store a collection of PC editable macro definitions or music files or picture files on the SDCard and then have the Pico read it on power-up. This Waveshare IPS ST7789 LCD Pico Board 320x240 2.8 inch hardwired the LCD, Touch controller and SDCard to SPI-1 which makes the SDCard usable. But this Waveshare IPS ILI9488 Pico Evaluation Board Touch LCD 480x320 3.5 inch has the SDCard hardwired to SDIO pins which are not in the correct sequence for the current PIO drivers. The RPi SDK example is a wip (https://github.com/raspberrypi/pico-extras/tree/master/src/rp2_common/pico_sd_card)

Sep 2022: There is an implementation for the RP2040 here:
https://github.com/ZuluSCSI/ZuluSCSI-firmware/tree/main/lib/ZuluSCSI_platform_RP2040
Also see here:
https://forums.raspberrypi.com/viewtopic.php?t=337143
https://forums.raspberrypi.com/viewtopic.php?t=356274
https://forums.raspberrypi.com/viewtopic.php?t=361335&start=50

And this could be a solution: https://github.com/carlk3/no-OS-FatFS-SD-SDIO-SPI-RPi-Pico or https://github.com/carlk3/no-OS-FatFS-SD-SPI-RPi-Pico/tree/sdio - D0 to D3 are offset correctly (each D0 + 1) but SDIO-CLK is not at the required D0 - 2 offset.

There is a note that "For SDIO, data lines D0 - D3 must be on consecutive GPIOs, with D0 being the lowest numbered GPIO. Furthermore, the CMD signal must be on GPIO D0 GPIO number - 2, modulo 32. (This can be changed in the PIO code.)"

Similarly at Visrealm it notes: Six GPIOs for signal pins, and, optionally, another for CD (Card Detect). Four pins must be at fixed offsets from D0 (which itself can be anywhere):
CLK_gpio = D0_gpio - 2.
D1_gpio = D0_gpio + 1;
D2_gpio = D0_gpio + 2;
D3_gpio = D0_gpio + 3;

Hi Tobias,

Great that you made this together. We have developed a Music player for people with Dementia based on Rpi's. However, the Rpi 's are difficult toe get. So we want to use the Pico in combinatie with the VS1053. ( wi use the adafruit music maker).
Will build test in next weeks.
Any recommendations?
Thanks
Olaf
Ps we are a foundation and have an open source approach.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.