HMI
Raspberry Pi 4 USB-C host mode

Walter Prechtl's picture
by Walter Prechtl last updated 12 December 2020

You can also use the Raspberry Pi 4's USB-C interface, which is normally used to provide a power supply, as a normal USB interface. However, in that case, the Raspberry should supply power via the GPIO pins. You can find clarifications regarding this at https://www.raspberrypi.org/documentation/usage/gpio/. For example, an industrial touch monitor can be connected to the Raspberry Pi 4 via HDMI and USB-C as a touch device. To do this, connect the corresponding cables to the Raspberry and add the following line to the end of the Raspberry configuration file (/boot/config.txt):

dtoverlay=dwc2,dr_mode=host

Instead of being used in host mode, the Raspberry can also be operated via the USB-C port as a peripheral device – e.g., as an Ethernet adapter or as a mass storage device. To do this, add the following line at the end of the Raspberry configuration file (/boot/config.txt):

dtoverlay=dwc2,dr_mode=peripheral

Depending on the intended use, this will require various additional software configuration adjustments. You will find plenty of instructions for this online.

You might also be interested in:

  • Raspberry Pi 4 NetworkManager configuration tool
  • Running Windows .exe in the Qt application
  • Raspberry Pi 4 autostart Qt application during boot
  • Products
    • Embedded HMI
    • Industrial Monitors
    • PCAP touch screen
    • Impactinator® glass
  • Design
  • Development
  • Manufacturing
  • Industries
embedded hmi HMI

embedded hmi

Professional solutions
We develop and produce high-quality professional embedded HMI systems for demanding customers and applications.
More information

Start your Project now

Our mission

We are specialists for customised embedded HMI solutions. We see ourselves as a system supplier and offer our customers individual, innovative and cost-optimised control units.

Blog

Click here for the blog

Haven't found the right thing yet?

Use the search function to conveniently search our website for your topic.
More than 5000 pages of specialist knowledge are waiting for you.

Imprint

  • Choose other language:
  • de
  • dk
  • en
  • fr
  • fi
  • nl
  • no
  • it
  • ru
  • pl
  • br
  • es
  • se
  • tr