• 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: Programmable Keyboard PC USB Monitor Screen 7inch LCD 1024×600 Computer PC Monitor Display Secondary Screen TypeC USB CPU RAM Only For Windows UGV Beast PT Kit AI OpenCV Robot Car MediaPipe For Jetson Orin Milk V Spotpear Finger Vein Scanner Module (A) Cortex M4F UART 3.3V TTL UL94-5VB IP56 Better Than Fingerprint Recognition Raspberry Pi HQ Camera Official Original High Quality For M12 Lenses 12.3MP IMX477 Sensor Power Manager Module ESP32 ST7789 configuration LCD1602 I2C Module PWM Adjustable backlight 3.3V/5V For Arduino/ Raspberry Pi/ Pico/ Jetson Nano/ ESP32 Capacitive Touchscreen Raspberry Pi 4/5 UPS Uninterruptible Power Supply HAT Lithium Battery Module ESP32 LVGL Industrial Modbus RS485 RTU 8-ch Magnetic Latching Relay Module (C) With Digital Input Magnetic Encoder Servo Motor 35KG.CM 24V 360° RS485 High Precision And Large Torque RSBL35-24-HS Raspberry Pi 5 Night Camera MPS2280 POE Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Pi5 2280/2242/2230 UGV Rover PT Kit AI OpenCV Robot Car MediaPipe For Jetson Orin NVIDIA Jetson Xavier NX AI 21TOPS Supercomputer Edge Computing eMMC-16GB RAM 8/16GB