I2C sensor and show them on screen

Post Reply
AlexThum
Posts: 5
Joined: Fri Sep 26, 2025 2:46 pm

I2C sensor and show them on screen

Post by AlexThum »

Hi! I have a few I²C sensors connected to my Raspberry Pi and I’d like to display their data on a HUDIY screen. For example, I’m using an altitude sensor and a leveling/IMU sensor, and I want to write a Python program that shows the vehicle’s roll and pitch on the display.
gwynethh
Posts: 29
Joined: Sat Aug 09, 2025 4:53 pm

Re: I2C sensor and show them on screen

Post by gwynethh »

Cool idea. We had hopes of using a VEML7700 as an ambient light sensor and screen dimmer but surprisingly have not been able to find anyone who has done that. Using this I2C device would be an easy hardware interface with the CarPiHat. Sadly coding is way outside of any skills developed in 1970 collage (one semester of Fortran). There seem to be many examples of just reading the ambient light and reporting the result but none on using that data for screen dimming. We will keep looking.
Michal
Posts: 15
Joined: Thu Aug 07, 2025 10:58 am
Location: Slovakia

Re: I2C sensor and show them on screen

Post by Michal »

Hi guys,

I have TSL2561 sensor for automatic brightness of the screen. It works like a charm. I am having a .html file that I display in Hudiy when I click on one of the shortcuts. From there, I can set brighntess (sliderbard), turn on/off services or set dates for when notifications should pop up in Hudiy (when does the e-vignette end, when does the technical service end, etc...).
Hudiy is actually so great in this freedom of customization... ChatGPT is going to be your very best friend as it is for me when it comes to coding html, python, whatever. ;-)
Post Reply