Pioneer600
| ||
Introduction
Raspberry Pi Expansion Board, Miscellaneous Components, All-in-One
Feature
- Standard Raspberry Pi 40PIN GPIO extension header, supports Raspberry Pi series boards, Jetson Nano.
- <Standard I/O> dual LED, joystick, buzzer, the basic components.
- <USB TO UART> CP2102, control the Pi through a serial terminal.
- <Display> 0.96inch OLED, a big world in the little screen.
- <AD/DA> PCF8591, 8-bit resolution, screw terminal IO interface.
- <GPIO Expansion> PCF8574, more GPIO, more possibility.
- <IR Control> LFN0038K, Raspberry Pi remote control comes true.
- <Pressure Sensor> BMP280, measuring air pressure and temperature.
- <1-WIRE> for connecting 1-WIRE devices, DS18B20 is included.
- <Sensor Interface> for connecting various sensors.
More |
Onboard Interface
Working With RPI
We provide BCM2835, WiringPi, IO files, and RPI (Python) library demos.
Enable SPI Interface
- Enable the RPi terminal, use the following commands to enter the Configuration interface.
sudo raspi-config Select Interfacing Options -> SPI -> Yes to enable the SPI interface
sudo reboot
Make sure that the SPI is not occupied by another device, you can check in the middle of /boot/config.txt.
Enable I2C Interface
- Open the Raspberry Pi terminal and input the following commands to enter the configuration interface:
sudo raspi-config Select Interfacing Options -> I2C ->yes to boot i2C kernel driver
And then reboot the Raspberry Pi:
sudo reboot
Enable Uart Interface
Open the Raspberry Pi terminal and enter the following command to enter the configuration interface
sudo raspi-config Select Interfacing Options -> Serial, close the shell access, open the hardware serial port
Install Library
If you use bookworm system, only the lgpio library is available, bcm2835 and wiringPi libarary cannot be installed or used. Please note that the python library does not need to install, you can directly run the demo.
BCM2835
#Open the Raspberry Pi terminal and run the following command wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.71.tar.gz tar zxvf bcm2835-1.71.tar.gz cd bcm2835-1.71/ sudo ./configure && sudo make && sudo make check && sudo make install # For more, you can refer to the official website at: http://www.airspayce.com/mikem/bcm2835/
WiringPi
#Open the Raspberry Pi terminal and run the following command cd sudo apt-get install wiringpi #For Raspberry Pi systems after May 2019 (earlier than that can be executed without), an upgrade may be required: wget https://project-downloads.drogon.net/wiringpi-latest.deb sudo dpkg -i wiringpi-latest.deb gpio -v # Run gpio -v and version 2.52 will appear, if it doesn't it means there was an installation error # Bullseye branch system using the following command: git clone https://github.com/WiringPi/WiringPi cd WiringPi . /build gpio -v # Run gpio -v and version 2.70 will appear, if it doesn't it means there was an installation error
lgpio
wget https://github.com/joan2937/lg/archive/master.zip unzip master.zip cd lg-master sudo make install #for more details, you can refer to https://github.com/gpiozero/lg
- python
sudo apt-get update sudo apt-get install ttf-wqy-zenhei sudo apt-get install python3-smbus sudo apt-get install python3-serial sudo pip install rpi_ws281x sudo pip install smbus2
Download Demo
Run in the Raspberry Pi terminal:
sudo apt-get install p7zip wget https://files.waveshare.com/upload/3/3a/Pioneer600_code.zip unzip Pioneer600_code.zip sudo chmod 777 -R Pioneer600_code cd Pioneer600_code/
LED
cd LED
- bcm2835 demo:
Enter the Linux terminal and run the following commands on the terminal:
cd bcm2835 make sudo ./led
Expected result: LED1 blinks and you can press Ctrl+C to end the demo.
- wiringPi demo:
Enter the Linux terminal and can execute the following commands on the terminal:
cd wiringPi make sudo ./led
Expected result: LED1 blinks and you can press Ctrl+C to end the demo.
Breathing LED
sudo ./pwm
Expected result: you can see the brightness of LED1 is gradually changed.
Press Ctrl+C to end the demo.
- sysfs demo:
Enter the Linux terminal and execute the following commands on the terminal:
cd fs make sudo ./led
Expected result: LED1 blinks 10 times and then automatically exits the demo. Press Ctrl+C to end the demo.
- Python demo:
Input the following commands to execute the demo:
cd python sudo python led.py
Expected result: LED1 blinks and you can press Ctrl+C to end the demo.
Breathing LED
sudo python pwm.py
Expected result: You can see that the LED1 brightness gradually changes. Press Ctrl+C to end the demo.
- shell demo:
Input the following commands to execute the demo:
cd shell sudo sh LED.sh 26 1 sudo sh LED.sh 26 0
Expected result: LED1 status changes according to the input 0/ 1.
Key
For the Raspberry Pi 4B, you need to add the following command to /boot/config.txt: gpio=20=pu and reboot the Raspberry Pi.
1. Execute the following command at the Raspberry Pi interrupt:
cd KEY
- bcm2835 demo:
Enter the Linux terminal and execute the following commands on the terminal:
cd bcm2835 make sudo ./key
Expected result:
Press the center rocker key and the terminal will output the following message.
Key Test Program!!!! KEY PRESS KEY PRESS KEY PRESS
Press Ctrl+C to end the demo.
- WiringPi demo.
Enter the Linux terminal and execute the following commands on the terminal:
cd wiringPi make sudo ./key
Expected result: Press the center rocker key and the terminal will output the following message.
Key Test Program!!! KEY PRESS KEY PRESS KEY PRESS
Press Ctrl+C to end the demo.
- Python demo.
Input the following commands to execute the demo on the terminal:
cd python sudo python key.py
Expected result: Press the center rocker key and the terminal will output the following message.
Key Test Program KEY PRESS KEY PRESS KEY PRESS
Press Ctrl+C to end the demo.
PCF8574
cd PCF8574
- bcm2835 demo:
Enter the Linux terminal and execute the following commands on the terminal.
cd bcm2835 make sudo ./led
Expected result: LED2 blinks.
Press Ctrl+C to end the demo.
Enter the Linux terminal and execute the following commands:
make sudo ./pcf8574
Expected result: LED2 will be on when pressing the direction key. The buzzer sounds and outputs the following information on the terminal.
PCF8574 Test Program !!! up left down right
Press Ctrl+C to end the demo.
- Python demo:
Input the following commands to execute the demo on the terminal:
cd python sudo python led.py
Expected result: LED2 blinks.
Press Ctrl+C to end the demo.
Input the following commands to execute the demo on the terminal.
sudo python pcf8574.py
Expected result: when pressing the direction key, LED2 is on. The buzzer sounds and the terminal outputs the following information:
PCF8574 Test Program !!! up left down right
Press Ctrl+C to end the demo.
- fs demo:
Enter the Linux terminal and execute the following commands:
cd fs make sudo ./led
Expected result: LED2 blinks.
Press Ctrl+C to end the demo.
- wiringPi demo
Enter the Linux terminal and execute the following commands on the terminal:
cd wirngPi make sudo ./led
Expected result: LED2 blinks. Press Ctrl+C to end the demo. Input the following commands to execute the demo on the terminal:
sudo ./PCF8574
Expected result: LED2 is on when pressing the direction key. The buzzer sounds and the terminal outputs the following information.
PCF8574 Test Program !!! up left down right
Press Ctrl+C to end the demo.
PCF8591
ADC
cd PCF8591/ADC
- bcm2835 demo:
Execute the following commands on the terminal:
cd bcm2835 make clean make sudo ./pcf8591
Expected result: Print the input voltage of the four AINs at the terminal. Press Ctrl+C to end the demo.
- Python
Execute the following commands on the terminal:
cd python sudo python pcf8591.py
Expected result: Print the input voltage of AIN0 at the terminal. Press Ctrl+C to end the demo.
- wiringPi
Execute the following commands on the terminal:
cd wiringPi make clean make sudo ./pcf8591
Expected result: Print the input voltage of AIN0 at the terminal. Press Ctrl+C to end the demo.
DAC
cd PCF8591/DAC
- bcm2835 Demo:
Execute the following commands on the terminal:
cd bcm2835 make clean make sudo ./pcf8591
Expected result: The DOUT voltage gradually increases from 0V to 3.3V. Press Ctrl+C to end the demo.
- Python
Execute the following commands on the terminal:
cd python sudo python pcf8591_DAC.py
Expected result: DOUT voltage gradually increases from 0V to 3.3V. Press Ctrl+C to end the demo.
- wiringPi.
Execute the following commands on the terminal:
cd wiringPi make clean make sudo ./pcf8591
Expected result: The DOUT voltage gradually increases from 0V to 3.3V. Press Ctrl+C to end the demo.
BMP280 Sample Demo - Barometer Demos
cd BMP280
- bcm2835 program:
Enter the Linux terminal, and run the following commands:
cd bcm2835 make sudo ./bmp280
Expected result: The terminal will display the following information:
BMP280 Test Program ... Temperature: 34.20 C Pressure: 1005.12 Pa
Press the keys Ctrl+C to end the program.
- wiringPi program:
Enter the Linux terminal, and run the following commands:
cd wingPi make sudo ./bmp280
Expected result: The terminal will display the following information:
BMP280 Test Program ... Temperature: 34.20 C Pressure: 1005.12 Pa
Press the keys Ctrl+C to end the program.
- Python program:
Enter the Linux terminal, and run the following commands to execute the program:
cd python sudo python BMP280_example.py
Expected result: The terminal will display the following information:
Temperature: 34.20 C Pressure: 1005.12 Pa
Press the keys Ctrl+C to end the program.
DS3231 Sample Demos - High precision RTC Demos
cd DS3231
- bcm2835 program:
Enter the Linux terminal, and run the following commands:
cd bcm2835 make sudo ./ds3231
Expected result: The terminal will display the following information:
start.......... 2015/06/19 11:47:16 Fri 2015/06/19 11:47:17 Fri 2015/06/19 11:47:18 Fri 2015/06/19 11:47:19 Fri
Press the keys Ctrl+C to end the program.
- wiringPi program:
cd wiringPi make sudo ./ds3231
Expected result: the terminal will output the following information:
start.......... 2015/06/19 11:47:16 Fri 2015/06/19 11:47:17 Fri 2015/06/19 11:47:18 Fri 2015/06/19 11:47:19 Fri
Press the keys Ctrl+C to end the program.
- Python program:
Enter the Linux terminal, and run the following commands to execute the program:
cd python sudo python ds3231.py
Expected result: The terminal will display the following information:
2015/08/12 18:00:00 Wed 2015/08/12 18:00:01 Wed 2015/08/12 18:00:02 Wed 2015/08/12 18:00:03 Wed 2015/08/12 18:00:04 Wed
Press the keys Ctrl+C to end the program.
DS18B20 Sample Demo - Temperature Sensor Demos
(Notes: To use the DS18B20 program, you should add a line dtoverlay=w1-gpio-pullup to the end of the Raspberry Pi boot file /boot/config.txt, and restart the RPi to make it take effect. For more detailed information, please refer to the relative Raspberry Pi documents.)
cd DS18B20
- sysfs program:
Enter the Linux terminal, and run the following commands to execute the program:
cd fs sudo ./ds18b20
Expected result: The terminal will display the following information:
rom: 28-00000674869d temp: 30.437 °C temp: 30.375 °C
Press the keys Ctrl+C to end the program.
- Python program:
Enter the Linux terminal, and run the following commands to execute the program:
cd python sudo python ds18b20.py
Expected result: The terminal will display the following information:
rom: 28-00000674869d C=29.687 F=85.437 C=29.687 F=85.437 C=29.687 F=85.437
Press the keys Ctrl+C to end the program.
IRM Sample Demos - Infrared Reflective Sensor Demo
cd IRM
- bcm2835 program:
Enter the Linux terminal, and run the following commands:
cd bcm2835 make sudo ./irm
Expected result: Press the keys on the infrared remote controller, and the terminal will display the relative value of the pressed key.
irm test start: Get the key: 0x0c Get the key: 0x18 Get the key: 0x5e
Press the keys Ctrl+C to end the program.
- wiringPi program:
Enter the Linux terminal, and run the following commands:
cd wiringPi make sudo ./irm
Expected result: Press the keys on the infrared remote controller, and the terminal will display the relative value of the pressed key.
irm test start: Get the key: 0x0c Get the key: 0x18 Get the key: 0x5e
Press the keys Ctrl+C to end the program.
- Python program:
Enter the Linux terminal, and run the following commands to execute the program:
cd python sudo python irm.py
Expected result: Press the keys on the infrared remote controller, and the terminal will display the relative value of the pressed key.
IRM Test Start ... Get the key: 0x0c Get the key: 0x18 Get the key: 0x5e
Press the keys Ctrl+C to end the program.
UART Sample Demos - Transmitting the Serial Data Received
Notices: The serial port of RPi is set to the terminal debugging mode by default. However, in order to run this sample program, you should disable the terminal debugging function, which means you cannot debug the RPi via the serial port communication anymore. In this case, you should employ other methods to debug the RPi before running this program. For example, you can connect an external HDMI displayer to the RPi or use SSH.
cd UART
- wiringPi program:
Enter the Linux terminal, and run the following commands:
cd wiringPi make sudo ./UART
Expected result: Connect the expansion board to the PC via the USB TO UART interface, and configure the serial communication software on the PC (Here, you can use the software PuTTY to monitor the serial port), selecting the right serial port number and setting the Baud rate to 115200. Then, you can use your PC to send data to the RPi via serial communication. After the data is received by the RPi, it will be echoed to the serial monitor on the PC.
- Python program:
Enter the Linux terminal, and run the following commands to execute the program:
cd python sudo python uart.py
Expected result: It is the same as in the above case.
OLED Sample Demos
Note: If the demos of WiringPi or Python are run after the demo of BCM, the OLED won't work properly again. In this case, you have to reboot your Raspberry Pi, execute the demo again and the OLED will be restored. The reason may be: the priorities of BCM libraries are more than those of WiringPi or Python. If you have a good idea to solve such problems, welcome to contact us.
- bcm2835 demo:
Enter the Linux terminal and execute the following commands on the terminal:
cd bcm2835 make sudo ./oled
Expected result: OLED will display the Waveshare Electronics Logo for two seconds and then display the current system time.
Press Ctrl+C to end the demo.
- WiringPi demo:
Enter the Linux terminal and execute the following commands on the terminal:
cd wiringPi make sudo ./oled
Expected result: OLED will display the Waveshare Electronics Logo for two seconds and then display the current system time.
Press Ctrl+C to end the demo.
- Python demo:
Using the Python demo to control the OLED requires python-imaging library. Connect the network to the Raspberry Pi, and execute the following sentence to install the python-imaging library:
sudo apt-get install python-pil
Expected result: input different commands to execute different demos and it will display different contents on the terminal.
cd python sudo python oled.py sudo python dispchar.py sudo python image.py sudo python animate.py sudo python waveshare.py
If there is No Module namde Image error, change the corresponding python demo "import Image" to "from PIL import Image". Similarly, ImageFont and ImageDraw modules should be changed.
For more detailed tutorials, please see the Raspberry Pi tutorial series.
How to use Pioneer600 with external sensor kits (purchased separately)
Pioneer600 has four interfaces for external sensors so that you can not only use the onboard sensors but also other external sensors.
Before using the external sensors, you should:
- Connect the sensor kits to the expansion board, and install the expansion board to the RPi.
- Make sure that the libraries are installed and the I2C core driver is started up since the onboard chip PCF8591 needs to use the I2C interface to provide AD/DA function.
- Download the sample programs, and unzip them to the directory of /home/pi (you can also copy them into the RPi board with your USB flash driver).
Color Sensor Sample Demo
Please connect the color sensor to the Pioneer600 according to the list below.
Color Sensor Pins | Pioneer600 Pins |
---|---|
LED | 3.3V |
OUT | P0 |
S3 | D0 (P21) |
S2 | D1 (P22) |
S1 | D2 (P23) |
S0 | D3 (P26) |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/Color_Sensor sudo ./Color_Sensor
Expected result: The program performs the white balance adjustment to the sensor and it may take 2 seconds. When finished, you can see relative data of RGB are outputted on the terminal. A color checklist is helpful for finding out what the measured color is.
Press the keys Ctrl+C to end the program.
Flame Sensor Sample Demo
Please connect the flame sensor to the Pioneer600 according to the list below.
Flame Sensor Pins | Pioneer600 Pins |
---|---|
DOUT | D3 |
AOUT | A3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/General_Sensor sudo ./General_Sensor
Expected result: The signal indicator will turn on when the sensor is close to a fire. And it will turn off when the sensor is away from the fire. The serial output changes along with the distance from the sensor to the fire.
Press the keys Ctrl+C to end the program.
Note: The flame sensor is designed to detect fire only, but it is not fireproof itself. When using it, please keep a safe distance from the fire to avoid burning out.
Hall Sensor Sample Demo
Please connect the hall sensor to the Pioneer600 according to the list below.
Hall Sensor Pins | Pioneer600 Pins |
---|---|
DOUT | D3 |
AOUT | A3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/Hall_Sensor sudo ./Hall_Sensor
Expected result: The signal indicator will turn on when the sensor is close to a magnet. And it will turn off when the sensor is away from the magnet. The serial output changes along with the distance from the sensor to the magnet.
Press the keys Ctrl+C to end the demo.
Infrared Reflective Sensor Sample Demo
Please connect the infrared reflective sensor to the Pioneer600 according to the list below.
Infrared Reflective Sensor Pins | Pioneer600 Pins |
---|---|
DOUT | D3 |
AOUT | A3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/Infrared_Reflective_Sensor sudo ./General_Sensor
Expected result: The signal indicator will turn on when the sensor is close to a barrier. And it will turn off when the sensor is away from the barrier. The serial output changes along with the distance from the sensor to the barrier.
Press the keys Ctrl+C to end the demo.
Laser Sensor Sample Demo
Please connect the laser sensor to the Pioneer600 according to the list below.
Laser Sensor Pins | Pioneer600 Pins |
---|---|
DOUT | D3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/Laser_Sensor sudo ./General_Sensor
Expected result: The signal indicator will turn on when a barrier is placed above the sensor. And the signal indicator will turn off when the barrier is away from the sensor. By reading the status of the indicator, you can get to know whether the sensor has detected the barrier.
Press the keys Ctrl+C to end the program.
Moisture Sensor Sample Demo
Please connect the moisture sensor to the Pioneer600 according to the list below.
Moisture Sensor Pins | Pioneer600 Pins |
---|---|
DOUT | D3 |
AOUT | A3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/Moisture_Sensor sudo ./General_Sensor
Expected result: Insert the sensor into the soil and water the soil little by little. And then you may find the serial output changes.
Press the keys Ctrl+C to end the demo.
Rotation Sensor Sample Demo
Please connect the rotation sensor to the Pioneer600 according to the list below.
Rotation Sensor Pins | Pioneer600 Pins |
---|---|
SIA | D2 |
SIB | D1 |
SW | D3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/Rotation_Sensor sudo ./Rotation_Sensor
Expected result: There are three actions of the rotary encoder: clockwise rotation, anticlockwise rotation, and button press. The serial output of the module varies with different actions.
Turn right! Turn left! Turn down!
Press the keys Ctrl+C to end the demo.
Sound Sensor Sample Demo
Please connect the sound sensor to the Pioneer600 according to the list below.
Sound Sensor Pins | Pioneer600 Pins |
---|---|
DOUT | D3 |
AOUT | A3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/Sound_Sensor sudo ./Sound_Sensor
Expected result: The signal indicator will turn on when the microphone of the module is close to a sound source. And it will turn off when the microphone is away from the sound source. The serial output changes along with the distance from the sensor to the sound source.
Press the keys Ctrl+C to end the program.
Temperature-Humidity Sensor Sample Demo
Please connect the temperature-humidity sensor to the Pioneer600 according to the list below.
Temperature-Humidity Sensor Pins | Pioneer600 Pins |
---|---|
DOUT | D3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/Temperature-Humidity_Sensorr sudo ./DHT11
Expected result: The data of temperature and humidity detected are shown on the terminal. For example:
Humidity=33 Temperature=28
Press the keys Ctrl+C to end the program.
MQ-5 Gas Sensor Sample Demo
Please connect the MQ-5 gas sensor to the Pioneer600 according to the list below.
MQ-5 Gas Sensor Pins | Pioneer600 Pins |
---|---|
DOUT | D3 |
AOUT | A3 |
GND | GND |
VCC | 3.3V |
Run the following command under the terminal:
cd Sensor/Temperature-Humidity_Sensorr sudo ./DHT11
Expected results: First let the sensor warm up for one minute. Place the sensor in a device containing a sensitive gas (the gas sensor is sensitive to liquefied petroleum gas, natural gas, and gas) and the signal indicator on the module lights up. When the sensor is removed from the sensitive gas device, the signal indicator on the module goes out. From this, you can determine whether the concentration of the sensitive gas has exceeded the limit. Press Ctrl+C to end the demo.
Press the keys Ctrl+C to end the program.
Tilt Sensor Sample Demo
Please connect the title sensor to the Pioneer600 according to the list below.
Tilt Sensor Pins | Pioneer600 Pins |
---|---|
DOUT | D3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/Tilt_Sensorr sudo ./General_Sensor
Expected result: The signal indicator will turn on when the sensor is being vibrated or in a tilted state. And it will turn off when the sensor is laid flat. By checking the indicator, you can get to know whether the module is in a condition of vibrating or tilting.
Press the keys Ctrl+C to end the program.
UV Sensor Sample Demo
Please connect the UV sensor to the Pioneer600 according to the list below.
UV Sensor Pins | Pioneer600 Pins |
---|---|
AOUT | A3 |
GND | GND |
VCC | 3.3V |
Run the following command on the terminal:
cd Sensor/UV_Sensorr sudo ./General_Sensor
Expected result: Place the sensor close to the sunlight. The serial output changes along with the distance from the sensor to the light source.
Press the keys Ctrl+C to end the demo.
Liquid Level Sensor Sample Demo
Please connect the liquid level sensor to the Pioneer600 according to the list below.
Liquid Level Sensor Pins | Pioneer600 Pins |
---|---|
AOUT | A3 |
GND | GND |
VCC | 3.3V |
Run the following command under the terminal:
cd Sensor/ Liquid_Level_Sensorr sudo ./General_Sensor
Expected result: Immerse the sensor into the water deeply. The serial output changes along with the water depth.
Press Ctrl+C to end the demo.
VisionFive2
As the official library is not yet perfect, so only part of the functions has been implemented so far.
Install the Corresponding Library File
apt-get install pip pip install VisionFive.gpio apt-get install python3-smbus apt-get install python3-pil apt-get install python3-spidev
Download the Demo
apt-get install unzip wget https://files.waveshare.com/upload/3/3a/Pioneer600_code.zip unzip Pioneer600_code.zip cd Pioneer600_code/VisionFive2/python/
LED
Give permission:
chmod -R 777 LED
Enter the directory:
cd LED/
Normal flashing:
python3 led.py
Breathing light effect:
python3 pwm.py
Shell demo:
./LED 0 ./LED 1
After using the above command, using the python demo will cause the pins to be unresponsive, so you can choose to restart VisionFive2 or use the clear script to clear the export.
./clear
PCF8574
Enter the directory:
cd PCF8574/
Use LED and the buzzer:
python3 led_beep.py
Expected result: LED2 flashes and the buzzer starts to ring when LED2 is on. Press Ctrl + C to end the demo, and press the key to use.
python3 key.py
Expected result: when pressing the direction key, LED2 is on and the buzzer rings. The terminal will output the following information. Press Ctrl + C to end the demo.
PCF8574 Test Program !!! up left down right
PCF8591
Enter the directory:
cd PCF8591/
ADC uses:
python3 pcf8591_ADC.py
Expected result: display the data of the ADC 4 channels and collect each second. Press Ctrl + C to end the demo. DAC uses:
python3 pcf8591_DAC.py
Expected result: DOUT voltage gradually increases from 0V to 3.3V. Press Ctrl + C to end the demo.
BMP20
Enter the directory:
cd BMP280/ Python3 BMP280_example.py
Expected result:
BMP280 Test Program ... Temperature = 28.44 C Pressure = 101.801 kPa
DS3231
Enter the directory:
cd DS3231/ python3 ds3231.py
Expected result:
2023/03/12 18:00:00 Wed
OLED
Enter the directory:
cd OLED/
Install:
apt-get install python3-pil apt-get install spidev
Use:
python3 oled.py python3 dispchar.py python3 image.py python3 animate.py python3 waveshare.py
Expected result: animate.py is the dynamic image, and the rest is the static content displayed by different methods.
Resources
Document
Datasheets
Certification
FAQ
{{{5}}}
General Tutorial Series
- Raspberry Pi Tutorial Series
- Raspberry Pi Tutorial Series: Access your Pi
- Raspberry Pi Tutorial Series: Getting Started with lighting up an LED
- Raspberry Pi Tutorial Series: External Button
- Raspberry Pi Tutorial Series: I2C
- Raspberry Pi Tutorial Series: I2C Programming
- Raspberry Pi Tutorial Series: 1-Wire DS18B20 Sensor
- Raspberry Pi Tutorial Series: Infrared Remote Control
- Raspberry Pi Tutorial Series: RTC
- Raspberry Pi Tutorial Series: PCF8591 AD/DA
- Raspberry Pi Tutorial Series: SPI
Support
Technical Support
If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)