MAKERFACTORY RPi 3 - Explorer700 User guide

3
RPi - Explorer700
Ausgabe 22.09.2017 Copyright by Joy-IT 1
3
Index
2. Connecng the extension board
3. LED Exampe - Changing the LED Status
4. Key Example
5. PCF8574 Example - I/O Extension Demos
6. BMP180 Example - Barometer Demos
7. DS3231 Example - Real-Time-Clock Demos
8. DS18B20 Example - Temperature Sensor Demos
9. IRM Example - Infrared reecng sensor program
10. UART Example - Receiving serial data
11. OLED Example
12. Installing the addional libraries
12.1 wiringPi Library
12.2 BCM2835 - C Library
12.3 Python Library
12.4 Congurang the interfaces
13. Code Example Download
14. Support
RPi - Explorer700
Ausgabe 22.09.2017 Copyright by Joy-IT 2
3
Dear customer, thank you for purchasing our product.
Please nd our instrucons below.
1. Connections
RPi - Explorer700
1 Raspberry Pi GPIO interface: to connect with Raspberry Pi
2 USB to UART: control the Pi with serial terminal
3 AD/DA IO interface: screw terminal
4 1-WIRE interface: to connect 1-WIRE devices like DS18B20
5 Sensor interface: to connect various sensors
6 0.96 inch OLED: SSD1306 driver, 128x64 resoluon, SPI interface
7 Buzzer
8 CP2102: USB to UART converter
9 PCF8591: 8 bit AD/DA converter I2C interface
10 BMP180: pressure sensor, I2C interface
11 PCF8574: I/O expension chip, I2C interface
12 DS3231: Real-Time-Clock chip, I2C interface
13 Power indicator
14 Joysck
15 Joysck
16 LFN0038K IR receiver
Ausgabe 22.09.2017 Copyright by Joy-IT 3
3
RPi - Explorer700
Ausgabe 22.09.2017 Copyright by Joy-IT 4
RPi - Explorer700
3
2. Connecting the extension board
The Explorer700 extension board supports the Raspberry Pi A+ / B+ / 2 / 3 Model B. Before running the sample programs, please make sure the Explorer700 is connected to the RPi and the RPi is powered up by the USB power supply. Without the RPi main board, the sample programs cannot be used on the expansion board.
Connected to Raspberry Pi Model A+
Connected to Raspberry Pi B+/2/
3 Model B
3. LED Example - Changing the LED Status
BCM2835 Program:
Open the console and enter the following commands:
cd /Explorer700/LED/bcm2835
make
sudo ./led
Expected result: LED1 ashes. Press CTRL+C to exit the program.
Ausgabe 22.09.2017 Copyright by Joy-IT 5
3
wiringPi Program:
Open the console and enter the following commands:
cd /Explorer700/LED/wiringPi
make
sudo ./led
RPi - Explorer700
Expected result: LED1 ashes. Press CTRL+C to exit the program.
sudo ./pwm
Expected result: the brightness of LED1 is changing. Press CTRL+C to exit the program.
sysfsProgram:
Open the console and enter the following commands:
cd /Explorer700/LED/fs
make
sudo ./led
Expected result: LED1 ashes 10 mes. The program will quit aerwards.
Ausgabe 22.09.2017 Copyright by Joy-IT 6
3
Python Program:
Open the console and enter the following commands:
cd /Explorer700/LED/python
sudo python led.py
Expected result: LED1 ashes. Press CTRL+C to exit the program.
RPi - Explorer700
sudo python pwm.py
Expected result: the brightness of LED1 is changing. Press CTRL+C to exit the program.
4. Key Example
BCM2835 Program:
Open the console and enter the following commands:
cd /Explorer700/KEY/bcm2835
make
sudo ./key
Expected result: Press the centered buon of the joysck. The console will push to following informaons:
Key Test Program!!!! KEY PRESS KEY PRESS KEY PRESS
Press CTRL+C to exit the program.
Ausgabe 22.09.2017 Copyright by Joy-IT 7
RPi - Explorer700
3
wiringPi Program:
Open the console and enter the following commands:
cd /Explorer700/KEY/wiringPi
make
sudo ./key
Expected result: Press the centered buon of the joysck. The console will push to following informaons:
Key Test Program!!!! KEY PRESS KEY PRESS KEY PRESS
Press CTRL+C to exit the program.
Python Program:
Open the console and enter the following commands:
cd /Explorer700/KEY/python
sudo ./key.py
Expected result: Press the centered buon of the joysck. The console will push to following informaons:
Key Test Program!!!! KEY PRESS KEY PRESS KEY PRESS
Press CTRL+C to exit the program.
Ausgabe 22.09.2017 Copyright by Joy-IT 8
Loading...
+ 16 hidden pages