Quote:
Originally Posted by marcoaferrer
subd
do you have a diagram on how you wired this up to your arduino. Im not very experienced arduino, I have an uno but have barely used it. but I do know how to follow instructions and work with the code a bit. 
|
Wiring is all in the source code for the arduino mega to the lcd (it uses high speed SPI).
Code:
//pin reference for tft from;
/*http://webshed.org/wiki/18tftbreakout
eBay Board Adafruit Board Arduino conections
VCC VCC 5V
BKL LITE GND on eBay, 5V on Adafruit
RESET RESET 8
RS D/C 9
MISO MISO 12 (50 for mega)
MOSI MOSI 11 (51 for mega)
SCLK SCLK 13 (52 for mega)
LCD CS TFT CS 10 (53 for mega)
SD CS CARD CS 4
GND GND GND
*/
The mega is weird because it uses different pins for SPI stuff than the standard arduino. I'm using a mega because I included so many libraries that the "sketch" got over the 32k size limitation. The mega uses a bigger chip. It also has multiple serial hookups, so that means you can do uart serial stuff to something like the obd II device at the same time you log to a serial console, which is handy.
Sensors go to whatever analog input on the board you configure them for. The OBD II thing I have yet to buy wires into a Serial connection on the board (the arduino mega has more than one...I have it set at Serial1 now). The obd thing I plan on buying shortly is this:
https://www.sparkfun.com/products/9555
I also just realized I didn't put the github link up before:
https://github.com/stirobot/arduinoModularTFTgauges
Also, last night I got some peaks displaying on the bar charts and I started spacing stuff out for the accelerometer display.
I also started looking into using acrylic to make cases...so I can put this in my car in a prototype sort of way. Something like this:
http://madlabindustries.com/shop/pro...lic-mega-case/
or this
http://www.instructables.com/id/Home...-LED-Displays/
I also updated the first post to make more sense.