Hide thumbs Also See for DVK512:

Advertisement

Quick Links

DVK512 User Manual

Copyright
All rights reserved by Waveshare Electronics Co., Ltd.
Not allow to modify, distribute, or copy without permission.

Revision History

Revision
V1.0
V1.1
V2.1
V2.2
V2.3
V2.4

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
Date
Aug. 18, 2014
Nov. 13, 2014
Nov. 27, 2014
Dec. 03, 2014
Dec. 18, 2014
Jan. 01, 2015
Waveshare
DVK512
User Manual
Description
Initial revision
Figures and tables update
Major update
Amendment
3.5inch LCD update
Amend Chap. 2.13
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DVK512 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Waveshare DVK512

  • Page 1: Dvk512 User Manual

    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.
  • Page 3: Table Of Contents

    3.5-inch LCD display switch to HDMI display ..........8 HDMI display switch to 3.5-inch LCD display ..........8 API source code ..................8 DVK512 and expansion function Demos ..............9 LED Demo ....................9 Key Demo ....................9 8-channel Logic Level Convertor Demo............9 Joystick Demo ...................
  • Page 4: Basic Operations

    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.
  • Page 5: Debugging Function Disable

    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.
  • Page 6: Debugging Function Enable

    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:/$...
  • Page 8: Inch Lcd Display Switch To Hdmi Display

    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).
  • Page 9: Dvk512 And Expansion Function Demos

    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...
  • Page 10: Joystick Demo

    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;...
  • Page 11: Buzzer And Pwm

    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;...
  • Page 12: Infrared Remote Control

    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.
  • Page 13: Lcd1602 Demo

    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:...
  • Page 14: Pcf8591 Ad Demo

    –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.
  • Page 16: Pcf8591 Da Demo

    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:...
  • Page 18: Angular Rate Sensor L3G4200D

    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.
  • Page 19: Usb Wifi Demo

    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...

Table of Contents