The Comp-U-Kat is an NXP LPC2148 ARM7 based controller for monitoring various functions on my 2006 Suzuki Katana GSX600F (pictures). It originally started out as intending to be nothing more than an automatic turn signal canceler, a function my 1999 Harley Sportster (pictures) has.
Rapidly thereafter, I started coming up with ideas for additional functionality, such as gear indicator (I keep trying to shift to 7th), oil temperature, oil pressure and voltage monitoring. Why not add a GPS? And support for outside air temperature (OAT) and humidity? And trip logging? And... You get the idea.
Some of the functionality is speculative, such as the cruise control. Most cruise controls seem to be PWM driven. However, the Katana uses a spring-return throttle, rather than a two cable system. This means that you can't override the cruise control servo by simply twisting the throttle back towards the idle position. There has to be some way to forcibly disconnect the servo (perhaps a pull-cord that rips a connector out might work).
One of the flaws of the Katana is that the speedometers typically read 5% high. I have not yet clocked an even mile with a GPS to determine if the odometer is also off, or the odometer is dead-on, and the error is deliberately introduced into the speedometer. There are a couple after-market correction kits  , but the question arises that since they're re-timing the VSS line, are they then introducing a 5% low error into the odometer? I'd rather live with a speedometer error than an odometer error. Depending on the results, the idea was to have the Comp-U-Kat be able to re-pulse the VSS line so the speedometer displays correctly.
Originally I had intended to determine the gear position based on RPM and speed. This works well as long as the clutch is not pulled in. There are a couple units on the market that can display the gear position by deriving it this way  . Some users have reported that they have lag, and if you pull in the clutch and downshift, they have no idea what gear you're now in. I find this to be sub-optimal. Some of the older Suzukis had gear position indicators, and did this via a plate with 6 or 7 contacts (neutral plus 5 or 6 gear positions). It is claimed that the gear position indicator from the older bikes will work on the later models, so I'd prefer to use that and get absolute gear position indication, regardless of speed, clutch pull-in, etc. Suzuki part number 37720-45100 is a 6-speed position sender. Got one off of eBay, waiting for it to arrive.
The current plan is to have a display on the dash, and the controller located under the seat, in the stowage box. All connections to the bikes wiring harness should be easily disconnected, with minimal impact on the original wiring.
The LPC2148 processor has 512K of flash, 32K of RAM, 2 UARTs, USB, and a host of other functions. The processor runs FreeRTOS as its OS, with several tasks to take care of the GPS, position logging, the display, and other miscellaneous functions.
- After working on the Flight_Engine_Data_uP, I am becoming inclined to switch from the LPC-2148 to the LPC-2468 for the Comp-U-Kat. Price isn't a factor, and I've got a lot more extra pins. I'll put the core functionality on the main board, and put mezzanine connectors for a daughter card to handle future functions. I am also considering adding support for thermocouples for exhaust gas temperatures (EGT).
- The 37720-45100 gear position indicator is not the same diameter as the stock neutral-only sensor. Now I need to find something else, or fab one up.
- Installed the VDO sensor into an aluminum box along with a thermocouple. Put the unit in the oven, heated it to 410F, then started taking resistance readings on the way down. Found a correct curve after much searching and cross-referencing part numbers. My readings are well within spec.
- Found 37720-45100 gear position indicator on eBay
- Very little has been accomplished. In the process of starting this project, I ended up developing the LPC2148 demo code package. I have prototyped the display using a PIC 18F4620 processor to drive the HDSP-2112 displays. LPC2148 pin assignments have been completed, although this needs some review. I need to learn to properly interface the oil temperature sensor (a VDO #1-531-006-657D), then I can start drawing the schematics.
- Gear indicator
- Oil temperature
- Oil pressure
- Battery voltage
- Charge current
- Turn signal auto-canceler
- Cruise control
- Controller temperature
- Outside temperature
- Wind chill factor
- Other possible functions
- Speedometer correction
- Data/trip logger
- Fuel totalizer
- Shift indicator
- Alarm system
- Relay output for... what?
- Turn signal canceler detects burned out bulbs
- Clutch, brake, or neutral keeps turn signals from canceling
- Canceling can be flash, distance or time based
- Speed trap warning (requires GPS)
- Dewpoint alarm
- Oil over-temp alarm
- Oil temperature high limit recording
- High/low voltage alarm
- Under/over current alarm
- Distance to service notification (oil, chain lube, etc)
- User trip time/distance logging (GPS not required)
- Last trip time/distance (GPS not required)
- Trip time/distance since fill-up (GPS not required)
- Trip logging (GPS required)
- Selectable units (F/C, lbs/kpas, etc)
- Neutral switch
- Brake light
- Turn signal relay
- Oil pressure sensor (?)
Currently my thinking is to make the main board the data collector, and then continuously send the collected data to the display board.
The switches for controlling the display could be supported on either the main board (remote switches) or the display board (local switches). The single line LED display would likely use remote switches. For a graphics display, with a custom bezel, local switches might be on either side of the display. For remote switches, the key presses would be embedded in the data stream going to the display.
- NXP LPC-2148 processor (or maybe LPC-2468)
- ET-312 SiRF III GPS receiver 
- MMC/SD card connector (not exposed)
- SHT1x humidity/temperature sensor 
- AT24C1024 64Kx8 NVRAM
- LM5576 switching regulator (6-70V in, 3.3V @ 3A out)
- Lithium coin cell for real time clock
- Floscan 20B 201-019-01 fuel flow sensor 
- CPU tasks
- Monitor (partially done)
- Display / user interface
- Sensor gathering
- GPS parser
- Support code
- FAT file system support
- USB support (done)
- UART support (done)
|Function||Type||Pin||Unit Name||Alternate Functions|
|Real time clock||I2C||P0.2,P0.3||SCL0,SDA0||(none)|
|Cruise control servo||PWM||P0.7||PWM2||EINT2|
|Turn signal blinker||Output||P1.24||P1.24||(none)|
|Oil pressure switch||Input||P0.30||EINT3||CAP0.0/AD0.3|
|User switch 1||Input||P0.25||P0.25||AD0.4|
|User switch 2||Input||P0.11||P0.11||CAP1.1|
|User switch 3||Input||P0.5||P0.5||AD0.7|
|User switch 4||Input||P1.22||P1.22||(none)|
|Gear indicator 1st (alternate)||Input||P1.16||P1.16||(none)|
|Gear indicator 2nd (alternate)||Input||P1.17||P1.17||(none)|
|Gear indicator 3rd (alternate)||Input||P1.18||P1.18||(none)|
|Gear indicator 4th (alternate)||Input||P1.19||P1.19||(none)|
|Gear indicator 5th (alternate)||Input||P1.20||P1.20||(none)|
|Gear indicator 6th (alternate)||Input||P1.21||P1.21||(none)|
|Unused CPU pin||P0.21||PWM5/AD1.6/CAP1.3|
|Unused CPU pin||P0.31||UP_LED/CONNECT|
|Unused CPU pin||P1.25||(none)|
Shift Indicator Assemblies
Dimensions of the correct unit are 50mm center-to-center of the mounting holes, and 36mm diameter of the insert.
- 37720-20C00 (neutral only, stock part for GSX600F) 
- 37720-48B00 (neutral only, from GSX750F)
- 37720-20C00 (neutral only, from GSX750F) (2006, also)
- 37730-41G01 (from GSXR1000, resistive)  
- 37720-24A01  - 6 speed from GS1100, supposedly can replace with 37720-48B00, which replaces the 37720-20C00
- 37720-49211 (from GS1150)  (superseded by 37720-24A01)
- 37720-20C10 (from Bandit) 
- 37720-09300   - 6 speed from '80 GS1100ex (supersedes 37720-49200)
- 37720-45100 - 6 speed indicator, too small
- 37720-31301 - 5 speed indicator, probably too small
VDO Oil Temperature Sender
VDO 323-050 -- Test setup, Lew's comments in interfacing
VDO #1-531-006-657D 400F 1/8-27NPT P/N 323-050 10-180 ohms 10=0F, 180=400F .250" spade lug mount
|VDO #||Size||Marking||Has TC||Book A||Book B||Other #||Comments|
|323-801-003-002D||M10 x 1||801/3/2||Y||Y||N||323-090|
|323-801-003-001D||M10 x 1.5||801/3/1||Y||Y||Y||323-091|
|323-801-007-002D||M14 x 1.5||--||Y||Y||N||?|