• 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: ESP32 LVGL Raspberry Pi MLX90640 R7FA4 PLUS B Development Board Based on R7FA4M1AB3CFM Compatible with Arduino UNO For R4 WiFi NanoKVM-USB Quick Start Arducam CSI-to-HDMI Raspberry Pi 5 PCIe FFC Connector to Standard PCIe x1 Slot (C) Expansion Board UNO Minima RA4M1 ZERO Tiny SuperMini R7FA4M1 Board Compatible With R4 For Arduino Argon ONE V3 Case with FAN IR For Raspberry Pi 5 ESP32 3.5 inch Capacitive TouchScreen LCD Display ST7796 FT6336 320x480 For Arduino/Raspberry Pi/Pico ESP32-S3 Nano ESP32-S3R8 development board compatible with Arduino Nano ESP32 Raspberry Pi ZERO Raspberry Pi RTC WatchDog Arduino 0.85inch LCD Gyroscope Sensor Raspberry Pi 5 ABS Case 7.5 inch Passive NFC e-Paper BW Display 7.5inch E-ink Screen No Need Battery Wireless Powered Data Transfer spotpear E-Paper 4.2 inch e-Paper Display G Red/Yellow/Black/White 4.2inch E-link Screen For Arduino /Raspberry Pi /Jetson Nano /STM32 Milk-V Duo Tutorial