UNO digital pin 9 through a 1K2 resistor to display pin 5 (DC/RS), add a 1K8 resistor from display pin 5 to GND.UNO digital pin 7 through a 1K2 resistor to display pin 4 (RESET), add a 1K8 resistor from display pin 4 to GND.UNO +5V through a 56 Ohm resistor to display pin 8 (LED). The UNO is connected to the ILI9241 2.2" TFT display like this: The libraries attached have been enhanced to give a much faster performance on an UNO using direct port access, other boards could be used by commenting out a #define and changing the the SPI pins. The hardware setup is common to some of my other Instructables, it consists of the UNO, the 2.2" TFT display based on the ILI9341 driver chip and a set of libraries that are enhanced versions of the Adafruit GFX and ILI9341 libraries. The displays are best for values that change slowly with time such as temperature and humidity etc. The unlit segments are dark grey (these segments look brighter in the images as I had to adjust the web cam settings to try to capture the display colours.) The sizes are set independently so more important information can be shown with a bigger graphic, or the display could cycle though several meters. The meter position and size can be set as desired to make a meter arrangement that suits your taste. Another display for say a battery level could change from red for a low value, through yellow to green for a high value. The colour of the ring segments can be set to change as the value increases, so this means a display showing temperatures can be set change from blue to red as the temperature increases. The numerical value is shown in the center of the ring, a bit like the Google Nest display. Larger values are shown as more segments being coloured in, thus the display gives an instant visual indication of a reading at a glance without having to read the numbers. The value displayed is shown as a bar graph that can be segmented or continuous.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |