element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Hack Like Heck
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • Hack Like Heck
  • More
  • Cancel
Hack Like Heck
Blog FAME BOY - build log 6 - Hack Like Heck
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Hack Like Heck to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: davedarko
  • Date Created: 24 Mar 2018 9:18 PM Date Created
  • Views 1581 views
  • Likes 5 likes
  • Comments 6 comments
  • hacklikeheck
  • handheld pi
  • raspberry pi
  • hack like heck
  • hlhblog
Related
Recommended

FAME BOY - build log 6 - Hack Like Heck

davedarko
davedarko
24 Mar 2018

screen issues

 

I'm that much out of ideas, that I've bought another display, just to check if I haven't zapped this one. Nevermind, there is an ON/OFF pin that you should definitely want to keep high image now it only needs some tweaking with the colors! This will be updated tomorrow! All clear, I changed the 0x7F013 to 0x7F014 at one point and the colors were off, now that it's changed back, it works!

 

So I've decided on using the Mode 3 (2nd) of the pinouts for RGB565 as seen here https://www.raspberrypi.org/documentation/hardware/raspberrypi/dpi/README.md

After a while I've figured out where to solder what cable and also managed to do the device tree overlay for the PI Zero W.

image

image

 

So for me the following exerpt proves that the overlay works, not just for the DPI but also the PWM pins. I even get pulses on clk, vsync, hsync and DE, but the screen stays white.

 

pi@retropie:~ $ sudo raspi-gpio get
BANK0 (GPIO 0 to 27):
  GPIO 00: level=1 fsel=6 alt=2 func=PCLK
  GPIO 01: level=1 fsel=6 alt=2 func=DE
  GPIO 02: level=1 fsel=6 alt=2 func=LCD_VSYNC
  GPIO 03: level=1 fsel=6 alt=2 func=LCD_HSYNC
  GPIO 04: level=0 fsel=6 alt=2 func=DPI_D0
  GPIO 05: level=0 fsel=6 alt=2 func=DPI_D1
  GPIO 06: level=0 fsel=6 alt=2 func=DPI_D2
  GPIO 07: level=0 fsel=6 alt=2 func=DPI_D3
  GPIO 08: level=0 fsel=6 alt=2 func=DPI_D4
  GPIO 09: level=0 fsel=0 alt=  func=INPUT
  GPIO 10: level=0 fsel=0 alt=  func=INPUT
  GPIO 11: level=0 fsel=0 alt=  func=INPUT
  GPIO 12: level=0 fsel=6 alt=2 func=DPI_D8
  GPIO 13: level=0 fsel=6 alt=2 func=DPI_D9
  GPIO 14: level=0 fsel=6 alt=2 func=DPI_D10
  GPIO 15: level=0 fsel=6 alt=2 func=DPI_D11
  GPIO 16: level=0 fsel=6 alt=2 func=DPI_D12
  GPIO 17: level=0 fsel=6 alt=2 func=DPI_D13
  GPIO 18: level=0 fsel=2 alt=5 func=PWM0
  GPIO 19: level=1 fsel=2 alt=5 func=PWM1
  GPIO 20: level=0 fsel=6 alt=2 func=DPI_D16
  GPIO 21: level=0 fsel=6 alt=2 func=DPI_D17
  GPIO 22: level=0 fsel=6 alt=2 func=DPI_D18
  GPIO 23: level=0 fsel=6 alt=2 func=DPI_D19
  GPIO 24: level=0 fsel=6 alt=2 func=DPI_D20
  GPIO 25: level=0 fsel=0 alt=  func=INPUT
  GPIO 26: level=0 fsel=0 alt=  func=INPUT
  GPIO 27: level=0 fsel=0 alt=  func=INPUT

 

And here is my complete stolen together config.txt file. I've changed the frequency to 9.6 MHz as baldengineer suggested here: https://www.element14.com/community/people/baldengineer/blog/2018/03/13/screen-success

 

dtparam=i2c_arm=off
#dtparam=i2s=on
dtparam=spi=off

dtparam=audio=on
gpu_mem_256=128
gpu_mem_512=256
gpu_mem_1024=256
overscan_scale=1

# usb network
#dtoverlay=dwc2

# enable the DPI display
enable_dpi_lcd=1
display_default_lcd=1

# Set screen size and any overscan required

overscan_left=0
overscan_right=0
overscan_top=0
overscan_bottom=0
framebuffer_width=480
framebuffer_height=272

# set up the size to 480x272
dpi_group=2
dpi_mode=87

# set up the hsync/vsync/clock polarity and format
dpi_output_format=0x7F013

# set up the size to 480x272
hdmi_timings=480 0 40 48 88 272 0 13 3 32 0 0 0 60 0 9600000 3

  • Sign in to reply

Top Comments

  • baldengineer
    baldengineer over 7 years ago +2
    A couple of notes I made but didn't include in my post: Look at the screen from a few angles. Sometimes I would see white, but when I went looked off-axis I could see noise lines. If you see noise lines…
  • binaryben
    binaryben over 7 years ago +2
    I am super glad to see I wasn't the only one having screen issues, and also not the only one forgetting simple things... makes me feel oddly calmer. Glad to see your build is going well now though davedarko…
  • davedarko
    davedarko over 7 years ago in reply to binaryben +1
    Thanks I wanted anyone who like me has never done this before to see how to tackle it. I've spend half a day trying to figure out where to solder what and the other half how to make it work, so I thought…
  • rocits
    rocits over 7 years ago

    Nice one Dave ! Great to see it all came together eventually with the monitor! Thanks for the shout out on the video, good chatting with ye! .. May the spirit of HeckGyver be always with you .. or Mom probably better! lol =D

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • davedarko
    davedarko over 7 years ago in reply to binaryben

    Thanks image I wanted anyone who like me has never done this before to see how to tackle it. I've spend half a day trying to figure out where to solder what and the other half how to make it work, so I thought I would share! I'm currently soldering up the USB hub etc. and then put it together with the least amount of hot glue I can get away with image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • binaryben
    binaryben over 7 years ago

    I am super glad to see I wasn't the only one having screen issues, and also not the only one forgetting simple things... makes me feel oddly calmer.

     

    Glad to see your build is going well now though davedarko! image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 7 years ago

    A couple of notes I made but didn't include in my post:

     

    Look at the screen from a few angles. Sometimes I would see white, but when I went looked off-axis I could see noise lines.

     

    If you see noise lines, try changing the hsync and vsync polarity bits of the dpi_output_format variable.

     

    Sorry, but I didn't follow where you got your screen from. For mine, I didn't have a datasheet, so I ended up doing a lot of iterations.

     

    If you start changing porch and pulse variables, only change 1 at a time. Get ready for lots of reboots. For the horizontal, I went in increments of 5 or 10. For vertical I would go in increments of 1 or 2. As I recalled, adjusting the front_porch, especially horizontal, was when I started finding my correct timings.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • davedarko
    davedarko over 7 years ago in reply to genebren

    it's not working though image I'm out of ideas for today, too.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
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