Waveshare DVK512 Expansion Board for Raspberry Pi B+

 Waveshare DVK512
en.pdf24.org    Send article as PDF   
Whilst searching DX.com, I came across the Waveshare DVK512 Expansion Board suitable for both Raspberry Pi B+ and Banana Pro. The Waveshare DVK512 Expansion Board comes equipped is 4x user defined buttons and LEDs, plus interfaces sockets for add-on Modules of almost any type you can think of.

Waveshare DVK512 GPIO Expansion Board

The Waveshare DVK512 Expansion Board also comes equipped with a number of conveniently ‘Socketed Outputs‘ to allow you to connect almost anything to your Raspberry Pi B+ or Banana Pro Boards.

Waveshare512-02

What is on the DVK512 Expansion Board:

DVK512-intro

  1. Pinheaders for connecting with the RPi
  2. UART interface: easily connects to UART modules such as RS232, RS485, USB TO UART, etc.
  3. 8x I/Os interfaceeasily connects to modules controlled by I/Os, such as 8 Push Buttons, Logic Level Converter, Mix Board, etc.
  4. SPI interface: easily connects to SPI modules such as AT45DBXX Dataflash, 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 LCD1602
  7. USB connector: USB TO UART, supported by onboard converter CP2102
  8. Power indicator
  9. User LEDs
  10. User Keys
  11. Potentiometer: for LCD1602 contrast adjustment
  12. RTC battery holder
  13. PCF8563: onboard RTC chip
  14. 32.768K crystal: RTC crystal
  15. CP2102: onboard USB TO UART chip, for debugging
  16. CP2102 jumper
  17. RTC jumper
  18. User LEDs jumper
  19. User Keys jumper

Closer look at what is on the DVK512 Expansion Board:

The Waveshare DVK512 Expansion Board comes with a battery backed up RTC, or RealTime Clock so your Pi’s will never loose time. The clock can be access by the O/S or any user programs or scripts.

Waveshare DVK512 GPIO Expansion Board - RTC clock

A USB to TTL/UART Port, which allows for Convenient serial communication with PC is supplied via a Mini USB Socket. Using a Connection via a Serial Port is a low-level way to send data between the Raspberry (Banana) Pi and another computer system such as your PC or Laptop.

Waveshare DVK512 GPIO Expansion Board - USB to TTL-UART

The Waveshare DVK512 comes equipped with a UART interface, allow easy addition of all kinds of use UART interface modules, such as RS232, RS485, USB TO UART modules.

Waveshare DVK512 GPIO Expansion Board - UART interface

Waveshare DVK512 GPIO Expansion Board includes a I2C interface& for all kinds of use I2C interface modules, such as PCF8574 IO Expansion Board, PCF8563 RTC Board, LSM303DLHC Board and so on.

Waveshare DVK512 GPIO Expansion Board - I2C interface

Waveshare DVK512 GPIO Expansion Board adds a SPI Interface for connection to SPI interface modules, such as AT45DBXX DataFlash Board, L3G4200D Board and so on.

Waveshare DVK512 GPIO Expansion Board - SPI interface

Waveshare DVK512 GPIO Expansion Board features an 8x I/O lines enabling easy access to all kinds of uses I/O control module, such as eight key module, Logic Level Converter and Mix Board and so on.

Waveshare DVK512 GPIO Expansion Board - GPIO for Mix Board

Waveshare DVK512 Expansion Board also adds a ‘Paralell’ interface for LCD12864, LCD1602, 16×2 and LCD2004, 20×4 Character LCD Modules. A Potentiometer is also supplied onboard for Contrast adjustment of the attached LCDs.

Waveshare DVK512 GPIO Expansion Board - 1602LCD interface

Also the 40-Pin GPIO Header on the Raspberry Pi B+ and Banana Pro are carried through to allow the addition of other expansion boards. The “KEY JMP” yellow Handbag Links allow for isolation of several GPIO Pins.

Waveshare DVK512 GPIO Expansion Board - 40PIN for Expansion

The following list of Waveshare modules that connect directly to the Waveshare DVK512 Expansion Board‘s Expansion Ports.

  • 8 channel Logic Level Converter
  • 74LVC8T245 Level Converter
  • Joystick
  • Key Board
  • Buzzer and PWM
  • DS18B20
  • Infrared Remote Control
  • LCD1602
  • PCF8563 RTC
  • PCF8591 AD/DA
  • Acceleration of Gravity and Magnetic Sensors LSM303DLHC
  • L3G4200D Angle Sensor
  • GPS Demo

You can also use any 3rd-party modules that are available for the Arduino with the Waveshare DVK512 Expansion Board, but you need to make sure they are 3.3Volt modules. Also you will need to check the correct orientation of the connecting pins with the Waveshare DVK512 Expansion Board Expansion Ports.

Connecting the Expansion Board:

Waveshare DVK512 & Pi

If you haven’t already done so, I highly recommend that you place a piece of electrical insulation tape across the top of the USB and Network Sockets on your Raspberry Pi B+ and Banana Pro to avoid shorting out the Waveshare DVK512 Expansion Board on them. Alternatively using some Hot Glue or Arledite, to glue a piece of insulating plastic cut from an icecream containor or shirt box.

I found the Waveshare DVK512 Expansion Board fitted onto my Raspberry Pi B+ easily, and was well supported by the GPIO Connection and the 2x supplied PCB Stand-offs. The Waveshare DVK512 Expansion Board has the same footprint as the Raspberry Pi B+, which results in a very need package. The same should apply when fitted to the Banana Pro Board.

Development Resources:

All the ‘Demo Codes‘ for the Raspberry Pi B+ and Banana Pro and the corresponding Makefile are included in Waveshare DVK512 Expansion Board‘s configured system image: /home/pi/DVK512/. Included in the archive is a User Manual for the Waveshare DVK512 Expansion Board.

The User Guide CD includes development resources listed as follow:

  • User manual
  • Schematic (PDF)
  • Examples in C (Linux API source code)
  • Development documentations (Raspbian configuration, C library installation)
  • Raspbian (the configured system image for RPi)

Examples in C:

  • LED (I/Os)
  • Logic Level Converter (I/Os)
  • JOYSTICK (I/Os)
  • Key (I/Os)
  • BUZZER (PWM)
  • DS18B20 (1-WIRE)
  • IRM (I/Os)
  • LCD1602 (I/Os)
  • PCF8563 (RTC)
  • PCF8591 (AD/DA)
  • LSM303DLHC (I2C)
  • L3G4200D (SPI)
  • CP2102 (UART)
  • GPS (UART)

 

 Remember to SET Jumpers:

  • short the jumper to connect to I/Os used in example code
  • open the jumper to connect to other custom pins via jumper wires

 

Using the PCF8563 RealTime Clock:

Start by shorting the RTC JMP, 17 on the Waveshare DVK512 Expansion Board.

Start a Terminal Window and enter:

i2cdetect -y 1

The Terminal will print the PCF8563’s address, indicating that the PCF8563 has been detected. It’s I2C address for the RTCis 0x51 in my case. The address might be different, depending on the Raspberry Pi’s version and the configuration of PCF8563.

Then on the Terminal, enter:

modprobe i2c-dev

echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-1/new_device

hwclock r (for reading the time info from the connected I2C RTC hardware)

The Terminal will print the time info of the PCF8563, which will be different from the system time.

Enter:

hwclock w (writing the Raspberry Pi system time info to the PCF8563)

Then:

<cite>hwclock r</cite>

Now the time info of Raspberry Pi system and the PCF8563 have been synchronized.

hwclock s (synchronize the system time and the hardware RTC)

 Conclusion:

I have found the Waveshare DVK512 Expansion Board to be a great addition to my Raspberry Pi B+ and Banana Pro Hardware Add-on collection.

Waveshare also have the DVK511 Expansion Board for Raspberry Pi A & B and Banana Pi Boards which basically the same accepting it has the 26-Pin GPIO to suite.

 

DX

 

Previous Post

Using a PS2 Dualshock Controller with Raspberry Pi

I have spent the weekend experimenting with my Raspberry Pi's. One challenge I set myself was to get a Sony PS2 Dualshock Controller working with Raspberry Pi. The main reason ... Read more

Next Post

New A+ Model Raspberry Pi and Touch Screen LCD Announced...

It’s time to get excited all you Raspberry Pi enthusiasts as pretty soon, you’ll be able to pick-up an official touch screen to connect to your Raspberry Pi. Plus, a ... Read more

Short URL: http://tinyurl.com/go7w4zm

Leave a Reply

Your email address will not be published. Required fields are marked *



Do NOT follow this link or you will be banned from the site!
error: Content is protected !!