EXPLORER 500 Expansionboard 1. GENERAL INFORMATION Dear customer, thank you for choosing our product. In the following, we will show what is to observe during the commissioning and the usage. Should you encounter any unexpected problems during use, please do not hesitate to contact us. www.joy-it.net Pascalstr.
. CONNECTIONS 7 14 11 5 13 6 12 3 2 9 15 4 8 10 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19.
. MAIN OPERATIONS Image installation Download the newest prepared image from our website: Download Format a microSD-card with the “SDFormatter.exe”. Note: The memory size of the microSD-card should be more than 4 GB. In this process a microSD-card reader is required which must be purchased separately. Start the file “Win32Disklmager.exe” and select the copied image onto your PC. Click now on the button “Write” to write the image onto the card.
Note: In this document the program PuTTY is used to control the Raspberry Pi via the serial communication if nothing else is indicated. If a serial port for the Raspberry Pi terminal uses debug, this can not be used as a normal serial port anymore because the system is occupied by the debug function. 4. CODE EXAMPLES Important: Should you use a new Raspbian and not one of our prefabricated images, you should start with point 5.
LED - example bcm2835-program: 1. Open the Linux console and run the following command: cd Desktop/EXP500/LED/bcm2835 sudo ./led 2. All 4 LEDs will glow one after the other. 3. Press the keys STRG + C to close the example. wiringPi-program: 1. Open the Linux console and run the following command: cd Desktop/EXP500/LED/wiringPi sudo ./led 2. All 4 LEDs will glow one after the other. 3. Press the keys STRG + C to close the example. Python-program: 1.
KEY - example bcm2835-program: 1. Open the Linux console and run the following command: cd Desktop/EXP500/KEY/bcm2835 sudo ./key 2. The terminal shows if a button is pressed. 3. Press the keys STRG + C to close the example. wiringPi-program: 1. Open the Linux console and run the following command: cd Desktop/EXP500/KEY/wiringPi sudo ./key 2. The terminal shows if a button is pressed. 3. Press the keys STRG + C to close the example. Python-program: 1.
LCD 16x2 - example (separately acquirable) To figure out which I2C-address the display has, enter the following command while the display is not connected and afterwards while the display is connected. i2cdetect -y 1 In our example the display has address 27. Address 51 belongs to the PCF8563 (real time clock). After you have connected the display and figured out the I2C-address, run the following commands: cd Desktop/EXP500/LCD1602/python sudo python lcd1602.
bcm2835-program: cd Desktop/EXP500/PCF8563/bcm2835 sudo ./pcf8563 wiringPi-program: cd Desktop/EXP500/PCF8563/wiringPi sudo ./pcf8563 Python-program cd Desktop/EXP500/PCF8563/python sudo python pcf8563.py The time of the PCF8563 will now be shown in the console. UART - example Note: The serial port of the Raspberry Pi is normally used for the debug ging via the console.
Note: Should you use a prefabricated image, you can skip point 5. 5. INSTALLATION OF LIBRARIES FOR RASPBERRY PI To use our API-examples, you must have libraries which should be installed manually. bcm2836 - library wiringPi - library Install the wiringPi - library If GIT is not already installed, you can install it with the following command. sudo apt-get install git-core Should problems occur, update your Raspberry Pi.
Install the C-library bcm2835 First download the bcm2836 - library . To install the bcm2835, enter the following commands (apply the version number of your downloaded file in this command): tar zxvf bcm2835-1.xx.tar.gz cd bcm2835-1.xx ./configure make sudo make check sudo make install Install the Python - library Download the RPi.GPIO and the spidev library. Unzip both files and navigate via the cd-command in the unzipped path. After that use the following command in both folders. sudo python setup.
6. CONFIGURATION OF INTERFACES Activation of the I2C-function Enter the following command to configurate your Raspberry Pi board. sudo raspi-config Choose in “Interfaceing Options” → “I2C” → “Yes” to start the core driver of I2C. Afterwards, you should adjust the configuration file.
To still use the serial functions, you must activate the SPI-function. For that, you start the SPI-function and you enter meanwhile the following command: sudo raspi-config Now you only have to choose in “Interfacing Options” → “SPI” → “Yes” to use the serial functions. 7.