r/GraphicsProgramming • u/bkidcudder • Nov 15 '19
Question Modern Touchscreen User Interface for Fully Controllable Humidified Orbital Shaker
Hey guys,
I am trying to build a modern-looking user interface for my senior design project using a Raspberry Pi. I like coding a lot but I have never designed a user interface before and kind of do not know where to begin.
As background, I am making a humidified orbital shaker where the user inputs the desired RPM and temperature while maintaining a relative humidity of 100%. My team, consisting of three mechanical engineers, already have the design done on CAD programs. Right now, we are learning how to wire the motor, humidifier, heating element and sensors to the Arduino which will be connected to the Raspberry Pi and touch screen for a user interface to input parameters. Our client would like to use this fixture for her research, so I would like it to be strictly running this app!
My research has led me to "Kivy" and after going through the gallery, I really like the look, and that it is possible to link my fixture to this interface. Am I right in thinking it is possible to link the user interface to my fixture using Kivy? Please give any advice, some good books, sites, tutorials, anything and everything to help me build the interface and link it to this fixture, if possible! How long do you think it will take for a somewhat beginner coder ( I am a really fast learner!)?
1
u/coldnebo Nov 15 '19
Kivy requires Python and may require operating system support for touch apart from what Arduino has.
I recommend building up your requirements like this:
is the arduino driving the touch UI on the panel as well as the other hw? yes?
is the panel supported with Arduino? yes?
use the native Arduino library for writing the touch panel code.
If you pick capabilities first rather than hardware requirements, you may have a lot of integration pains later on. Touch is completely different in the details for IOS, Surface, and embedded. They share some high-level concepts, but the integration of hardware and software is completely different.
You can program Arduino using Python, but will Kivy run on it? Will Kivy be able to drive the touch panel hw? I would start with those questions before getting too far into one tool or another.
If you want basic tutorials and code, I would strongly recommend Processing. (Processing is the base of the Arduino IDE, so it should be familar). In their examples section, you should be able to find touch examples — this may give you a high level flavor of coding that may be similar to an embedded panel lib in Arduino, but beware! The Arduino version is going to be different, so be prepared to rewrite!
Good luck!
10
u/LivelyLizzard Nov 15 '19
I feel like this is not the right sub for asking for UI tutorials...