• sales

    +86-0755-88291180

Pi ALL GPIO TEST BOARD (B) User Guide

PCF8591

Test image version: 2022-04-04-raspios-bullseye-armhf.img Raspberry pi 4B

Prepare

Enable I2C

sudo nano /boot/config.txt


Ensure that I2C is on, and then restart the system.

sudo reboot

After restart, address 48 can be detected by I2C address detection command.

i2cdetect -y 1


connection

Ensure that jumper caps are connected to PCF.


Running code

Download sample code pcf8591

cd pcf8591/

sudo python pcf8591_adc.py


Phenomenon

4-channel print AD value

DAC

Running code

sudo python pcf8591_dac.py


Phenomenon

The LED lamp changes with the output value of DAC, and the brightness changes.


LED

Prepare

connection

Make sure that the jumper caps are connected to the LED.



Running code




Download GPIO_Test.py to raspberry pi.


sudo python GPIO_Test.py

Phenomenon

The power indicator LED is always on, and the GPIO connection LED is turned on in turn, and then turned off in turn, continuously circulating.

TAG: Sipeed NanoCluster Mini Cluster Board mini data center For Raspberry Pi CM45 / Computer /LM3H /M4N NVIDIA Jetson Orin Nano Developer Kit Official Original 8GB AI 40Tops For Embedded and Edge Systems Industrial Modbus RTU 8 ch Relay Module Raspberry Pi Auto Focus 12MP IMX708 Camera High Resolution IPS Pi5 Case ESP32 C3 SpotPear Raspberry Pi RP2040 Keyboard Raspberry Pi 5 PCIe to 2-CH PCIe FFC Dual PCIe HAT Board Pi5 Double ESP32-C3-Ornament-Trinket-LVGL-Astronaut-Clock-Watch-MINI-TV-1.69inch-Round-LCD-TouchScreen-ST7789-240x280 1.33TFLOPS RAM-4G eMMC-16 High Performance AI at the Edge Raspberry Pi LCD display screen 1.3inch ST7789 with Game Button A ESP32-S3 MAX AI Camera 3.5inch LCD Dual MIC Development Board Display 320x480 3.5 inch TouchScreen Voice Interruption Object Recognition NVIDIA Solar Power Manager Module (D) Pi5 Supports 6V~24V Solar Panel ESP32 Display Raspberry Pi 5 inch DSI Display MIPI LCD (C) Capacitive TouchScreen 1024x600