Template: Open32L-D User Manual

From Waveshare Wiki
Jump to: navigation, search

Getting Started with modules

We provide various modules for Open32L-D 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

  • KEIL MDK Version: 4.54
  • Programmer/Debugger:STM32L-DISCOVERY onboard SWD
  • 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

8BitIO-Pushbutton

Overview

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

Hardwareconnection

Open32L-D-User-Manual-2.jpg

  • Connect the 8 Push Button to the onboard 8 I/Os connector (Make sure the G pinheader is connect to the board GND pinheader)

Operationand result

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

Open32L-D-User-Manual-3.jpg

24L01

Overview

NRF24L01 transmits datavia wireless way.

Hardware connection

Open32L-D-User-Manual-4.jpg

  • Connect the NRF24L01 Board to the board via SPI interface

Software connection

Two NRF24L01 isneeded for this demo, software configuring as below:

Whenconfiguring as mode of transmitting, enabled: #define T_O_R 1, comment out: //#define T_O_R 0

Whenconfiguring as mode of receiving, enable: #define T_O_R 0,comment out: //#define T_O_R 0

Operation and result

Message will be printed on the serial debugging assistant.

ADC+DMA

Overview

AD acquisitiondemo

Hardwareconnection

Open32L-D-User-Manual-5.jpg

  • Connect the Analog Test Board to the board via SPI1+ADC interface

Operationand result

  • Rotate the potentiometer on the Analog Test Board. Message will be displayed on the serial debugging assistant.

Open32L-D-User-Manual-6.jpg

DAC

Overview

DA output demo, output viaDMA channel

Hardwareconnection

Open32L-D-User-Manual-7.jpg

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

Operationand result

  • You will hear sound from Analog Test Board while press the resetkey.

GPIOLED

Overview

LED demo

Hardware connection

Operation and result

Two LEDs on the Discoveryboard will blinking.

GPIO LED KEY

Overview

Control the LEDvia button

Hardware connection

Operation and result

Push the User key, the LEDstatus should keep changing accordingly.

I2C

Overview

Read and writedata on E2PROM via I2C protocol

Hardware connection

Open32L-D-User-Manual-8.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:

Open32L-D-User-Manual-9.jpg

JOYSTICK

Overview

Control the LEDstatus via button, joystick

Hardware connection

Short the JOYSTICK JMP

Operation and result

Push the joystick, the LEDstatus should keep changing accordingly

LCD_glass

Overview

LCD displayfunction on the Discovery

Hardware connection

Operation and result

LCD glass screen showsmessage/info

LCD22-Picture

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

Open32L-D-User-Manual-10.jpg

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

Operation and result

Display image on the LCD

LCD22_TouchPanel

Overview

Calibratethe touch screen by click

Open32L-D-User-Manual-11.jpg

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

You can draw linesfreely on the drawing board.

Hardware connection

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

Operation and result

Message will be displayedon the LCD

Open32L-D-User-Manual-12.jpg

Message will be displayed on the LCD

Application

Handheld device display

Micro SD

Overview

Read and write the SD card

Hardware connection

Open32L-D-User-Manual-13.jpg

  • Connect the DS18B20 to the board via One-Wire connector
  • Connect the "Micro SD Storage Board" to the board via SPI1 interface
  • Insert the SD card to the Micro SD Storage Board socket.

Operation and result

The below information willbe printed on the serial debugging assistant:

Open32L-D-User-Manual-14.jpg

One-Wire

Overview

Connect the DS18B20,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:

Open32L-D-User-Manual-15.jpg

PS2

Overview

PS2 keyboard demo

Hardware connection

Connect the PS2 keyboardto the board via PS2 interface

Operation and result

The below information will be printedon the serial debugging assistant:

Open32L-D-User-Manual-16.jpg

SPI

Overview

SPI interface drives the AT45DBXXDataFlash Board

Hardware connection

Open32L-D-User-Manual-17.jpg

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

Operation and result

The below information willbe printed on the serial debugging assistant:

Open32L-D-User-Manual-18.jpg

USART

Overview

USART serial portcommunication demo

Hardware connection

Operation and result

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

Open32L-D-User-Manual-19.jpg