In this project I have designed and built a system that displays a 3D cube structure on a 2D 1.8 inches diagonal LCD TFT display (128x160 resolution, 18-bit (262,144) color). The LPC1769 uses its SPI Interface to connect with the LCD.It has the MISO, MOSI and the SCK options and therefore is used as a master to interface with a SPI Flash which forms the slave peripheral.
The design prototype:
• LPCXpresso Module 1769(ARCortex-M3)
• Wire Wrapping Board
• Colored Connecting wires
• Soldering rod
• USB cable
• 1.8” TFT LCD
• Power Regulator IC 7805
• Wall mount adaptor
• Adaptor socket
• Capacitors for Power circuit
• Switch
• Led for GPIO circuit
• Resistors for GPIO circuit
The design of this system focuses on implementing the master slave architecture required to carry out SPI communication. The LPCXpresso 1769 is an ARM Cortex-M3 based Microcontroller for embedded applications. The LCD Display module used supports serial peripheral interface(SPI) . The peripheral complement of the LPC1769 includes up to 512 kB of flash memory and up to 64 kB of data memory. It has a low power consumption and wide temperature ranges. The 1.8" display has 128x160 color pixels and it can display full 18-bit color (262,144 shades). Here LPC1769 CPU module will act as the master whereas LCD module acts as the slave. The inputs to the LPC will be in the form MISO Master In Slave out) and that to the LCD module will have the form MOSI (Master out Slave in). The Serial Clock and the Chip Select logic are taken as inputs from the master.
The design schematic is as shown below:
The software part of the intended system includes the LPCXpresso Integrated Development Environment (IDE) and the host computer to run it. The Liquid Crystal Display is configured via software commands given via the IDE. The display operations on LCD demands particular opcodes casted for the specific operations, setting the status registers, various initializations in LPC etc. Inclusion of particular header files is also essential for obtaining desirable results. Also, we have used the dynamics of 3D vector graphics and diffused reflection concepts in our design of 3D cube structure.
The final outcome, the cube structure with top surface having diffused reflection and the 3 visible surfaces having linear decoration on the sides with my name’s initial letters A and C and a tree on the third surface.
Diffuse reflection computed on top cube surface:
Final Cube display:




