Hide thumbs Also See for DVK512:

Advertisement

Quick Links

DVK512 User Manual

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

Summary of Contents for Waveshare DVK512

  • Page 1 DVK512 User Manual...
  • Page 2: Table Of Contents

    Contents API Demo Code....................................3 Demos......................................... 3 3.2-inch LCD display switch to the HDMI display....................4 HDMI display switch to 3.2-inch LCD display......................4 LED Demo..................................4 8 channel Logic Level Converter Demo........................5 74LVC8T245 Level Converter Demo........................5 Joystick demo................................6 Key Demo...................................6 Buzzer and PWM...............................
  • Page 3: Api Demo Code

    API Demo Code All the demo codes for Raspberry Pi and the corresponding Makefile are included in our configured system image: /home/pi/DVK512/. If you're using your own system instead, the demo code can be found here as well: CD_DVK512_EN/Program/ Use the following command to compile the demo code:...
  • Page 4: 3.2-Inch Lcd Display Switch To The Hdmi Display

    3.2-inch LCD display switch to the HDMI display (The default boot mode of the image we provided is booted from 3.2-inch screen, HDMI no output. If you want to output from HDMI, you need to operate as following :) On the LXTerminal, enter HDMI-SYS-SHOW The system will load the driver( wait several minutes), when finished, the raspberry pi will re-boot automatically, after it re-booted, waiting more than 30 seconds, there will be...
  • Page 5: Led Demo

    VCC1 pinheader on the Logic Level Converter should connect to the 3V3 pinheader of the 8I/Os connector on DVK512); 2, Connect the Logic Level Converter VCC2 to the DVK512 onboard 5V pinheader via DuPont wire; 3. Connect GND to GND;...
  • Page 6: Joystick Demo

    74LVC8T245 Board should connect to the 3V3 pinheader of the 8I/Os connector on DVK512); 2, Connect the 74LVC8T245 Board VCCB to the DVK512 onboard 5V pinheader via DuPont wire; 3. Connect GND to GND; Then On the LXTerminal, enter...
  • Page 7: Key Demo

    Key Demo (Only for Raspberry Pi Model B+. The system will crash if run on Raspberry Pi Model B) On the LXTerminal, enter KEY_Test Press any key button or the joystick, LXTerminal will show the one had been pressed. Buzzer and PWM Connect the Mix Board to the 8I/Os connector P0-P7, On the LXTerminal, enter, Buzzer_PWM_Test...
  • Page 8: Infrared Remote Control

    Connect the LFN0038K (Infrared Receiver) to the Mix Board IRM connector, connect the Mix Board to the 8I/Os connector P0-P7, On the LXTerminal, enter Press any key on the Infrared Remote Controller provided by Waveshare; The LXTerminal will print the decoded infrared signal in hexadecimal format. Press "Ctrl+C" to end the demo.
  • Page 9: Pcf8563 Rtc Demo

    PCF8563 RTC Demo Short the RTC JMP, On the LXTerminal, enter: i2cdetect -y 1 The LXTerminal will print the PCF8563's address, indicating that the PCF8563 has been detected. It's 51 in the writer’s case. The address might be different, depending on the Raspberry Pi's version and the concrete configuration of PCF8563.
  • Page 10: Pcf8591 Ad/Da Demo

    The LXTerminal starts printing digital conversion value; AOUT pinheader of PCF8591 module has a corresponding level variation Acceleration of Gravity and Magnetic Sensors LSM303DLHC Firstly open RTC JMP, exclude interference from RTC. Connect the LSM303DLHC Board to DVK512 onboard I2C connector as figure below:...
  • Page 11: L3G4200D Angle Sensor

    On the LXTerminal, enter: LSM303 Z_A is acceleration in vertical gravity direction, the module will surely to be at equilibrium state as long as the acceleration value of X_A and Y_A is 0; and equilibrium of object can be tested based on this principle North is the value gets from the test.
  • Page 12: Serial Port Demo (The Serial Port Works As Console Debug Output)

    DVK512 to the PC via a USB cable, and install a driver. The simplest way is to find a ”Driver Genius Professional" software on the web directly;...
  • Page 13 Short CP_TX and RX, CP_RX and TX of the UART_JMP. Launch putty.exe under directory of “software”, select corresponding COM on”1”, and set Baud rate as 115200 on ”2”, then click “open” on “3”; Then enter the software, connect the raspberry pi to the electricity and start it, the software terminal will display system information, and then appear a pop-up window for you to enter user name and password;...
  • Page 14: Serial Port Demo (Control Peripherals Via Serial Port Communication)

    The system restarts, disable the serial port to work as terminal debugging output, now it can be used as a normal serial port. Connect the DVK512 to the PC using a mini USB cable, open the serial port monitoring software on another computer, select baud rate as 115200;...
  • Page 15: Gps Demo

    When using LCD to display, On the LXTerminal, enter: EN_UART-LCD when using HDMI output to display, On the LXTerminal, enter: EN_UART-HDMI After entered, the system will reboot and turn on this function. GPS Demo The image we provided is used by taking the serial port as a terminal debugging by default; so to control the peripherals, it needs to disable the debugging function of the serial port first;...
  • Page 16 On the LXTerminal, enter below to set the baud rate (The baud rate will reset to the default 115200 when the system reboots): stty -F /dev/ttyAMA0 38400 gpsd /dev/ttyAMA0 -F /var/run/gpsd.sock The specific software of the Linux system can be used for GPS positioning; On the LXTerminal, enter cgps -s Below positioning information will be generated:...

Table of Contents