• 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: Arduino MLX90640 Raspberry Pi GNSS Expansion Board LG290P RTK Centimeter-Level Positioning GPS GLONASS Galileo BDS QZSS NavIC For Jetson ESP32 Arduino Finger Vein Scanner Module (A) Cortex M4F UART 3.3V TTL UL94-5VB IP56 Better Than Fingerprint Recognition Sipeed-Lichee-Tang-Nano-FPGA-Series-IDE-Install 1.85inch LCD TouchScreen Display 360×360 ST77916 For Arduino /Raspberry Pi /ESP32 /Pico /STM32 ADXL354BEZ RS485 to RJ45 Mini Uninterruptible Power Supply module Supports charging And Power output at the same time 5V 2.5A Raspberry Pi SIM7670G LTE-4G-Cat-1/GNSS/USB-HUB Expansion Board ESP32 C3 0.99inch Raspberry Pi UPS Raspberry Pi 3.97 inch e-Paper link BW 800x480 For Arduino / Jetson / STM32 /ESP32 Raspberry Pi 3.5 inch LCD F Display Capacitance TouchScreen 60fps ST7796 GT911 320x480 Also For Arduino/Pico2/ESP32/RP2040/RP2350 Allwinner 4inch Round LCD HDMI Capacitive Touchscreen Display 720x720 For Raspberry Pi/Jetson Nano/mini PC Raspberry Pi Real time clock ESP32 ST7789 Raspberry Pi 8.8 inch DSI MIPI Display LCD Capacitive TouchScreen 480x1920 Raspberry Pi Screen