• 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: Raspberry Pi 4.26 inch e-Paper link (G) RYBW 800x480 For Arduino / Jetson / STM32 /ESP32 Milk V Raspberry Pi LCD display screen 1.3inch ST7789 with Game Button A ESP32-C3 1.47 inch LCD Display Development Board 1.47inch Screen SD 172×320 SpotPear Industrial Isolated USB TO 4CH RS485 (B) Converter UART CH344L For Wall/Rail-Mount Raspberry Pi Pico 2 RP2350 1.8 inch AMOLED Development Board Display 368×448 TouchScreen Programmable Watch QSPI Raspberry Pi 5 PCIe to USB3 HUB Double 2.5G ETH RJ45 and M.2 NVMe SSD PI5 Expansion board HAT+ ESP32 S3 Development Board 1.75 inch AMOLED Display TouchScreen SD slot 6-axis sensor Xiaozhi AI Deepseek ESP32-P4-WIFI6 3.5inch LCD Display AI Development Board 320×480 3.5 inch TouchScreen Deepseek Raspberry Pi 0.85inch LCD RP2040-Keyboard-3 7inch-USB-Monitor user guide ESP32 1.54inch OLED RS485 TO Relay MiniPCIe Interface 2 CH CAN Card USB CAN Multiple Protection Circuits For Linux/Windows PI5 Pi5-Pcie-Fish-Boar Raspberry Pi display ESP32 1.5inch LCD