Contents
|
WiringThe initial version of the project supports two types of display. One is a 2 line by 16 character LCD display using a parallel data bus. The other is a 8 digit LED display using SPI for communications. If you do not have either of these types of display, that is OK, the Arduino code is relatively easy to modify to support alternative displays. Instructions are included in the Code page. In the future, I plan to add a TFT display (shield) using the existing code structure. I will update this site when I do that and post updates on reddit, twitter and other social media. The following sections describe the wiring for the two supported display types. Note that the diagrams below are a guide only. There is no standard for where pins on various display modules are actually placed nor is there a standard for how they are arranged. Always check the pinouts for your device and always check the ratings (e.g. voltage) to make sure that your devices are compatible with each other. 2 x 16 LCD Module
The LCD module I used has a parallel bus (4 or 8 bit) based upon a
SSC2A16 (or similar) driver chip.
Important Note: if you use this type of display, you need to make one small change in the Arduino code. Near the top of the SubredditStatsMonitor.ino you will find this code:
// SubredditStatsLCD subredditStats = SubredditStatsLCD(); SubredditStatsLED subredditStats = SubredditStatsLED(); To enable the LCD device, uncomment the first line and comment out (or delete) the second line. So, to enable the LCD variant, modify the code so that it looks like this.
SubredditStatsLCD subredditStats = SubredditStatsLCD(); // SubredditStatsLED subredditStats = SubredditStatsLED(); 8 digit 7 segment LED ModuleThe other display module I used was the 8 digit LED panel. This panel includes a MAX7219 driver chip. The chip receives its instructions and data over an SPI interface and only needs 3 connections (5 if you count power). This module is supported by the LedControl library (v1.0.6) from Eberhard Fahlewhich. This library can be installed using the Arduino IDE's library manager. Connections for the 7 Segment SPI LED Module.
The LEDControl library uses software emulation for the SPI interface. As such, the above connections should work on most, if not all, types of Arduino. |