Home
PIONEER600, Raspberry Pi Expansion Board User Manual
Contents
1. 27 Revision V1 1 1 Release date September 9 2015 Enter the folder of Pioneer600 Sensor Laser Sensor and run the following command under the terminal 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 17 Moisture Sensor sample program Please connect the moisture sensor to the Pioneer600 according to the list below Pins of Moisture Sensor Pins of Pioneer600 DOUT D3 AOUT A3 GND GND VCC 3 3V Enter the folder of Pioneer600 Sensor Moisture_Sensor and run the following command under the terminal 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 program 18 Rotation Sensor sample program Please connect the rotation sensor to the Pioneer600 according to the list below Pins of Rotation Sensor Pins of Pioneer600 SIA DO SIB D1 SW D2 GND GND VCC 3 3V 28 Revision V1 1 1 Release date September 9 2015 Enter the folder of Pioneer600 Sensor Rotation Sensor and
2. Enter the folder of Pioneer600 Sensor Color Sensor and run the following command under the terminal sudo Color Sensor Revision V1 1 1 Release date September 9 2015 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 check list is helpful for finding out what the measured color it is Press the keys Ctrl C to end the program 13 Flame Sensor sample program Please connect the flame sensor to the Pioneer600 according to the list below Pins of Flame Sensor Pins of Pioneer600 DOUT D3 AOUT A3 GND GND VCC 3 3V Enter the folder of Pioneer600 Sensor Flame_Sensor and run the following command under the terminal 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 Notices 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 14 Hall Sensor sample program Please connect the hall sensor to the Pioneer600 according to the list below Pins of Hall Sensor
3. 32
4. PIONEER600 Raspberry Pi Expa nsion Board User Manual Supports Raspberry Pi A B 2B Standard I O gt dual LED joystick buzzer the basic components lt USB TO UART gt CP2102 control the Pi through serial terminal lt Display gt 0 96inch OLED big world in the little screen lt RTC gt DS3231 high precision backup battery holder is also available lt AD DA gt PCF8591 8 bit resolution screw terminal IO interface lt GPIO Expansion gt PCF8574 more GPIO more possibility IR Control LFNOO38K Raspberry Pi remote control comes true Pressure Sensor BMP180 measuring air pressure and temperature lt 1 WIRE gt for connecting 1 WIRE devices DS18B20 is included Sensor Interface for connecting various sensors Revision V1 1 1 Release date September 9 2015 O 209 SL Ux UT o Ne e Hm B HB h B oco unu peU N FP o En GND Raspberry Pi GPIO interface for connecting Raspberry Pi USB TO UART control the Pi through serial terminal AD DA IO interface screw terminal 1 WIRE interface for connecting 1 WIRE devices like DS18B20 Sensor interface for connecting various sensors 0 96inch OLED SSD1306 driver 128x64 resolution SPI interface Buzzer CP2102 USB TO UART converter PCF8591 8 bit AD DA converter I2C interface BMP180 pressure sensor I2C interface PCF8574 I O expansion chip 12C interface DS3231 high precision RTC chip I2C interface Power indicator User LED Joystic
5. Pioneer600 PCF8574 bcm2835 make5 The command for executing the program pi raspberrypi Pioneer600 PCF8574 bcm2835 sudo pcf8574 Expected result Press the direction keys then the LED2 will light up the buzzer will sound and the terminal will display the following information PCF8574 Test Program up left down right Press the keys Cristo end the program 4 2 python program Enter the Linux terminal and run the following commands 12 Revision V1 1 1 Release date September 9 2015 PN a EN The command for executing the program pi raspberrypi Pioneer600 PCF8574 python sudo python led py Expected result The LED2 is blinking Press the keys Ctrl C to end the program Enter the Linux terminal and run the following commands The command for executing the program pi raspberrypi Pioneer600 PCF8574 python sudo python pcf8574 py Expected result Press the direction keys then the LED2 will light up the buzzer will sound and the terminal will display the following information PCF8574 Test Program up left down right Press the keys Ctrl C to end the program 4 3 fs program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 PCF8574 fs make The command for executing the program pi raspberrypi
6. Pins of Pioneer600 DOUT D3 AOUT A3 GND GND VCC 3 3V 26 Revision V1 1 1 Release date September 9 2015 Enter the folder of Pioneer600 Sensor Hall Sensor and run the following command under the terminal sudo General 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 program 15 Infrared Reflective Sensor sample program Please connect the infrared reflective sensor to the Pioneer600 according to the list below Pins of Infrared Reflective Sensor Pins of Pioneer600 DOUT D3 AOUT A3 GND GND VCC 3 3V Enter the folder of Pioneer600 Sensor Infrared_Reflective_Sensor and run the following command under the terminal 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 program 16 Laser Sensor sample program Please connect the laser sensor to the Pioneer600 according to the list below Pins of Laser Sensor Pins of Pioneer600 DOUT D3 AOUT A3 GND GND VCC 3 3V
7. run the following command under the terminal 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 program 19 Sound Sensor sample program Please connect the sound sensor to the Pioneer600 according to the list below Pins of Sound Sensor Pins of Pioneer600 DOUT D3 AOUT A3 GND GND VCC 3 3V Enter the folder of Pioneer600 Sensor Sound_Sensor and run the following command under the terminal sudo General_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 20 Temperature Humidity Sensor sample program Please connect the temperature humidity sensor to the Pioneer600 according to the list below Pins of Temperature Humidity Sensor Pins of Pioneer600 DOUT D3 29 Revision V1 1 1 Release date September 9 2015 GND GND VCC 3 3V Enter the folder of Pioneer600 Sensor Temperature Humidity_Sensor and run t
8. you don t want to reinstall the libraries you can program this ready to use system image file to your Raspberry Pi board When finished the configurations above you need to download the sample programs and unzip them to the directory of home pi you can also copy them into the RPi board with your U disk pen Some of the sample programs can be implemented via different ways such as the libraries of bcm2835 wiringPi sysfs python and so on That means you can implement a same function by using different libraries Therefore the libraries of bcm2835 wiringPi and python should be installed to the RPi before used In the next section we will present the expansion functions provided by PIONEER600 If the sample programs presented in the next section are unable to be performed after installing the libraries you can try to apply the command chmod x filename to grant the program the executable permission 1 2 Connecting the expansion board and the RPI The Pioneer600 expansion board supports the Raspberry Pi A B 2B Before running the sample programs please make sure the Pioneer600 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 Revision V1 1 1 Release date September 9 2015 PN Connected to Raspberry Pi B 2B Revision V1 1 1 Release date September 9 2015 LED sample programs Changing t
9. Pioneer600 PCF8574 fs sudo led Expected result The LED2 is blinking Press the keys Ctrl C to end the program 4 4 wiringPi program Enter the Linux terminal and run the following commands Revision V1 1 1 Release date September 9 2015 13 The command for compiling the program pi raspberrypi Pioneer600 PCF8574 wiringPi make The command for executing the program pi raspberrypi Pioneer600 PCF8574 wiringPi sudo led Expected result The LED2 is blinking Press the keys Ctrl C to end the program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 PCF8574 wiringPi make The command for executing the program pi raspberrypi Pioneer600 PCF8574 wiringPi sudo LED Expected result The LED2 is blinking Press the keys Ctrl C to end the program Revision V1 1 1 Release date September 9 2015 14 PN A 5 BMP180 sample programs Barometer Demos 5 1 bcm2835 program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 BMP180 bcm2835 make The command for executing the program pi raspberrypi Pioneer600 BMP180 bcm2835 sudo BMP180 Expected result The terminal will display the following information BMP180 Test Program Temperature 34 20 C P
10. cator 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 23 UV Sensor sample program Please connect the UV sensor to the Pioneer600 according to the list below Pins of UV Sensor Pins of Pioneer600 AOUT A3 GND GND VCC 3 3V Enter the folder of Pioneer600 Sensor UV_Sensor and run the following command under the terminal sudo General_Sensor Expected result Place the sensor close to the sun light The serial output changes along with the distance from the sensor to the light source Ctrl C Press the keys to end the program 24 Liquid Level Sensor sample program Please connect the liquid level sensor to the Pioneer600 according to the list below Pins of Pioneer600 Pins of Liquid Level Sensor 31 Revision V1 1 1 Release date September 9 2015 GND 3 3V Enter the folder of Pioneer600 Sensor Liquid Level Sensor and run the following command under the terminal sudo General Sensor Expected result Immerse the sensor into the water deeply The serial output changes along with the water depth Press the keys Ctrl C to end the program Revision V1 1 1 Release date September 9 2015
11. cted result The LED1 blinks 10 times and then the program will automatically quit Press the keys Ctrl C to end the program 2 4 python program Enter the Linux terminal and run the following commands The command for executing the program pi raspberrypi Pioneer600 LED python sudo python led py Expected result The LED1 is blinking Press the keys Ctrl C to end the program Enter the Linux terminal and run the following commands The command for executing the program pi raspberrypi Pioneer6 LED python sudo python pwm py Expected result The brightness of the LED1 is changing gradually Press the keys Ctrl C to end the program Revision V1 1 1 Release date September 9 2015 PN PEN 3 Key sample programs 3 1 bcm2835 program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 KEY bcm2835 make The command for executing the program pi raspberrypi Pioneer600 KEY bcm2835 sudo key Expected result Press the center key of the joystick and the terminal will display the following information Key Test Program KEY PRESS KEY PRESS KEY PRESS Press the keys Ctrl C to end the program 3 2 wiringPi program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi P
12. ds3231 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 Press the keys Ctrl C to end the program 6 2 wiringPi program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 DS3231 wiringPi make The command for executing the program pi raspberrypi Pioneer600 DS3231 wiringPi sudo ds3231 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 17 Revision V1 1 1 Release date September 9 2015 Press the keys Ctrl C to end the program 6 3 python program Enter the Linux terminal and run the following commands to execute the program pi raspberrypi Pioneer600 DS3231 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 Revision V1 1 1 Release date September 9 2015 18 DS18B20 sample programs Temperature sensor Demos To use the DS18B20 program you should add a line dtoverlay w1 gpio
13. he LED status 2 1 bcm2835 program Open the Linux terminal and enter to the responding path and run the following commands The command for compiling the program pi raspberrypi Pioneer600 LED bcm2835 make The command for executing the program pi raspberrypi Pioneer6 LED bcm2835 sudo led Expected result The LED1 is blinking Press the keys Ctrl C to end the program 2 2 wiringPi program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer6 0 LED wiringPi make The command for executing the program pi raspberrypi Pioneer600 LED wiringPi sudo led Expected result The LED1 is blinking Press the keys Cristo end the program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer6 0 LED wiringPi make The command for executing the program pi raspberrypi Pioneer60 LED wiringPi sudo pwm Expected result The brightness of the LED1 is changing gradually Press the keys Ctrl C to end the program Revision V1 1 1 Release date September 9 2015 2 3 sysfs program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 LED fs make The command for executing the program pi raspberrypi Pioneer600 LED fs sudo led Expe
14. he following command under the terminal 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 21 MQ 5 Gas Sensor sample program Please connect the MQ 5 gas sensor to the Pioneer600 according to the list below Pins of MQ 5 Gas Sensor Pins of Pioneer600 DOUT D3 AOUT A3 GND GND VCC 3 3V Enter the folder of Pioneer600 Sensor MQ 5_Gas_Sensor and run the following command under the terminal sudo General_Sensor Expected result Warn up the sensor for a minute And then put the sensor into a container filled with sensitive gas you will find the indicator turns on While take the sensor out of the container you can see the indicator turns off By checking the indicator you can get to know whether the concentration of the sensitive gas is beyond the index Press the keys Ctrl C to end the program 22 Tilt Sensor sample program Please connect the title sensor to the Pioneer600 according to the list below Revision V1 1 1 Release date September 9 2015 Pins of Tilt Sensor Pins of Pioneer600 DOUT D3 GND GND VCC 3 3V Enter the folder of Pioneer600 Sensor Tilt_Sensor and run the following command under the terminal sudo General_Sensor Expected result The signal indi
15. ioneer6 0 KEY wiringPi make The command for executing the program pi raspberrypi Pioneer600 KEY wiringPi sudo key Expected result Press the center key of the joystick and the terminal will display the following information Key Test Program KEY PRESS KEY PRESS KEY PRESS Revision V1 1 1 Release date September 9 2015 10 Press the keys Ctrl C to end the program 3 3 python program Enter the Linux terminal and run the following commands The command for executing the program pi raspberrypi Pioneer6 KEY python sudo key py Expected result Press the center key of the joystick and the terminal will display the following information Key Test Program KEY PRESS KEY PRESS KEY PRESS Press the keys Ctrl C to end the program Revision V1 1 1 Release date September 9 2015 11 hh 4 PCF8574 sample programs I O expansion demos 4 1 bcm2835 program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 PCF8574 bcm2835 make The command for executing the program pi raspberrypi Pioneer600 PCF8574 bcm2835 sudo led Expected result The LED2 is blinking Press the keys Ctrl C to end the program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi
16. k LFNO038K IR receiver Revision V1 1 1 Release date September 9 2015 Table of contents FEATURES ioc E ae 1 What EI RE E PER H 1 Preparation installing the libraries required A 6 1 1 Installing the libraries required AAA 6 1 2 Connecting the expansion board and the RP 6 2 LED sample programs Changing the LED status nennen nennen 8 2 1 b m2835 TECH PE 8 2 2 MI PROB FAN eer 8 2 3 Sysfs TE 9 2 4 lat ele ele 9 3 Key Sample programs nene enneen nennen entere enr en terrens inneren enter enn enne 10 3 1 bcir2835 prOBbalflssc nece ee ette ee AIME E ROI 10 3 2 FTT PH e STETERIT 10 3 3 PYTHON ele 11 4 PCF8574 sample programs I O expansion demos ecceccesceseeseesecseeeecaeeeeceaeeeceaecaeeaecaeeereaeenseas 12 4 1 bem2835 e TE EE 12 4 2 python progra Io EET 12 4 3 TS TE TEE 13 4 4 WIFINGP I program unus cioe rna ek EEEE ESENES EEE ERRARE SERERE XN REEF Re ER eR RS ERA RRR e ERE e ape 13 5 BMP180 sample programs Barometer Demos sese nnne nennen 15 5 1 SEET EE 15 3 Revision V1 1 1 Release date September 9 2015 5 2 wiringPi program 5 3 PYCHON PROBA RETE 16 6 DS3231 sample programs High precision RTC Demos seen nennen 17 6 1 bcm2835 TC EE 17 6 2 WINING PH PFO QAM ese cuer
17. neer600 OLED python sudo python PN Expected result Entering the following commands under the Terminal to execute the program you oled py dispchar py image py animate py waveshare py For more detailed information please refer to the relative Raspberry Pi documents Revision V1 1 1 Release date September 9 2015 24 Pioneer600 has four interfaces for external sensors so that you can not only use the on board sensors but also other external sensors Before using the external sensors you should 1 Connectthe sensor kits to the expansion board and install the expansion board to the RPi 2 Make sure that the libraries are installed and the ES core driver is start up since the on board chip PCF8591 need to use the I C interface to provide AD DA function 3 Download the sample programs and unzip them to the directory of home pi you can also copy them into the RPi board with your U disk pen Of course we have provided a system image file with the libraries installed as well In case that you don t want to reinstall the sample programs you can program this ready to use system image file to your Raspberry Pi board 12 Color Sensor sample program Please connect the color sensor to the Pioneer600 according to the list below Pins of Color Sensor Pins of Pioneer600 LED 3 3V OUT PO S3 D3 P26 S2 D2 P23 S1 D1 P22 SO DO P21 GND GND VCC 3 3V
18. no roro einen eri deed Ra Eee sees gains Ke a Een aura dee E gege 17 6 3 Python progra espren Seefe gege ege e AEE d et eege Se en ere 18 7 DS18B20 sample programs Temperature sensor Demgos nennen 19 7 1 ET DEE 19 7 2 python Progra PEE TETTE TTC TOTEM 19 8 IRM sample programs Infrared reflective sensor program 20 8 1 To VA TE m 20 8 2 WIFINGPH prOBFam ET 20 8 3 python pEOBEFARFITI sous euet tear tae thue A EUREN PE AT 21 9 UART sample programs Transmitting the serial data received cccescceceesseeeceeneeeeesereeeeeaaees 22 9 1 Wiring Pi program EE 22 9 2 pytlionprOBEalTi occorre eee tre ee a a Ae e a ecu tese e E nE E arae 22 10 OLED SAM ple PFOBraMMs iccicesicccessssccscocessosaesninnssocadveaaddsicnsensssietansndsaseasaieeseeseibedevsessutenssdontane 23 lo DE EE EI 23 10 2 elle te Cl 23 10 3 python progFatm eren rere n thee aeo aeree hae EE vest an Fon EE ee Ege NE Ya eo EVE EEE PERET eo eR Ya eR eg 23 11 How to use Pioneer600 with external sensor kits purchased separately 25 12 Color Sensor sample program sssssssessseseeeeeeeeen nennen enne nnne nen nnne en nennen enne 25 4 Revision V1 1 1 Release date September 9 2015 13 Flame Sensor sample program cssccecseececeeseececseeececeeeeecseaeeecseeeececseeeceeaaeeeceneeeeseeareeeseaaees 26 14 Hall Sensor sample program 2 1 eti eei ridere eo earnan etaria Ene n EIE e k
19. oe ein Eno ases 26 15 Infrared Reflective Sensor sample program ccsccesceeceeeeeeeeeeeeceeceeeceaecaecaecaeeceesaeeeaeeeetees 27 16 Laser Sensor sample program 27 17 Moisture Sensor sample program essere nennen nennen tenen enne 28 18 Rotation Sensor sample program cccecececesseececsenececseeeecsenaeeecseceececseeseceeaaeeeseeeeeeseneneeeseaaees 28 19 Sound Sensor sample program 29 20 Temperature Humidity Sensor sample program 29 21 MQ 5 Gas Sensor sample program 30 22 Tilt Sensor sample prOoBIam 2 ier ince ci eite reo rhe eub uei inb SER rois ENN K EEEN ENEKE E 30 23 UV Sensor sample program i eret rene rine rta aeria eed Fin ago ona ua Rega 31 24 Liquid Level Sensor sample program eecceesseceeccecseceeeeecsaeceeeeecaeeeeeeecaeeeeeeecaeeeeeeeeaeeesees 31 5 Revision V1 1 1 Release date September 9 2015 1 Preparation installing the libraries required 1 1 Installing the libraries required Before using the PLONEER600 you shall install the bcm2835 wiringPi and python libraries to the RPi to add the additional APIs and configure the settings to start up the core drivers of 1 C SPI and UART after the libraries installed For more detailed information about the installation and configuration of the RPI library functions please refer to Libraries Installation for RPi Of course we have provided a system image file with the libraries installed as well In case that
20. ommand for compiling the program pi raspberrypi Pioneer600 OLED bcm2835 make The command for executing the program pi raspberrypi Pioneer600 OLED bcm2835 sudo main Expected result The OLED shows the LOGO of Waveshare for 2 seconds and then it will switch to display the current system time Press the keys Ctrl C to end the program 10 2 wiringPi program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 OLED wringPi make The command for executing the program pi raspberrypi Pioneer6 OLED wiringPi sudo main Expected result The OLED shows the LOGO of Waveshare for 2 seconds and then it will switch to display the current system time Press the keys Ctrl C to end the program 10 3 python program When using this python program to control the OLED you need to install another library python imaging To install the python imaging library you should connect the RPi to the network and use the line below sudo apt get python imaging 23 Revision V1 1 1 Release date September 9 2015 will get different displayed information pi raspberrypi pi raspberrypi pi raspberrypi pi raspberrypi pi raspberrypi Pioneer6 0 OLED python sudo python Pioneer6 0 OLED python sudo python Pioneer600 OLED python sudo python Pioneer6 0 OLED python sudo python Pio
21. 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 7 1 sysfs program Enter the Linux terminal and run the following commands to execute the program pi raspberrypi Pioneer600 DS18B20 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 7 2 python program Enter the Linux terminal and run the following commands to execute the program pi raspberrypi Pioneer600 DS18B20 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 Revision V1 1 1 Release date September 9 2015 19 IRM sample programs Infrared reflective sensor program 8 1 bcm2835 program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 IRM bcm2835 make The command for executing the program pi raspberrypi Pioneer600 IRM bcm2835 sudo irm Expected result Press the keys on the infrared remote controller and the terminal will display the relative value of
22. ressure 1005 12 Pa Altitude 67 66 m Press the keys Ctrl C to end the program 5 2 wiringPi program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer600 BMP180 wiringPi make The command for executing the program pi raspberrypi Pioneer600 BMP180 wiringPi sudo Expected result The terminal will display the following information BMP180 BMP180 Test Program Temperature 34 20 C Pressure 1005 12 Pa Altitude 67 66 m Press the keys Ctrl C to end the program Revision V1 1 1 Release date September 9 2015 15 5 3 python program Enter the Linux terminal and run the following commands to execute the program pi raspberrypi Pioneer600 BMP180 python sudo python BMP180 example py Expected result The terminal will display the following information Temperature 34 00 C Pressure 638 71 hPa Altitude 3726 81 m Press the keys Cristo end the program Revision V1 1 1 Release date September 9 2015 16 PN PEN 6 DS3231 sample programs High precision RTC Demos 6 1 bcm2835 program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer6 0 DS3231 bcm2835 make The command for executing the program pi raspberrypi Pioneer600 DS3231 bcm2835 sudo
23. the pressed key irm test start Get the key x c Get the key 0x18 Get the key 0x5e Press the keys Ctrl C to end the program 8 2 wiringPi program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer6 0 IRM wiringPi make The command for executing the program pi raspberrypi Pioneer6 IRM wiringPi 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 x c Get the key 0x18 Get the key x5e 20 Revision V1 1 1 Release date September 9 2015 Press the keys Ctrl C to end the program 8 3 python program Enter the Linux terminal and run the following commands to execute the program pi raspberrypi Pioneer600 IRM 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 0xOc Get the key 0x18 Get the key x5e Press the keys Ctrl C to end the program Revision V1 1 1 Release date September 9 2015 21 9 UART sample programs Transmitting the serial data received Notices The serial port of RPi is set to terminal debugging mode by default However in order to run
24. this sample program you should disable the terminal debugging function which means you cannot debug the RPi via the serial port communication any more 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 9 1 wiringPi program Enter the Linux terminal and run the following commands The command for compiling the program pi raspberrypi Pioneer6 UART wiringPi make The command for executing the program pi raspberrypi Pioneer60 UART wiringPi 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 the serial communication After the data is received by the RPi it will be echoed to the serial monitor on the PC 9 2 python program Enter the Linux terminal and run the following commands to execute the program pi raspberrypi Pioneer6 UART python sudo python uart py Expected result It is the same as in the above case 22 Revision V1 1 1 Release date September 9 2015 hh 10 OLED sample programs 10 1 bcm2835 program Enter the Linux terminal and run the following commands The c
Download Pdf Manuals
Related Search
Related Contents
UNIVERSIDADE NOVA DE LISBOA Weider WESY1951 User's Manual Manual - Penguin Computing Introduction and Table of Contents MASCHIO GASPARDO S.p.A. Toshiba RDXV60 Manuel du propriétaire HQ D-Sub M-M 20m Copyright © All rights reserved.
Failed to retrieve file