Skip to content

ronj/teensy-dash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teensy-dash Build Status Coverage Status

Circuit / code information and documentation.

Display

The display used is ST7735 controlled 1.8" TFT. It use SPI to communicate with the uC. The Teensy has hardware SPI which makes the communication with the display much faster than on the AVR.

NEOPixels

For shift-light and alarm indication a NEOPixel strip is used. Good documentation can be found on the Adafruit website here: https://learn.adafruit.com/adafruit-neopixel-uberguide.

One thing to note is that the pixels need to be driven logically at supply voltage. So when using a 3.3v uC a level shifter is needed. Comparison of level shifters can be found here: http://happyinmotion.com/?p=1247

Rotary encoder

A rotary encoder tutorial can be found here: https://learn.adafruit.com/trinket-usb-volume-knob

Custom dial faces

In the end it may be required to make custom dial faces for the modifications done to the dash. A very exhaustive tutorial can be found here: http://mazda626.net/topic/39309-making-custom-gauge-faces/

Inspiration

Contributing

  1. Fork it (https://github.com/ronj/teensy-dash/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Building teensy-dash

  1. Get a local copy of the repository

Testing

Setting up the integration test environment

On OSX and Linux

  1. Install Cucumber

    • sudo gem update --system

    • sudo gem install rspec

    • sudo gem install gherkin

    • sudo gem install cucumber

  2. Install ruby-serialport

    • sudo gem install serialport

Running the integration tests

  1. Build and upload the Car Simulator (under tests\car_simulator\car_simulator.ino) Arduino Sketch for your favorite Arduino
  2. Upload the sketch
  3. Connect the Car Simulator as follows:
    • Pin 2 of the Arduino running the Car Simulator to the VSS input test-pin on Teensy
    • Pin 3 of the Arduino running the Car Simulator to the RPM input test-pin on Teensy
    • Connect the Arduino and Teensy grounds together