• 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 1.3inch LCD Luckfox Pico Camera MIS5001 5MP wide-angle lenses‌ For RV1106/Pro/MAX/Ultra (Not For RV1103 Pico) ESP32-AI Series User Guide ESP32 C3 Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Raspberry Pi ZERO Raspberry Pi Pico 2 RP2350B Industrial 8-Channel Relay IOT LAN Digital Input DIO /RS485 /RJ45 Ethernet /POE Secondary Screen Industrial Isolation USB TO RS232/485/422/TTL FT232RNL Serial UART Converter SpotPear NVIDIA-acess User Guide ESP32 Thermal imaging ESP32-P4-Core Board with 32MB PSRAM USB With Camera Port / Display Port Raspberry Pi OpenWrt Tutorial 2 Industrial Modbus RS485 RTU 8-ch Magnetic Latching Relay Module (C) With Digital Input RP2350B-MINI-A picotool Tutorial Raspberry Pi DSI 800×480 Core2021 LoRa LR2021 HF LF SPI LoRaWAN For Sub-GHz and 2.4GHz Raspberry Pi CM5 Mini Base IO Board NANO A Development For Compute Module 5 Core3566102000