element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Community Hub
Community Hub
Member Blogs STM32F4 Discovery + HY32D TFT LCD
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Community Hub to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: robotonics
  • Date Created: 25 May 2012 11:02 PM Date Created
  • Views 10758 views
  • Likes 3 likes
  • Comments 83 comments
  • stm32f4-discovery
  • tft
  • lcd_display
  • hy32d
Related
Recommended

STM32F4 Discovery + HY32D TFT LCD

robotonics
robotonics
25 May 2012

I am working on a project to create a touch screen that will enable the user to control a robotic device whilst receiving data and video from the device controlled.

 

I am completely new to TFT LCD technology, and was slightly daunted by the complexity of these devices. I am still on the uphill of the learning curve...

 

The STM32F4 Discovery boardSTM32F4 Discovery board has an FSMC ( Flexible Static Memory Controller ) which supports the connection of an LCD in parallel mode. I have 3 STM32F4 Discovery boards, so I decided to use one to control the HY32D TFT LCD I bought off Ebay, with absolutely useless example code for an 8051 type microcontroller.

 

There are a few examples on the web of the STM32F4 Discovery used in projects with the same controller that the HY32D uses, the SSD1289 from Soloman Systech Ltd.

 

The table below lists the connections used in the fractal drawing program...the touch control is not yet used.

     

LCD pin name

STM32F4 Pin number

STM32F4 pin name

D0

61

PD14

D1

62

PD15

D2

81

PD0

D3

82

PD1

D4

38

PE7

D5

39

PE8

D6

40

PE9

D7

41

PE10

D8

42

PE11

D9

43

PE12

D10

44

PE13

D11

45

PE14

D12

46

PE15

D13

55

PD8

D14

56

PD9

D15

57

PD10

CS

88

PD7   (NE1)

RS

60

PD11 (FSMC-A16)

RD

85

PD4   (NOE)

WR

86

PD5   (NWE)

RESET

 

+3V(1K Pull up) or GPIO

TP_IRQ

 

PD6

TP_SCK

52

PB13

TP_SI

54

PB15

TP_SO

53

PB14

TP_CS

51

PB12

BL_CNTL

69

PA10

 

I will send code for the fractal drawing to whoever asks, just send me your email. I have now (12/06/2012) also added it to Google project hosting.

 

It should be available to download here.

 

The code is not mine, a very helpful fellow Engineer sent it to me.

 

I will be working on creating a touch menu next and will update soon hopefully. image

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Update: 3/06/2012

 

I have managed finally to convert a .jpg image into a C array and get it displayed on the HY32D TFT LCD, touch screen works also, although I do have to write a better calibration routine.

 

image

I converted the .jpg using the RGB565 converter from ST Micro which is available as part of the STM Embedded resources GUI

 

Decided to start on a touch menu now...could not resist putting direction arrows on..left, right, up, and down, and next a menu button in the middle. Why? Well I am taking small steps and will work up to displaying data next, to start with I am going to attempt to write a calibration routine for the touch screen, and then get each button to control direction of 2 DC motors...eventually the buttons will operate a circuit designed to transmit a 'direction signal' using 2.4GHz RF.

 

 

a pic of the screen so far...4 buttons no menu yet, each arrow is 50x50 pixels in size.

 

image

A word of caution...I am using IAR Embedded Workbench for ARM version 6.30.8. I had to increase the STACK size to be able to store these images..no point me going into too much detail, as I do not yet quite understand it properly, if you have the same problems let me know and I can at least guide you through what I have done so far...

 

 

image

Another pic...this one one includes the STM32F4 Discovery board in the background...on a breadboard ( just for convenience! )

 

And below the Arrow image..

 

image

 

Update: 08/06/2012

 

I am trying to calibrate the touch screen (ADS7843) and the results so far are quite strange to see...

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Getting a lot of help from Megahercas with the code for this project..Thanks again to Megahercas.

 

The video below is proof that there is hope for me yet!

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply

Top Comments

  • Former Member
    Former Member over 13 years ago +1
    Hello David, I tested your code in my setup. It worked very well and the beautiful fractals are growing in the screen. I also designed a PCB layout that connects the STM32F4 discovery kit with the LCD…
  • robotonics
    robotonics over 13 years ago +1
    After a lot of late nights...lots of cofee, and lots of help... www.youtube.com/watch I finally got the correction factors for the touch screen calibration...
  • robotonics
    robotonics over 13 years ago in reply to Former Member +1
    Hi John The code is available for download here , the files are rather large altogether..too large for email...any problems let me know and i will zip the most important one's and send...
  • Former Member
    Former Member over 12 years ago +1
    Hello David! I posted an updated version of my adapter board. For those who are interested, the link is: https://sites.google.com/site/miguelmoreto/home-eng/projects/stm32f4-adapter-board2 This board have…
  • robotonics
    robotonics over 12 years ago in reply to Former Member +1
    Hi Kevin Not familiar with the SAM3N-EK board, however, perhaps it may not be the best to use as it already has an LCD connected. In any case, you should be able to use the connection details posted in…
  • Former Member
    Former Member over 12 years ago +1
    Hey mate! Here is some video of my setup in action: http://www.youtube.com/watch?v=NNQjHe1CpGQ
Parents
  • ofbay
    ofbay over 5 years ago

    Paylaşımlarınız için çok teşekkür ederim.Harika arkadaşlarsınız.

    İzmir den Selamlar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • ofbay
    ofbay over 5 years ago

    Paylaşımlarınız için çok teşekkür ederim.Harika arkadaşlarsınız.

    İzmir den Selamlar

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube