• 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: Milk-V Duo S UART Serial Console​ ESP32-S3 GEEK Development Board Finger Vein Scanner Module (A) Cortex M4F UART 3.3V TTL UL94-5VB IP56 Better Than Fingerprint Recognition ESP-NOW Control RP2040 1.5inch LCD Industrial Isolation USB TO RS232/485/422/TTL FT232RNL Serial UART Converter AURORA AI Laser Radar And Dual Eye Camera IMU Integrated Positioning Map For Android/ROS+RoboStudio Industrial Grade ETH Ethernet 8-Channel Relay Module Industrial 4-ch PWM RS485 pulse output module Modbus RTU rail Raspberry Pi Pico 2 P2350-Plus Smart Car Kit PicoGo2 Autonomous Driving Learning Car RS485 to RJ45 Multi Protection ESP32 IR Thermal Imaging Camera ESP32-C3FN4 Raspberry Pi Pico 2 RP2350B 7inch Capacitive TouchScreen 7 inch LCD Display Development Board 800×480 ESP32-S3 AI Camera Development Board Dual Microphone with Display Port User Guide Raspberry Pi Triple LCD HAT 4inch Round LCD HDMI Capacitive Touchscreen Display 720x720 For Raspberry Pi/Jetson Nano/mini PC Industrial Modbus RTU 8 ch Relay Module