Template:Open051C User Manual

From Waveshare Wiki
Jump to: navigation, search

Getting Started with modules

We provide various modules for Open051C User Manual development board aiming to improve your development efficiency. These modules are not only designed for STM32 but also can be used for many other MCU platforms. Let's begin with the demos.

Development Environment

  • KEILMDK Version:4.54
  • Programmer/Debugger:ULINK/V2
  • Programming/Debugginginterface: SWD
  • Resultof demos which based on serial port are all checked via SSCOM32, defaultconnection is connect the serial port converter to the USART1 interface.
  • Serial port assistant SSCOM3.2 settings:
Select a proper COM port
Baud rate 115200
Data bits 8
Stop bits 1
Parity bits None
Flow control None

8Ios

Overview

8I/Os demo,detect the 8 independent button is pressed or not

Hardware connection

Open051C-User-Manual-2.jpg

  • Connect the 8 Push Button to the board via 8I/Os+DAC+DAC interface (The G pin on the module connect to the GND pin on the board)

Operation and result

  • The below information will be printed on the serial debuggingassistant:

Open051C-User-Manual-3.jpg

ADC+DMA

Overview

ADC acquisitiondemo

Hardwareconnection

Open051C-User-Manual-4.jpg

  • Connect the Analog Test Board to the board via 8I/Os+DAC+DAC interface

Operationand result

  • Rotate the potentiometer on the Analog Test Board, the belowinformation will be printed on the serial debugging assistant:

Open051C-User-Manual-5.jpg

DAC+DMA

Overview

AD acquisitiondemo

Hardwareconnection

Open051C-User-Manual-4.jpg

  • Connect the Analog Test Board to the board via 8I/Os+DAC+DAC interface
  • Connect the 5V pin headers on both the main board and the Analog Test Board via jumper wire

Operationand result

  • You should hear sound from the Analog Test Board.

GPIO_LED

Overview

GPIO_LED demo

Operation and result

Short the LED JMP

Operation and result

The LED blinking

GPIO_LED_KEY

Overview

Change LEDstatus via button

Hardware connection

Short the LED JMP

Operation and result

Push the joystick, the LEDstatus should keep changing accordingly.

I2C

Overview

Read and writedata on E2PROM via I2C protocol

Hardware connection

Open051C-User-Manual-6.jpg

  • Connect the AT24CXX EEPROM Board to the board via I2CX interface( connect to I2C1 or I2C2 depends on the program)

Operation and result

  • The below information will be printed on the serial debuggingassistant:

Open051C-User-Manual-7.jpg

I2SUDA1380 & SD_FATFS

Overview

Read and write data onE2PROM via I2C protocol

Hardware connection

Open051C-User-Manual-8.jpg

  • Connect the UDA1380 Board to the onboard I2S interface
  • Connect an earphone to theUDA1380 Board LINEOUT interface
  • Connect the Micro SD Storage Board (with SD card) to the onboard SPI2 interface
  • Connect the CD pin on the Micro SD Storage Board to the onboard PB0 pin using a jumper wire.

Operation and result

  • The below information will be printed on the serial debuggingassistant:

JOYSTICK

Overview

Change the LEDstatus via button, joystick

Hardware connection

Short the LED JMP,JOYSTICK JMP,KEY JMP.

Operation and result

Push the joystick or thekeys, the LED status should keep changing accordingly.

LCD22

Overview

This LCD is 2.2inch resistive touch screen LCD, the resolution is 320x240, drive by mode ofSPI, greatly reduce the pins, MCU with little IO can also available to driveit.

This demo showsdot, the drawing line, the drawing circle, character, etc displayed on the LCD.

Hardware connection

Open051C-User-Manual-9.jpg

  • Connect the "2.2inch 320x240 Touch LCD (A)" to the board.

Operation and result

Display image on the LCD

LCD22-Touch

Overview

Calibratethe touch screen by click

Open051C-User-Manual-10.jpg

three times,and then enter into drawing board in the touch screen interface.

You can drawlines freely on the drawing board.

Hardware connection

Connect the "2.2inch320x240 Touch LCD (A)" to the board.

Operation and result

Display imageon the LCD

Open051C-User-Manual-11.jpg

Message will be displayed on the LCD

Application

Handheld device display

FATFS V0.08A-SD Card

Overview

Development board drivethe SD card via SPI interface; development board read and write the SD card .

Hardware connection

Open051C-User-Manual-12.jpg

  • Connect the Micro SD Storage Board (with SD card) to the board via SPI2 interface
  • Connect the CD pin on the Micro SD Storage Board to the onboard PB0 pin using a jumper wire.

Software configuration

Operation and result

The belowinformation will be printed on the serial debugging assistant:

Open051C-User-Manual-13.jpg

NRF24L01

Overview

NRF24L01 transmits datavia wireless way.

Hardware connection

Open051C-User-Manual-14.jpg

  • Connect the NRF24L01 Board to the board via SPI interface

Software configuration

Download thetransmitting and receiving program for the two NRF24L01 boards respectively.

Operation and result

Messagewill be printed on the serial debugging assistant.

One-Wire

Overview

Connect theDS18B20, detect the temperature

Hardware connection

Connect the DS18B20 to theonboard One-wire socket

Operation and result

The below information willbe printed on the serial debugging assistant:

Open051C-User-Manual-15.jpg

PS2

Overview

Drive PS2 keyboard via 2GPIO

Hardware connection

Open051C-User-Manual-16.jpg

  • Connect the PS2 keyboard to the board via PS2 interface.
  • Short the PS2 JMP.

Operation and result

Press keys on the PS2keyboard, the related key value will display on the serial debugging assistant:

Open051C-User-Manual-17.jpg

RTC

Overview

Open103C RTCdemo

Hardware connection

Operation and result

The below information willbe printed on the serial debugging assistant:

Open051C-User-Manual-18.jpg

SPI

Overview

Drive the AT45DBXXDataFlash Board via SPI interface

Hardware connection

Open051C-User-Manual-19.jpg

  • Connect the "AT45DBXX DataFlash Board" to the onboard SPIX interface (connect to SPI1 or SPI2 depends on the program)

Operation and result

The below information willbe printed on the serial debugging assistant:

Open051C-User-Manual-20.jpg

Ucos II

Overview

Ucos ii demo, run twotasks, one is LED0, the other is LED2; switching the two tasks

Hardware connection

Short the LED jumper

Operation and result

The two LED blinking indifferent frequency.

USART

Overview

USART serial portcommunication demo

Hardware connection

Connect a serial portconverter to the onboard USARTX interface (connect to USART1 or USART2 dependson the program)

Operation and result

The below information will be printed on the serial debugging assistant:

Open051C-User-Manual-21.jpg