• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Home Assistant Kiosk mode Rpi0w + ili9341 3.2" 3D Printer File Image 1
Home Assistant Kiosk mode Rpi0w + ili9341 3.2" 3D Printer File Image 2
Home Assistant Kiosk mode Rpi0w + ili9341 3.2" 3D Printer File Image 3
Home Assistant Kiosk mode Rpi0w + ili9341 3.2" 3D Printer File Thumbnail 1
Home Assistant Kiosk mode Rpi0w + ili9341 3.2" 3D Printer File Thumbnail 2
Home Assistant Kiosk mode Rpi0w + ili9341 3.2" 3D Printer File Thumbnail 3

Home Assistant Kiosk mode Rpi0w + ili9341 3.2"

Electronlibre avatarElectronlibre

August 13, 2021

thingiverse-icon
DescriptionCommentsTags

Description

EDIT 03/12/2021 : work great now with Rpi 2 W :)

Hello,

this is a HomeAssistant Kiosk mode V1, slow and slow but fully functional, to display the dashboard of home assistant, and in fact, its the lovelace dashboard of my HA server, with touchscreen xpt2046 fully functional.

Print with any support ;) just download the stl file and print!

1-Quick help for the wiring/schematics :
T_IRQ GPIO26 (37)
T_DO SPI1 MISO (35)
T_DIN SPI1 MOSI (38)
T_CS SPI1 CE0(GPIO18) (12)
T_CLK SPI1 SCLK (40)
SDO(MISO) GPIO9(21)
LED GPIO22(15)
SCK SPI0 SCLK GPIO11(23)
SDI MOSI (SPI0) GPIO10(19)
DC GPIO24(18)
RESET GPIO23(16)
CS GPIO8 (CE0)(24)
GND GND
VCC 3.3v VCC(1)

2-link to install kiosk mode with latest raspiOs of may 2021 : https://desertbot.io/blog/raspberry-pi-touchscreen-kiosk-setup

3-for mirroring the HDMI port of the Pi to the ILI9341 screen : link to fbcp-ili9341 setup : https://krystof.io/mirroring-raspberry-pi-hdmi-video-to-a-st7789-1-3-inch-lcd-display/ with the excellent driver from @juj : https://github.com/juj/fbcp-ili9341.git

quick help for config : see "Install Instructions for Option 2 – fbcp-ili9341" :
cmake -DST7789=ON -DARMV6Z=ON -DGPIO_TFT_DATA_CONTROL=24 -DGPIO_TFT_RESET_PIN=25 -DGPIO_TFT_BACKLIGHT=22 -DUSE_DMA_TRANSFERS=OFF -DSPI_BUS_CLOCK_DIVISOR=30 -DSTATISTICS=0 -DDISPLAY_BREAK_ASPECT_RATIO_WHEN_SCALING=ON ..

the mirroring of the HDMI port start after boot of the Pi.

4-Quick help for the touchscreen config : from details of https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=187023

a-Create a file named ads7846-spi1-overlay.dts, paste the content in post #2, compile with
dtc -@ -I dts -O dtb -o ads7846-spi1.dtbo ads7846-spi1-overlay.dts
then
sudo cp ads7846-spi1.dtbo /boot/overlays
then add to /boot/config.txt :
dtoverlay=spi1-1cs,cs0_pin=18,cs0_spidev=off
dtoverlay=ads7846-spi1,penirq=26,penirq_pull=2,speed=50000,swapxy=0 // or 1 if x,y are reverse
dtparam=pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
fbtft_device.rotate=90

then Touch Screen Calibration Tutorial:
3. Execute the following command to update your system:
sudo apt-get update
4. Install the packages to calibrate your touch screen
sudo apt-get -y install xinput libx11-dev libxext-dev x11proto-input-dev evtest dh-autoreconf
libts-bin libxi-dev
5. Download calibration tools from github by executing this command:
cd ~
git clone https://github.com/tias/xinput_calibrator
cd ~/xinput_calibrator
sudo ./autogen.sh
sudo make
sudo make install
6. Calibrating your touch screen:
DISPLAY=:0.0 xinput_calibrator
7.

Section "InputClass"
Identifier "calibration"
MatchProduct "ADS7846 Touchscreen"
Option "MinX" "-4045"
Option "MaxX" "65996"
Option "MinY" "-7054"
Option "MaxY" "65763"
Option "SwapXY" "1" # unless it was already set to 1
EndSection

  1. Create a new folder and save the parameters in the red box of the above picture to the file in
    /etc/X11/xorg.conf.d/99-calibration.conf
    sudo mkdir -pv /etc/X11/xorg.conf.d/
    sudo nano /etc/X11/xorg.conf.d/99-calibration.conf

ENJOY!

ok, its very slow but low power consumption and total cost of 20€...

If you want more power, make it with a used tablet...or a cheap one is about 60€...or put a RPi4...work great but not a cheap solution

License:

Creative Commons - Attribution - Non-Commercial

Related Models

Smart Nanoleaf Replica preview image

Smart Nanoleaf Replica

Surrbradl08 profile image

Surrbradl08

5,166

Grinder preview image

Grinder

Wakahiru_me profile image

Wakahiru_me

547

Gift Box preview image

Gift Box

roby85r profile image

roby85r

1,496

Minimalistic Motorized Roller Blinds - NEMA 17 stepper motor gear and mount preview image

Minimalistic Motorized Roller Blinds - NEMA 17 stepper motor gear and mount

lushey profile image

lushey

3,992

Wall Mount for Fire Tablet HD 10, 13thGen (2023) and 11th Gen (2021) preview image

Wall Mount for Fire Tablet HD 10, 13thGen (2023) and 11th Gen (2021)

RonanWarrior profile image

RonanWarrior

352

Home Assistant Keychain NFC tag preview image

Home Assistant Keychain NFC tag

ma_rcin20 profile image

ma_rcin20

9

ESP32 Screwless Enlosure preview image

ESP32 Screwless Enlosure

gineer profile image

gineer

1,457

Minecraft Ore Lamp (WLED / ESP32 D1 Mini USB-C) preview image

Minecraft Ore Lamp (WLED / ESP32 D1 Mini USB-C)

Rauks profile image

Rauks

1,282