|
Author |
Message |
NutsyUk |
This post is not being displayed .
|
NutsyUk Nearly there...
Joined: 22 Jun 2016 Karma :
|
Posted: 21:55 - 13 Jul 2016 Post subject: Digital Dash Build - My long journey of Geekery |
|
|
Hi guys, I realise trying to flash up my Lexmoto XTRS is like polishing a turd... But Im doing this more for me than the bike. Ive been meaning to get my teeth into some development work and I've been looking for a good excuse. This is it.
So far all I have is a unfinished cad file and a photoshop mockup. Just to show you and have something to aim towards.
So heres the plan, The things going to be running on arduino, maybe 2. Though in the end if things seem too much I might go for a Raspberry Pi.
All the number crunching math will happen on the computer. It will read all the sensor data and throw out a bunch of variables that I could end up using to display...
So the displays. 2 standard dials, controlled by stepper motors with a LED array that follows the pin and changes colour according to certain parameters. The LEDs will be the relatively new addressable RGB diods. feed them power and you only need one pin to run them. Great stuff.
The LCD screen showing some graphics... A Digital read out of MPH, gear selected, signialing, journy miles, fuel level and range estimate, volts and odo/engine miles.
I realise the arduino cant handle all those graphics, so I'm going to use a Nextion display. I'm not sure how far I can push it, it may not support aplha channel bitmaps or pngs. So will see what I can do there. Also its one of the reasons why I might consider a Pi, it could do the graphics.
The enclosure. Im considering getting a cheap 3d printer for about 200 quid. While it wont be the top end quality printer its a good starter for me. And as a 3D artist I've been wanting to get something for a while.
Down the line when I got more money to spare ill get a higher end one.
One of the key features of this speedo is, it reads the MPH from the standard rotating speedo cable. I have worked out a low moving parts way to read the wheel rotations without the need of an extra magnetic hall effect sensor.
I need to find a spare receiver plug for a speedo to hack apart. But I can attach a disk or fan to the end of the cables receiver. This disk will spin, opening and closing the IR beam on an optical sensor. This can be used to extrapolate how many rotations the wheel makes. Using the power of maths, from there you can calculate the speed of the bike.
Because of the low level of contactless moving parts it should have a very very low failure rate. The only thing that can break is the disk coming off the cables receiver. Depending on how many holes I put in the fan/disk I can give it a high rate of accuracy...
This kinda tech is the same stuff used on mouse wheels.
I'm doing this for two other reasons, my mother passed away from cancer this year and its hit us all really hard. I need to keep busy to not let things totally become overwhelming. I'm also going to consider any business opportunities with this as well...
Now this isnt going to be a very quick build. Theres going to be lots of RnD work... I need to learn to program on the arduino (its been a while since i did any programming) and I need to save for things like the 3D printer. But all that after I've paid for all the stuff to get on the road with my bike. (insurance helmet stuff)
Costs... Now the other reason Im going ahead with this is, its going to be relatively cheap to do (other than getting a 3D printer) Its lol cheap...
Arduino clone 5 quid, 100 addressable leds 8 quid, LCD 14 quid (touch screen too so going to have a configuration page on it) wires capacitors resistors and opto sensor 5 quid? 32... Say 40 quid for safety before 3D printer stuff...
So here to begin with is a rather nasty looking photoshop mock up over the unfinished cad.
Im reacquiring my 3D software once its in hand I'll put together some better renders to show...
And I'll keep you all updated as it goes... I think I hope to have this finished by the end of the year. Depends on the 3D printer situation really. ____________________ Yamaha FZ8/Fazer800 (split headlight one) 2014, gingerly getting used to the massive increase in HP and not killing myself in the process! That was easy to get used to.
Kawasaki ER6F 2007 650 Gonna sell as a project bike!
Lexmoto XTR S 125 Sold! |
|
Back to top |
|
You must be logged in to rate posts |
|
|
Beehive Bedlam |
This post is not being displayed because the poster has bad karma. Unhide this post / all posts.
|
Beehive Bedlam World Chat Champion
Joined: 28 Oct 2013 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
RhynoCZ |
This post is not being displayed .
|
RhynoCZ Super Spammer
Joined: 09 Mar 2012 Karma :
|
Posted: 22:13 - 13 Jul 2016 Post subject: |
|
|
What the lad above says, but then, if making it brings you joy, then go for it.
One thing, make sure you pick a display bright enough so it can be used outside in the direct sun light. ____________________ '87 Honda XBR 500, '96 Kawasaki ZX7R P1, '90 Honda CB-1, '88 Kawasaki GPz550, MZ 150 ETZ
'95 Mercedes-Benz w202 C200 CGI, '98 Mercedes-Benz w210 E200 Kompressor |
|
Back to top |
|
You must be logged in to rate posts |
|
|
lihp |
This post is not being displayed .
|
lihp World Chat Champion
Joined: 22 Sep 2010 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
NutsyUk |
This post is not being displayed .
|
NutsyUk Nearly there...
Joined: 22 Jun 2016 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
lihp |
This post is not being displayed .
|
lihp World Chat Champion
Joined: 22 Sep 2010 Karma :
|
Posted: 23:03 - 13 Jul 2016 Post subject: |
|
|
Original Post ____________________ covent.gardens: lihp is my most favourite member ever |
|
Back to top |
|
You must be logged in to rate posts |
|
|
NJD |
This post is not being displayed .
|
NJD World Chat Champion
Joined: 11 Mar 2015 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
orac |
This post is not being displayed .
|
orac World Chat Champion
Joined: 25 Sep 2011 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
Nope. |
This post is not being displayed .
|
Nope. World Chat Champion
Joined: 17 Feb 2011 Karma :
|
Posted: 23:19 - 13 Jul 2016 Post subject: |
|
|
Utterly utterly pointless, if it makes you happy then go for it but I doubt it'll run to completion. Not knocking, just being honest.
Wouldn't the time/money be better spent getting a licence and a bigger bike? ____________________ 2011 XT660Z Ténéré - 2003 YZR-R1 5PW (In Build) |
|
Back to top |
|
You must be logged in to rate posts |
|
|
NutsyUk |
This post is not being displayed .
|
NutsyUk Nearly there...
Joined: 22 Jun 2016 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
JGrey |
This post is not being displayed .
|
JGrey Derestricted Danger
Joined: 15 Jul 2016 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
WD Forte |
This post is not being displayed .
|
WD Forte World Chat Champion
Joined: 17 Jun 2010 Karma :
|
Posted: 16:46 - 16 Jul 2016 Post subject: |
|
|
I'm all for gadgets and such as I do enough myself but if you're new to programming Arduino ( C/C++) and Pi's ( Python)
you're breaking the starting out or catching up K.I.S.S. law
I'd break it into seperate projects first and only combine them
after the inevitable mistakes are made and experience gained
If the tacho and speedo are servo driven which I looked into when considering my own dash project,
don't drive them directly from the Arduino, it wil shit its pants(technical term)
use a servo driver board.
I'd use something like this
https://www.ebay.co.uk/itm/I2C-16-Channel-Servo-Driver-Board-with-12-Bit-PWM-for-Arduino-Raspberry-Pi-/141493194018?hash=item20f1a6cd22:g:QkMAAOSw3ydVp8S9
What you don't use for servos can be used for leds and other stuff
This saves the duino doing all the hard work and it just has to
spit a few numbers at the driver board every few hundred mS or so
The programmable leds are fun but will need their own power supply as well
All good fun but costs will rise I betcha ____________________ bikers smell of wee |
|
Back to top |
|
You must be logged in to rate posts |
|
|
orac |
This post is not being displayed .
|
orac World Chat Champion
Joined: 25 Sep 2011 Karma :
|
Posted: 17:35 - 16 Jul 2016 Post subject: |
|
|
WD Forte wrote: | All good fun but costs will rise I betcha |
this times a million.
When I built the macro rail, by the time you taken into account 2 mistakes which caused the FPU and the stepper controller to be cooked I spent the better part if £90 just on the electronics. was hoping to spend £30 or £40. was hoping everything was going to be less than £150
Spent 2 years on the code that makes it run - that's the killer, even if you are really really good and coding it takes time, testing, more time and more testing, rinse and repeat until you get close to the final product. Heck just the learning curve that came with the FPU was 6 months. Designing how the user interfaces with the system is another 6 months of coding and recoding until there was something that worked smoothly and could be interface with the rest of the code effectively. if its not the hardware that get you, its the hours of banging your head against the keyboard screaming "why wont thing fecker work" ____________________ Current rides - 2016 Triumph Street Triple Rx, 1994 Suzuki Bandit 400 VM, TGB 204 Classic 125cc
"with nothing left to lose, there is everything to gain. It's not the size of the dog in the fight, it's the size of the fight in the dog" |
|
Back to top |
|
You must be logged in to rate posts |
|
|
NutsyUk |
This post is not being displayed .
|
NutsyUk Nearly there...
Joined: 22 Jun 2016 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
NutsyUk |
This post is not being displayed .
|
NutsyUk Nearly there...
Joined: 22 Jun 2016 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
orac |
This post is not being displayed .
|
orac World Chat Champion
Joined: 25 Sep 2011 Karma :
|
Posted: 20:15 - 17 Jul 2016 Post subject: |
|
|
using libraries, class drop down. what the hell sort of coding have you done the past, just write the code out. most of my current projects would need around 15 side of a4 to print, the macro rail needed more than 40.
you need to learn some electronics by the sound of it too. a decent buck regulator with 5.1 zenner (on the regulated side) for extra protection, smoothing caps on all both the input and output side of the regulator and power pins of the processors and ICs in the circuit. All the non buck regulators I use are rated for about 48v and are LDO. The bonus of the buck regulator is there is very little power wastage and the can normally deliver more current that linear regulators, the down side is they normally need more support components which make the circuit more complex. If you plan on using an ADC somewhere along the way you may need to take into account how clean the power supply is, getting a very clean supply in the noisy environment of cheap motorcycle supply could be tricky.
I normally use picaxe, which has its drawbacks with processor speed (caused by it interpreted and tokenised code implementation) but being based on VB syntax its very easy to learn fast and prototyping can often be done in less time, due to this simplicity. ____________________ Current rides - 2016 Triumph Street Triple Rx, 1994 Suzuki Bandit 400 VM, TGB 204 Classic 125cc
"with nothing left to lose, there is everything to gain. It's not the size of the dog in the fight, it's the size of the fight in the dog" |
|
Back to top |
|
You must be logged in to rate posts |
|
|
Robby |
This post is not being displayed .
|
Robby Dirty Old Man
Joined: 16 May 2002 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
NutsyUk |
This post is not being displayed .
|
NutsyUk Nearly there...
Joined: 22 Jun 2016 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
NutsyUk |
This post is not being displayed .
|
NutsyUk Nearly there...
Joined: 22 Jun 2016 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
nowhere.elysium |
This post is not being displayed .
|
nowhere.elysium The Pork Lord
Joined: 02 Mar 2009 Karma :
|
Posted: 11:16 - 25 Jul 2016 Post subject: |
|
|
Wow, didn't realise that my incredible laziness would lead to such cynicism in the BCF crowd
OP, it's a ballache and a half, and is most definitely not worth doing for a 125, IMO. It's also not really a good project to cut your teeth on with regards to making prototyping and developing a functional item like this. You've no experience of the 3D printing aspect, you're rusty on coding, and trust me when I say that motorbikes are a fucking horrible electrical environment to try and integrate low-voltage digital electronics into. ____________________ '10 SV650SF, '83 GS650GT (it lives!), Questionable DIY dash project, 3D Printer project, Lasercutter project |
|
Back to top |
|
You must be logged in to rate posts |
|
|
weasley |
This post is not being displayed .
|
weasley World Chat Champion
Joined: 16 Oct 2010 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
ScaredyCat |
This post is not being displayed .
|
ScaredyCat World Chat Champion
Joined: 19 May 2012 Karma :
|
Posted: 13:53 - 25 Jul 2016 Post subject: |
|
|
Ignore all the naysayers. If you've ever built anything yourself from scratch you'll now it's not just about the end result, it's the journey and what you learn from it. It doesn't matter that it'll cost loads more than you expect and you'll hit barriers that will have you screaming.
Don't stop. Do it. You'll learn a lot from it.
Also add: Air temp, coolant temp, hrm, gps, indicator trigger, brake trigger, suspension triggers. Make it so you can store stuff on an SD Card.
Congratulations on your own black box ____________________ Honda CBF125 ➝ NC700X
Honda CBF125 ↳ Speed Triple |
|
Back to top |
|
You must be logged in to rate posts |
|
|
weasley |
This post is not being displayed .
|
weasley World Chat Champion
Joined: 16 Oct 2010 Karma :
|
Posted: 14:10 - 25 Jul 2016 Post subject: |
|
|
ScaredyCat wrote: | Ignore all the naysayers. If you've ever built anything yourself from scratch you'll now it's not just about the end result, it's the journey and what you learn from it. It doesn't matter that it'll cost loads more than you expect and you'll hit barriers that will have you screaming.
Don't stop. Do it. You'll learn a lot from it.
Also add: Air temp, coolant temp, hrm, gps, indicator trigger, brake trigger, suspension triggers. Make it so you can store stuff on an SD Card.
Congratulations on your own black box |
Also, this. Do it because you can. And keep us informed - I love following this sort of thing. ____________________
Yamaha XJ600 | Yamaha YZF600R Thundercat | KTM 990 SMT | BMW F900XR TE |
|
Back to top |
|
You must be logged in to rate posts |
|
|
J.M. |
This post is not being displayed .
|
J.M. World Chat Champion
Joined: 27 Mar 2011 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
NutsyUk |
This post is not being displayed .
|
NutsyUk Nearly there...
Joined: 22 Jun 2016 Karma :
|
Posted: 17:32 - 29 Jul 2016 Post subject: |
|
|
Thanks guys, thats pumped me up a bit. Kinda bad news today, my 7D camera seems to have died So been a bit glum about that.
But in other more positive news. I wanted to post a little video of the current state of this project.
After all the head scratching and banging head against the table, and getting the maple mini board up and running again. i finally got the project ported over to the faster board, I say faster it does seem to have one problem. It seems slower sending code to the LEDs, but i think its a bug in the library im using. Hope to have that fixed up by the time im done with this.
Right, new addition today to the board. yesterday my nextion display turned up. So ive been playing with that working out how to get it going and upload stuff to it.
So i have a little treat.
A little video showing where I am at now.
https://www.youtube.com/watch?v=bfcksaWX2BU
Its just running off a random number between 0 and 80 for now.
I tweaked the code for this video so it runs on 360' matching the LED array.
The final build will be back to half circle.
Next thing to do now is build a sketch that simulates more realistically MPH and RPM data. Put that on my other arduino and have it send the pulses down a wire for this board to pick up and read and calculate.
And yeah this motor while slow is fast enough for the MPH side of the gauge, though I have 2 proper speedo gauge motors on the way to try and I've also ordered 2 12V versions of this stepper motor I currently have. During early tests I found at 12v i can run it a lot faster. But the motor got rather hot... So going to try a 12v version see if it runs cooler but stays the same high speed.
Also its my birthday soon :p So I may have convinced some one close by to help me buy a cheap 3D printer... So I may have a case to fit all this in sooner than I first thought. Ill keep you updated... ____________________ Yamaha FZ8/Fazer800 (split headlight one) 2014, gingerly getting used to the massive increase in HP and not killing myself in the process! That was easy to get used to.
Kawasaki ER6F 2007 650 Gonna sell as a project bike!
Lexmoto XTR S 125 Sold! |
|
Back to top |
|
You must be logged in to rate posts |
|
|
Old Thread Alert!
The last post was made 7 years, 274 days ago. Instead of replying here, would creating a new thread be more useful? |
|
|
|