Waveshare DVK512 Скачать руководство пользователя страница 18

DVK512 User Manual 

 

Waveshare 

18 

V2.4, Jan. 21, 2015 

2.13

 

Angular rate Sensor L3G4200D 

Before performing the following operations, you should remove the 3.5-inch LCD 

displayer first.   

1)

 

Connect the L3G4200D to the SPI interface on DVK512; 

2)

 

Remove the 3.5-inch LCD displayer; 

3)

 

Connect a HDMI displayer to Raspberry Pi module (In here, you can also use SSH 

to build a connection to Raspberry Pi module); 

4)

 

Enter the terminal, and input: 

root@  raspberrypi:/# 

HDMI-SYS-SHOW

  (From  3.5-inch  LCD  display  switch  to 

HDMI display)

 

Notices:  The L3G4200D Board needs  to  use  the  SPI  interface. However,  if  the 

system boots from LCD display mode, the SPI interface will be occupied by the 

LCD displayer. Therefore, you should remove the LCD, connect a HDMI displayer, 
and  switch  to  HDMI  display  mode  to  release  the  SPI,  before  using  the 

L3G4200D  Board  (For  more  detailed  information,  please  refer  to  the  Section 

1.6). 

5)

 

The system will load the driver (wait several minutes). And the Raspberry Pi will 

reboot  automatically,  when  the  driver  download  finished.  After  the  module 
rebooted,  waiting  more  than  30  seconds,  there  will  be  information  display  on 
the HDMI screen. And then, you will enter into Startx interface;   

6)

 

Enter the terminal, and input: 
root@ raspberrypi:/# 

L3G4200D 

7)

 

The  terminal  will  display  the  angular velocity values  in  three  factors  of  x  axis,  y 
axis and z axis, respectively. 

 

Figure 18: Angular velocity values   

2.14

 

GPS Demo 

1)

 

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.   

 

When using a LCD displayer, you should enter following command to disable 

the debugging function of the serial port: 
root@raspberrypi:/# 

DIS_UART-LCD 

 

When  using  a  HDMI  displayer,  you  should  enter  following  command  to 

disable the debugging function of the serial port: 
root@raspberrypi:/# 

DIS_UART-HDMI 

Содержание DVK512

Страница 1: ...on V1 0 Aug 18 2014 Initial revision V1 1 Nov 13 2014 Figures and tables update V2 1 Nov 27 2014 Major update V2 2 Dec 03 2014 Amendment V2 3 Dec 18 2014 3 5inch LCD update V2 4 Jan 01 2015 Amend Chap...

Страница 2: ...sh L3G4200D Board etc 5 I2C interface easily connects to I2C modules such as PCF8574 Expansion Board PCF8563 RTC Board LSM303DLHC Board etc 6 Character LCD interface for connecting character LCDs like...

Страница 3: ...layer 6 1 6 3 5 inch LCD display switch to HDMI display 8 1 7 HDMI display switch to 3 5 inch LCD display 8 1 8 API source code 8 2 DVK512 and expansion function Demos 9 2 1 LED Demo 9 2 2 Key Demo 9...

Страница 4: ...elect the system image file copied into your PC then click the button Write to program the system image file Figure 1 Programming the system image file with Win32DiskImager exe 1 2 Serial debugging en...

Страница 5: ...bugging function For more information please refer to Section 1 3 and Section 1 4 1 3 Debugging function disable Serial port services as common serial port After programming the system image file desc...

Страница 6: ...smit and receive data by running the serial sample application even though its debugging function of the serial port is disabled When the Raspberry Pi receives serial data from your PC the received da...

Страница 7: ...mpt for four point calibration shown in the LCD screen Click the points one by one to finish the touch calibration Then the new calibration data will be displayed in the terminal as Figure 4 shows Ple...

Страница 8: ...i HDMI SYS SHOW 2 The system will load the driver wait several minutes And the Raspberry Pi will reboot automatically when the driver download finished After the module rebooted waiting more than 30 s...

Страница 9: ...the demo 2 2 Key Demo 1 Enter the terminal and input root raspberrypi KEY_Test 2 The terminal will show whether there is key press 2 3 8 channel Logic Level Convertor Demo 1 Connect the 8 channel Log...

Страница 10: ...e LED will light up 4 Press the keys Ctrl C to end the demo 2 4 Joystick Demo 1 Connect the Mix Board to the 8I Os interface 2 Enter the terminal and input root raspberrypi JOYSTICK_Test 3 Press or mo...

Страница 11: ...onnect the Mix Board to the 8I Os interface 2 Insert the DS18B20 to the ON WIRE interface on Mix Board as Figure 8 shows Figure 8 Inserting the DS18B20 to the ON WIRE interface on Mix Board Dangerous...

Страница 12: ...ch DS18B20 In this example it is 66356bc 5 Enter the terminal and input root raspberrypi DS18B20_Test 66356bc 6 The terminal will display the current temperature information 2 7 Infrared remote contro...

Страница 13: ...ure 11 shows Figure 11 Inserting the LCD1602 into the LCD1602 interface on DVK512 2 Enter the terminal and input root raspberrypi LCD1602_Test 3 LCD1602 will display relative information If there is n...

Страница 14: ...info from the connected I2C RTC hardware root raspberrypi hwclock w Write the time info of Raspbian into PCF8563 root raspberrypi hwclock r Read out the time info from the I2C RTC hardware once more N...

Страница 15: ...e pins AIN0 and AD0 together 3 Enter the terminal and input root raspberrypi pcf8591 ADC 4 The terminal will display the AD values read from ADC0 ADC3 corresponding to the pins AIN0 AIN3 on PCF8591 as...

Страница 16: ...onnecting the Pin AOUT on PCF8591 to the LED pin header on DVK512 3 Enter the terminal and input root raspberrypi pcf8591 DAC 4 The digital conversion value is displayed in the terminal And the bright...

Страница 17: ...module has two rows of pins and the one connected to DVK512 contains the pins SDA and SCL 2 Enter the terminal and input root raspberrypi LSM303 3 The terminal will display the relative values read f...

Страница 18: ...em will load the driver wait several minutes And the Raspberry Pi will reboot automatically when the driver download finished After the module rebooted waiting more than 30 seconds there will be infor...

Страница 19: ...the following commands to set the Baud rate The Baud rate will be restored to the default value 115200 after the system rebooted root raspberrypi stty F dev ttyAMA0 38400 root raspberrypi gpsd dev tty...

Страница 20: ...ice name allow hotplug wlan0 The wlan device supports plug and play function iface wlan0 inet dhcp If there is a WLAN network card wlan0 in used use DHCP to get the IP address wpa ssid YourSSID Connec...

Отзывы: