Author Topic: Trip / MPG Computer  (Read 143234 times)

Offline wmax351

  • ^ Quintessential Motobricker
  • Posts: 1237
Re: Trip/MPG Computer
« Reply #25 on: May 08, 2012, 05:10:44 AM »
It is compatible with anything that has fuel injection and some sort of signal for distance. It detects the rising and falling voltage on the injectors. It counts pulses for the wheel position. In our case, I will use a circuit to condition the raw speed sensor input into something usable for the computer.

I will likely get the PCB's machined through http://www.batchpcb.com/. Low setup fee, and good prices for smaller batches.



  • Albuquerque, NM
  • 91 BMW K75 Standard, 98 Moto Guzzi California EV
Bikes:
Current:1991 BMW K75 Standard, 1998 Moto Guzzi California EV11
Past: '83 BMW R65LS, '75 Honda CB550F, '69 Honda CB175, 1999 Royal Enfield Bullet 500, 1973 Triumph Tiger TR7V, 1971 BMW R75/5 in Toaster outfit, 1979 Harley Davidson XLS-1000 Sportster Roadster

Offline thebob

  • ^ Motobrick Curious
  • Posts: 70
  • K100RS
Re: Trip/MPG Computer
« Reply #26 on: May 08, 2012, 09:46:27 AM »
:giggles Will it measure in proper gallons or US?

You can customize it to show buckets per fortnight!
1984 K100RS Japan Motobrick!

Offline frankenduck

  • Adrninistrator
  • ^ Quintessential Motobricker
  • Posts: 5511
Re: Trip/MPG Computer
« Reply #27 on: May 08, 2012, 10:04:55 AM »
Will it measure wheelie angles too?  I like to 12 o'clock my K75. :k75s
Once I had a Collie pup. Dug a hole and covered him up. Now I sit there by the hour. Waiting for a Collie-flower.
New to K bikes? Click here.
K Bike Maintenance & Mods: Click here.
Buy parts here.

Offline Duc750

  • ^ Proficient Motobricker
  • Posts: 132
Re: Trip/MPG Computer
« Reply #28 on: May 08, 2012, 10:25:39 AM »
An accelarometer could be good fun!
I have to say though when thinking about thing like this my (now long distant) past experience of gliging comes to mind where the most important instrument is the bit of yarn taped to the canopy in front of your nose!
2001 K1100LTIC not even run it at 52K
1994 Duc 907ie
1998 R850R
1987 Duc 750 Paso

Offline mystic red

  • Retired Professsional Driver
  • ^ Quintessential Motobricker
  • Posts: 2922
Re: Trip/MPG Computer
« Reply #29 on: May 08, 2012, 11:22:56 AM »
boys, boys, boys.......... :nono

Offline wmax351

  • ^ Quintessential Motobricker
  • Posts: 1237
Re: Trip/MPG Computer
« Reply #30 on: May 08, 2012, 06:30:33 PM »
An accelarometer could be good fun!
I have to say though when thinking about thing like this my (now long distant) past experience of gliging comes to mind where the most important instrument is the bit of yarn taped to the canopy in front of your nose!

http://www.sparkfun.com/products/9269
  • Albuquerque, NM
  • 91 BMW K75 Standard, 98 Moto Guzzi California EV
Bikes:
Current:1991 BMW K75 Standard, 1998 Moto Guzzi California EV11
Past: '83 BMW R65LS, '75 Honda CB550F, '69 Honda CB175, 1999 Royal Enfield Bullet 500, 1973 Triumph Tiger TR7V, 1971 BMW R75/5 in Toaster outfit, 1979 Harley Davidson XLS-1000 Sportster Roadster

Offline sh00ter

  • ^ Proficient Motobricker
  • Posts: 320
Re: Trip/MPG Computer
« Reply #31 on: May 08, 2012, 07:12:11 PM »
An accelarometer could be good fun!
I have to say though when thinking about thing like this my (now long distant) past experience of gliging comes to mind where the most important instrument is the bit of yarn taped to the canopy in front of your nose!

http://www.sparkfun.com/products/9269

Thinking an arduino based option?
'94 1100 RS

Offline wmax351

  • ^ Quintessential Motobricker
  • Posts: 1237
Re: Trip/MPG Computer
« Reply #32 on: May 08, 2012, 07:22:00 PM »
The whole thing is already arduino based. (well, atmega AVR based. the programming is arduino. )

My prototype is using an arduino UNO clone. My final one will be a standalone ATmega with a power supply and external clock (16mhz).

Its a great setup. Makes microcontrollers really accesible.

unfortunatley, pretty much all of the inputs/outputs are taken with the mpguino. so something like an accelerometer would be out of the question without a separate controller.

I am planning to make some instrumentation for my bike based on attiny microcontrollers as well.
  • Albuquerque, NM
  • 91 BMW K75 Standard, 98 Moto Guzzi California EV
Bikes:
Current:1991 BMW K75 Standard, 1998 Moto Guzzi California EV11
Past: '83 BMW R65LS, '75 Honda CB550F, '69 Honda CB175, 1999 Royal Enfield Bullet 500, 1973 Triumph Tiger TR7V, 1971 BMW R75/5 in Toaster outfit, 1979 Harley Davidson XLS-1000 Sportster Roadster

Offline johnny

  • TrailBrakingThrottleWhacker
  • ^ Quintessential Motobricker
  • Posts: 7652
  • Whacking...n...Chopping Sliding...n...High Siding
Re: Trip/MPG Computer
« Reply #33 on: May 08, 2012, 07:52:48 PM »
i typically run an accelerometer... i call it the mickster...

j o
  • :johnny i parks my 96 eleven hundert rs motobrick in dodge county cheezconsin  :johnny

Offline thebob

  • ^ Motobrick Curious
  • Posts: 70
  • K100RS
Re: Trip/MPG Computer
« Reply #34 on: May 10, 2012, 06:39:54 AM »

It can be set to do either (just figure out how many microseconds/gallon (UK or US) the injectors flow.). There is also a metric version of the code. I believe that does L/100km.


From what I can gather V.86 has the metric code but it is // refed out so it would be easy to burn metric chips.

The US/Imp conversion is trivial during setup.

I've just ordered a "Jellybean" version for my car http://www.dschmidt.com/MPGuinoJBD.html

Beware this LCD is in no way waterproof!


He is selling a bare unit with no case and his board pins out the unused legs on the ATmega, but using them would need you to write some code.

Your post has inspired me to buy an arduino Uno, I'm stunned at the possibilities of this open source platform.

I'm looking forward to your project. Why don't you start a build thread, and detail your board design and fabrication.

Remotely mounting the switches near the left handgrip, might be a cool option.
1984 K100RS Japan Motobrick!

Offline wmax351

  • ^ Quintessential Motobricker
  • Posts: 1237
Re: Trip/MPG Computer
« Reply #35 on: May 10, 2012, 12:33:18 PM »

It can be set to do either (just figure out how many microseconds/gallon (UK or US) the injectors flow.). There is also a metric version of the code. I believe that does L/100km.


From what I can gather V.86 has the metric code but it is // refed out so it would be easy to burn metric chips.

The US/Imp conversion is trivial during setup.

I've just ordered a "Jellybean" version for my car http://www.dschmidt.com/MPGuinoJBD.html

Beware this LCD is in no way waterproof!


He is selling a bare unit with no case and his board pins out the unused legs on the ATmega, but using them would need you to write some code.

Your post has inspired me to buy an arduino Uno, I'm stunned at the possibilities of this open source platform.

I'm looking forward to your project. Why don't you start a build thread, and detail your board design and fabrication.

Remotely mounting the switches near the left handgrip, might be a cool option.

The Jellybean version looks like a good setup. Very bare bones, though. You may need a VR conditioner circuit for your speed sensor, because the arduino expects a square wave, 5volt speed sensor reading.
  • Albuquerque, NM
  • 91 BMW K75 Standard, 98 Moto Guzzi California EV
Bikes:
Current:1991 BMW K75 Standard, 1998 Moto Guzzi California EV11
Past: '83 BMW R65LS, '75 Honda CB550F, '69 Honda CB175, 1999 Royal Enfield Bullet 500, 1973 Triumph Tiger TR7V, 1971 BMW R75/5 in Toaster outfit, 1979 Harley Davidson XLS-1000 Sportster Roadster

Offline Duc750

  • ^ Proficient Motobricker
  • Posts: 132
Re: Trip/MPG Computer
« Reply #36 on: May 10, 2012, 12:57:26 PM »
It wasn't a serious request for an accelerometer by the way. The comment about wool was serious though I'm considering taoping some to the screen on the brick but the only time I can think about the yaw angle being far enough out of balance with the bank angle a soft hedge detector could be more useful
2001 K1100LTIC not even run it at 52K
1994 Duc 907ie
1998 R850R
1987 Duc 750 Paso

Offline mystic red

  • Retired Professsional Driver
  • ^ Quintessential Motobricker
  • Posts: 2922
Re: Trip/MPG Computer
« Reply #37 on: May 10, 2012, 12:59:29 PM »
Now if it will work of both jetronic and motronic its useable for all K and a lot or oilheads too, if that's the case I may be in for two or 3
As far as case material goes have you thought of cnc machined? Its surprisingly cheap for small batches. I will measure the map light this week and have mad a note to measure the depth available when I do the next service in a couple of weeks

This is the ideal place to mount on the LT. Right in the line of site, available power right there, and replace a light I may have used twice since I've owned the bike. That being said getting a proper fit and mount might be problematic.

Offline thebob

  • ^ Motobrick Curious
  • Posts: 70
  • K100RS
Re: Trip/MPG Computer
« Reply #38 on: May 10, 2012, 07:06:15 PM »
The Jellybean version looks like a good setup. Very bare bones, though. You may need a VR conditioner circuit for your speed sensor, because the arduino expects a square wave, 5volt speed sensor reading.

I'm going to use that one in my car! I presently use a Pivot accelerometer that is hooked into the VSS to show when I'm being too heavy footed. It should be easy to hook up because I have already identified the VSS in my car. But it will be a good platform to try and modify the code.

I like the "jellybean" because he has given the chance to add other sensors. I think an engine temp sensor and a knock sensor would be useful, but this will just be a test bed for me. A digital compass would be cool.

And a BMW "K" splash screen would add to "Bling" factor.

I think keeping the unit slim enough for a handlebar mount would be worthwhile for those with smaller fairings.

Some people have used sensors from bicycle computers instead of the VSS. This could be handy if you were intending to fit to different vehicles, and for those nervous about tapping into their already sensitive meters. It would also be useful for those with broken speedos.

If your VSS input conditioner could be jumpered off, your unit could have wider applications.

For "Wow factor" one of the transparent LCD's in the screen would look ubercool.
1984 K100RS Japan Motobrick!

Offline frankenduck

  • Adrninistrator
  • ^ Quintessential Motobricker
  • Posts: 5511
Re: Trip/MPG Computer
« Reply #39 on: May 10, 2012, 07:28:21 PM »
Now if it will work of both jetronic and motronic its useable for all K and a lot or oilheads too, if that's the case I may be in for two or 3
As far as case material goes have you thought of cnc machined? Its surprisingly cheap for small batches. I will measure the map light this week and have mad a note to measure the depth available when I do the next service in a couple of weeks

This is the ideal place to mount on the LT. Right in the line of site, available power right there, and replace a light I may have used twice since I've owned the bike. That being said getting a proper fit and mount might be problematic.

It's the same part as a dome light out a 3 series car. 63311376046
Once I had a Collie pup. Dug a hole and covered him up. Now I sit there by the hour. Waiting for a Collie-flower.
New to K bikes? Click here.
K Bike Maintenance & Mods: Click here.
Buy parts here.

Offline thebob

  • ^ Motobrick Curious
  • Posts: 70
  • K100RS
Re: Trip/MPG Computer
« Reply #40 on: May 11, 2012, 07:07:38 AM »
I think the main reason that this project fizzled out  is that the fundamentallogic store closed down.I  have no idea why but their kit, and also their board for the iduino is no longer available.

One of their dealers  at wulfden.org still sell a kit called "RBBB Freeduino Kit" (really bare bones) http://www.wulfden.org/TheShoppe/freeduino/rbbb.shtml for $15 shipped.

This seems to be one of the only kits out there that could replace the iduino. I'd be interested to hear your ideas about board/component choice.

I cant find an LCD with a flush PCB. Reducing bezel size would make for a much better installation.
1984 K100RS Japan Motobrick!

Offline wmax351

  • ^ Quintessential Motobricker
  • Posts: 1237
Re: Trip/MPG Computer
« Reply #41 on: May 11, 2012, 01:13:14 PM »
Iduino is an easy assembly. I was going to etch out a pcb, and make one.

My board will be a bare bones arduino, with a VR conditioner circuit added.

  • Albuquerque, NM
  • 91 BMW K75 Standard, 98 Moto Guzzi California EV
Bikes:
Current:1991 BMW K75 Standard, 1998 Moto Guzzi California EV11
Past: '83 BMW R65LS, '75 Honda CB550F, '69 Honda CB175, 1999 Royal Enfield Bullet 500, 1973 Triumph Tiger TR7V, 1971 BMW R75/5 in Toaster outfit, 1979 Harley Davidson XLS-1000 Sportster Roadster

Offline DRxBMW

  • ^ SuperNatural Motobricker
  • Posts: 902
Re: Trip/MPG Computer
« Reply #42 on: May 11, 2012, 01:43:09 PM »
Iduino is an easy assembly. I was going to etch out a pcb, and make one.

My board will be a bare bones arduino, with a VR conditioner circuit added.

Ha, I presumed Arduino was a Greek or Italian motorcycle design ______.  :bmwsmile :bmwsmile

Ever hear of the Mebea ?

http://cybermotorcycle.com/euro/greek_motorcycles.htm



Count me in for a computer please, ______________ thanks.

Gary
Williamsport,Pa

1994 K 75 ABS "custom"
2005 F 650 GS

Offline healthy

  • ^ Motobrick Curious
  • Posts: 59
  • get up!
Re: Trip/MPG Computer
« Reply #43 on: May 11, 2012, 03:55:20 PM »
I've done a decent amount of work with AVR based systems (built several 3d printers as a project over the last few years, now i have a bike to focus on.)

the RBBB is from moderndevice.com originally. i've used several (and a couple of BBBs too. larger formfactor, but easier to plug in some things like servos) there are also tons of sensors on there too, but i couldn't find any accelerometers that happen to be I2c, which might help with the lack of pins thing. otherwise, you can always push up to one of the big brothers. sanguino, arduino mega, etc. same programming interface, so it doesn't actually add any complexity, just size, unless you go for surface mount versions on a custom board.

let me know if i can help in any way.
1986 K75T, her name is JEZ.
and now a 1996 K75, BUE.

Rick G

  • Guest
Re: Trip/MPG Computer
« Reply #44 on: May 13, 2012, 01:56:57 AM »
The $100 to $150 sounds good. Put me in for one provided that a metric one is available.

Offline thebob

  • ^ Motobrick Curious
  • Posts: 70
  • K100RS
Re: Trip/MPG Computer
« Reply #45 on: May 13, 2012, 11:11:24 PM »
Iduino is an easy assembly. I was going to etch out a pcb, and make one.

My board will be a bare bones arduino, with a VR conditioner circuit added.

Are you going to share your VR conditioner? Are you going to make your board design available?

It would be nice to find an LCD with bezel that doesn't have, a large PCB sticking out behind it.
1984 K100RS Japan Motobrick!

Offline wmax351

  • ^ Quintessential Motobricker
  • Posts: 1237
Re: Trip/MPG Computer
« Reply #46 on: May 14, 2012, 07:05:16 PM »
Iduino is an easy assembly. I was going to etch out a pcb, and make one.

My board will be a bare bones arduino, with a VR conditioner circuit added.

Are you going to share your VR conditioner? Are you going to make your board design available?

It would be nice to find an LCD with bezel that doesn't have, a large PCB sticking out behind it.


I will take a look for some other LCD's. They need to have a certain LCD driver circuit to interface, but any that use that specification should work. Unfortunately, I haven't seen any without the PCB sticking out.

I am planning to have the entire thing stuck into an enclosure, with a clear window for the LCD. This will make the device water resistant.

http://www.newhavendisplay.com/specs/NHD-0216K1Z-FSR-GBW-L.pdf Anything that uses the 4-bit implementation for the controller will be compatible with the libraries.

My main goal is to have this be a pretty much plug and play setup. I hope to set up connectors that patch in, so no (or minimal) tapping of wires is required.

These are the LCD's which will be compatible: http://www.mouser.com/Search/Refine.aspx?FS=TRUE&N=10973347+4294631178+4294718035+1323043
  • Albuquerque, NM
  • 91 BMW K75 Standard, 98 Moto Guzzi California EV
Bikes:
Current:1991 BMW K75 Standard, 1998 Moto Guzzi California EV11
Past: '83 BMW R65LS, '75 Honda CB550F, '69 Honda CB175, 1999 Royal Enfield Bullet 500, 1973 Triumph Tiger TR7V, 1971 BMW R75/5 in Toaster outfit, 1979 Harley Davidson XLS-1000 Sportster Roadster

Offline wmax351

  • ^ Quintessential Motobricker
  • Posts: 1237
Well, still having issues getting the LM1815 to work. Running it with Karamba (the speedo calibration application) didn't provide a response.

However, the good news is that it appears that the turn signal relay output is the 6 volt square wave that also drives the speedometer head.

http://www.datasheetcatalog.org/datasheets/700/489248_DS.pdf


http://ibmwr.org/ktech/speedo.gif

With this being the case, my prototype should be working as soon as I get back to Berkeley.

This also should reduce the cost of the device, as the LM1815 chip is about 5 bucks each, with ancillary components costing another dollar or two.

At this point I will start developing the circuit board and enclosure. I plan to make it waterproof or water resistant. I will also use a waterproof connector for the four input pins, if possible.
  • Albuquerque, NM
  • 91 BMW K75 Standard, 98 Moto Guzzi California EV
Bikes:
Current:1991 BMW K75 Standard, 1998 Moto Guzzi California EV11
Past: '83 BMW R65LS, '75 Honda CB550F, '69 Honda CB175, 1999 Royal Enfield Bullet 500, 1973 Triumph Tiger TR7V, 1971 BMW R75/5 in Toaster outfit, 1979 Harley Davidson XLS-1000 Sportster Roadster

Offline wmax351

  • ^ Quintessential Motobricker
  • Posts: 1237
The next question is which color options do people want for the LCD?

http://www.mouser.com/ProductDetail/Newhaven-Display/NHD-0216CZ-FL-YBW/?qs=3vk7fz9CmNy1FteDlaFx6g%3d%3d

This one seems a little smaller. I don't like green/yellow, but that is just personal preference.

http://www.newhavendisplay.com/nhd02161zfsyybwc-p-868.html

This would be quite good, as it has mounting holes.


http://www.newhavendisplay.com/lcd-character-2-x-16-characters-c-2_82.html

Any of these are compatible.
  • Albuquerque, NM
  • 91 BMW K75 Standard, 98 Moto Guzzi California EV
Bikes:
Current:1991 BMW K75 Standard, 1998 Moto Guzzi California EV11
Past: '83 BMW R65LS, '75 Honda CB550F, '69 Honda CB175, 1999 Royal Enfield Bullet 500, 1973 Triumph Tiger TR7V, 1971 BMW R75/5 in Toaster outfit, 1979 Harley Davidson XLS-1000 Sportster Roadster

Offline thebob

  • ^ Motobrick Curious
  • Posts: 70
  • K100RS
1984 K100RS Japan Motobrick!

Tags: