Jan. 01, 2015 Amend Chap. 2.13 Overview DVK512 is an expansion board designed for Raspberry Pi Model B+, integrates various components and interfaces for connecting external accessory boards. It's ideal for Raspberry Pi Model B+ evaluation and development. V2.4, Jan. 21, 2015...
Page 2
DVK512 User Manual Waveshare Pinheaders for connecting with the RPi UART interface: easily connects to UART modules such as RS232, RS485, USB TO UART, etc. 8I/Os interface: easily connects to modules controlled by I/Os, such as 8 Push Buttons, Logic Level Converter, Mix Board, etc.
Figure 1: Programming the system image file with Win32DiskImager.exe Serial debugging environment deploying Connect your PC to the UART TO USB interface on DVK512 via a mini USB cable; Notices: The USB part of the UART TO USB interface applied by DVK512 is a mini USB interface, while the one on Raspberry Pi board is a micro USB interface.
DVK512 User Manual Waveshare Figure 2: PuTTY settings And then, click the button Open. After the system is started up, you should input following information: User name: pi and Password: raspberry. Then, you can enter the serial terminal to communicate with the Raspberry Pi.
DVK512 User Manual Waveshare reboot automatically. After it rebooted, the terminal debugging function will be disabled and the serial port will work as a common IO. However, you will not be able to enter the terminal of the Pi via the serial port communication any more.
Page 7
DVK512 User Manual Waveshare Figure 3: Connection between a Raspberry Pi Model B+ and a 3.5-inch LCD displayer Apply the system image described in Section 1.1, and power up the Pi. Enter the following commands for touch screen calibration: pi@raspberrypi:/$...
API source code The API source code referred in this document can be found under the directory: /home/pi/DVK512 (Since this directory is located in the system image file described in Section 1.1, you should enter the Raspbian to find it).
Connect the 8-channel Logic Level Converter to the onboard 8I/Os interface, as Figure 7 shows (Notices: The VCCA pin header on the Logic Level Converter should be connected to the 3V3 pin header of the 8I/Os connector on DVK512). Logic Level Converter...
Figure 7: The connection between Logic Level Converter and DVK512 Enter the terminal, and input: root@ raspberrypi:/# 8-LOGIC Press the KEY0-KEY3 on the DVK512, and the relative LED will light up. Press the keys Ctrl+C to end the demo. Joystick Demo Connect the Mix Board to the 8I/Os interface;...
DVK512 User Manual Waveshare Buzzer and PWM Connect the Mix Board to the 8I/Os interface; Enter the terminal, and input: root@ raspberrypi:/# Buzzer_PWM_Test The buzzer on the Mix Board will sound with a decreasing volume, until no sound. DS18B20 Demo Connect the Mix Board to the 8I/Os interface;...
DVK512 User Manual Waveshare placed according to the shape of the icon shown on the ONE-WIRE interface of Mix Board. Enter the terminal, and input: root@ raspberrypi:/# modprobe w1-gpio root@ raspberrypi:/# modprobe w1-therm root@ raspberrypi:/# ls /sys/bus/w1/devices You will see a string like 28-0000066356bc, get the last 7 numbers and letters (They are different for each DS18B20.
Figure 10: Terminal displays the key pressed on the infrared remote controller Press the keys Ctrl+C to end the demo. LCD1602 Demo Insert the LCD1602 into the LCD1602 interface on DVK512, as Figure 11 shows. Figure 11: Inserting the LCD1602 into the LCD1602 interface on DVK512 Enter the terminal, and input:...
–s (Synchronize the time of Raspbian and hardware RCT) 2.10 PCF8591 AD Demo Connect the PCF8591 module to the I2C interface on DVK512; Connect the pins AIN0 and AD0 on the PCF8591 together via a cable, as Figure 13 shows.
Page 15
DVK512 User Manual Waveshare Figure 13: connecting the pins AIN0 and AD0 together Enter the terminal, and input: root@ raspberrypi:/# pcf8591-ADC The terminal will display the AD values read from ADC0-ADC3 (corresponding to the pins AIN0-AIN3 on PCF8591), as Figure 14 shows.
2.11 PCF8591 DA Demo Connect the PCF8591 module to the I2C interface on DVK512; Connect the Pin AOUT on PCF8591 to the LED pin header on DVK512, as Figure 15 shows. Figure 15: Connecting the Pin AOUT on PCF8591 to the LED pin header on DVK512...
Page 17
DVK512 User Manual Waveshare shows. Figure 16: Connecting the LSM303DLHC module to the I2C interface on DVK512 Notices: LSM303DLHC module has two rows of pins, and the one connected to DVK512 contains the pins SDA and SCL. Enter the terminal, and input:...
Figure 18: Angular velocity values 2.14 GPS Demo In the default boot mode of the system image provided by Waveshare, the serial port works as terminal debugging output. In order to control peripherals via serial port communication, you should input corresponding commands on the terminal to disable the debugging function of the serial port.
The system reboots automatically. After it rebooted, the terminal debugging function is disabled and the serial port works as a common IO; Insert a GPS module into the UART interface on DVK512, and remove the jumper wire from UART JMP, as Figure 19 shows.
Page 20
DVK512 User Manual Waveshare root@ raspberrypi:/# nano /etc/network/interfaces (Edit the configuration info of the network card) Configure the settings according to your WIFI environment condition: auto lo// Use localhost iface lo inet loopback iface eth0 inet dhcp auto wlan0// If there is a wlan device, use “wlan0” as device name...
Need help?
Do you have a question about the DVK512 and is the answer not in the manual?
Questions and answers