• 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: Rounded LCD Raspberry Pi 5 27W RM520N GL 5G/4G/3G M.2 Moudle IoT EMBB For LTE-A/NSA/SA And GNSS For DFOTA /VoLTE For Quectel EchoEar ESP32 S3 AI Development Board with 1.85-inch LCD Display Cute Cat Pet Chatting Robot N32R16 Computer AI Deepseek Mechanical Voice Keyboard Linux 10x0.85inch LCD Screen Customize keys + 2.01 inch Secondary Display Raspberry Pi Pico 2 RP2350 0.85 inch LCD Display mini Development Board 0.85inch Screen RGB LED/SD Slot /QMI8658 Gyroscope Sensor Arducam Jetson Orin 4G/3G/2G expansion board GNSS GPS SIM7600G-H-M.2 Raspberry Pi Monitor Official Original DisplayScreen 15.6 inch LCD Full HD 1920x1080 15.6inch Raspberry Pi 4B/5 Industrial UART 2CH RS485 RS232 CAN FD HAT With Case For Installation of guide rails and hanging Program ESP32 P4 Development Board 7-inch LCD Display 1024×600 7inch Touchscreen ESP32-C6 WiFi6 AI Deepseek SpotPear Desktop Trinket ESP32-S3 LCD Driver Board RGB/SPI N8R8 For 2.1/2.8/4inch Captive TouchScreen Display Round SpotPear voice module UGV Rover ROS2 PT AI OpenCV Robot Car MediaPipe For Jetson Orin Nano Magnetic Encoder Servo Motor 35KG.CM 24V 360° RS485 High Precision And Large Torque RSBL35-24-HS Luckfox Pico Tutorial