bigtreetech / bigtreetech/CB1

HDMI-Display with SPI-Touch working on CB1?

Open
#87 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
496
Forks
86
PR merge metrics
No merged PRs in 30d

Description

Hello there,
is there any way, to get a HDMI Display with SPI-Touch working on a CB1?
I have this display (https://www.amazon.de/Elecrow-Aufl%C3%B6sung-Touchscreen-Monitor-Raspberry/dp/B013JECYF2/ref=asc_df_B013JECYF2?tag=bingshoppin0b-21&linkCode=df0&hvadid=80195686177042&hvnetw=o&hvqmt=e&hvbmt=be&hvdev=c&hvlocint=&hvlocphy=&hvtargid=pla-4583795261686830&psc=1) and can see the image of Klipperscreen on my CB1, but the touch function does not work.

Then I additionally connected the SPI Interface of the display to the GPIO-Header of my M4P like this:
+-Display--+-M4P/CB1-+
|------------|-------------|
| CS | (7) PC7 |
| MOSI | (19) PH7 |
| MISO | (21) PH8 |
| SCK | (23) PH6 |
+------------+------------|

In /boot/BoardEnv.txt I added following lines:
_# CONFIG FOR ELECROW 5 INCH TFT DISPLAY
#overlays=tft35_spi25
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 400 60 6 0 0 0
dtparam=spi=on
dtparam=i2c_arm=on

dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
dtoverlay=w1-gpio-pullup,gpiopin=4,extpullup=1_

But the Touch-Screen does not react. Any ideas what I am missing?

Any help is appreciated! :)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the /boot/BoardEnv.txt settings and the stated SPI wiring between the display and M4P/CB1. Check how the configured ads7846 overlay maps CS, penirq, and SPI pins, and whether the display’s touch input is detected. Done means the touch screen responds while the HDMI image continues to work.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.