• 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: USB to SPI BPI-M4 Berry Sensor JETSON-IO-BASE-A user Guid Raspberry Pi Camera Raspberry Pi 5 4.26inch-e-Paper Raspberry Pi 5 Speaker Raspberry Pi 5 Heatsink ESP32 S3 Development Board 2.8 inch B LCD 2.8inch Display 480x640 TouchScreen QMI8658 Sensor / Battery Port LVGL/HMI For Arduino ESP32 1.5inch LCD Raspberry Pi Pico 2 RP2350 1.47 inch LCD B Display Development board RP2350A 1.47inch Screen RGB color PC USB Monitor Screen Computer Monitor Screen ESP32 Raspberry Pi 5 UART Magnetic Encoder Servo Motor 85KG.CM 12V/24V 360° RS485 High Precision And Large Torque MPW7 Raspberry Pi 5 PCIe to WIFI7 Adapter Board HAT Pi5 For Google TPU BE200 AX210 AI 3.5inch RPi LCD (A) Manual Configuration ESP32 C3 Round LCD Development Board Electronic EYE 0.71 inch Display Watch Screen GC9A01 160x160