Elecrow Raspberry Pi & Arduino Starter Kit User Manual page 84

Table of Contents

Advertisement

PCF8591
VCC
GND
SDA
SCL
Code Overview, Compile and run
This time as we use the potentiometer it will require us to do some manual action,
But turning the potentiometer either right or left it will turn the value, higher or lower.
By doing so we can control multiple things such as brightness of LED's etc ... try to turn it around and see the value
changing.
Compile the script by going into the samples directory and running: python3 pcf8591.py
Application effect
Raspberry Pi
5V
GND
SDA1
SCL1
84 of 114

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Raspberry Pi & Arduino Starter Kit and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents