• sales

    +86-0755-88291180

Raspberry Pi Pico-8SEG-LED User Guide

Features

  • SPI-compatible, easy to drive
  • Onboard high precision RTC chip DS3231, with backup battery holder
  • Standard Raspberry Pi Pico header, supports Raspberry Pi Pico series

Specification

  • Operating voltage: 5V
  • Digits: 4
  • Display size:0.4inch
  • LED color: red
  • Driver: 74HC595
  • Display part No.: FJ4401AH
  • Dimensions: 52 x 21mm

Pinout


Digital tube and controller

74HC595 is a high-speed CMOS 8-bit 3-state shift register/output latch chip, using CMOS silicon gate technology. The device contains an 8-bit serial input and parallel output shift register and provides an 8-bit D-type storage register with an 8-bit 3-state output. Provide independent clock signals to the shift register and storage register. The shift register has a direct clearing function, serial input and output functions, and cascade applications. (Using standard pins.) Both shift registers and storage registers use a positive Edge clock trigger, if these two clocks are connected together, the shift register is always the previous clock pulse of the storage register. All input ports are equipped with anti-static and instant overvoltage protection circuits
Digits:4
LED color: red
Circuit connection type: Negative
Display size: 0.4inch

Timing

Hardware connection

Please take care of the direction when you connect Pico, an USB port is printed to indicate . You can also check the pin of Pico and the LCD board when connecting.
You can connect display according to the table.

LCDPicoDescription
VCCVSYSPower input
GNDGNDGND
DINGP11Serial data input
CLKGP10Data input clock pin
RCLKGP9Output latch register clock pin

Connection


Setup environment

Please refer to Raspberry Pi's guide: https://www.raspberrypi.org/documentation/rp2040/getting-started/

Download example

1. Open a terminal of Raspberry Pi

sudo apt-get install p7zip-full
cd ~
sudo wget  https://www.waveshare.net/w/upload/2/28/Pico_code.7z
7z x Pico_code.7z -o./Pico_code
cd ~/Pico_code
cd c/build/

Raspberry Pi

  • Open a terminal and got to the C directory
cd ~/Pico_code/c/
  • Create build folder and add path of SDK to it, it is ../../pico-sdk by default, however, it may be different for different users, please check the actual path of your pico.
cd build
export PICO_SDK_PATH=../../pico-sdk
  • run cmake to generate Makefile, and build it.
cmake ..
make -j9
  • A main.uf2 file is generated.
  • Hold the BOOTSEL button of Pico, and connect the USB interface of Pico to Raspberry Pi then release the button.
  • Copy the main.uf2 file to the RPi-RPI2 drive recognized.

python

1. Refer to Raspberry Pi's guides to setup Micropython firmware for Pico
2. Open the Thonny IDE, and drag the demo to IDE and run on Pico.



3. Click File -> Open... and choose the Pico-8SEG-LED.py file to run

Windows

  • Download and unzip the demo codes to your Windows desktop, refer to Raspberry Pi's guides to set up the Windows software environment settings.
  • Press and hold the BOOTSEL button of Pico, connect the USB of Pico to the PC with a MicroUSB cable. Import c or python program into Pico to make it run.

Codes Description

C

Buttom interface

In DEV_Config.c(.h) file (...\c\lib\Config)

  • Data type:
#define UBYTE   uint8_t
#define UWORD   uint16_t
#define UDOUBLE uint32_t
  • Mpdule initialize and exit:
void DEV_Module_Init(void);
void DEV_Module_Exit(void);
Note:
1.These are functions which are used for handle GPIO:
  • GPIO Write/read:
void 	DEV_Digital_Write(UWORD Pin, UBYTE Value);
UBYTE 	DEV_Digital_Read(UWORD Pin);
  • SPI write byte
void DEV_SPI_WriteByte(UBYTE Value);
TAG: DeepsSeek XiaoZhi AI Voice Chat ESP32-S3 1.54 inch LCD Kit N16R8 WROOM-1-N16R8 DevKitC-1 Development Board Industrial Isolated 4CH RS485 TO POE ETH (B) RJ45 Converter UART For Modbus Lichee-Tang-Primer-20K-FPGA-Unboxing ESP32 ESP32-S3 Development Board 4 inch LCD TouchScreen Display 480x480 RS485 /SHT20 /Relay For Arduino LVGL 86 TVbox RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel Raspberry Pi 5 Speaker 0.85inch LCD ESP32 S3 3.5 inch LCD Development Board 480x320 Display Capacitive TouchScreen Tablet /MP3 Video /Weather Clock LVGL For Arduino X1002 Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Pi5 2280 Jetson Orin Nano UGV Beast PT ROS2 AI OpenCV Robot Car MediaPipe ESP32-S3 LCD Driver Board RGB/SPI N8R8 For 2.1/2.8/4inch Captive TouchScreen Display Round Serial UART Bus Servo ST3020 TTL 25KG.CM Magnetic-Encoder High precision and Large torque RS232 to Ethernet Raspberry Pi 5 Electronic EYE 0.71inch Round LCD Display Screen For Arduino Raspberry Pi ESP32 Pico STM32 2.66inch e-Paper e-link Module 360x184 4-Color Red Yellow Black White For Arduino Raspberry Pi STM32 Jetson Tutorial Information Wiki Program Code User Guide SpotPear Arducam 64MP Camera 2.8inch Capacitive TouchScreen LCD Display ST7789 CST328 240x320 For Arduino/Raspberry Pi/ESP32/Pico Sensor Development Board