|
Author |
Message |
EazyDuz |
This post is not being displayed .
|
EazyDuz World Chat Champion
Joined: 12 Apr 2011 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 :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
steven_191 |
This post is not being displayed .
|
steven_191 Nearly there...
Joined: 31 May 2009 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: 13:08 - 19 Dec 2011 Post subject: |
|
|
Hmm. I've been looking more into this, and lamenting my complete inability at electronic design.
This is not an admission of defeat.
I've been mapping out the probable data line usage on the arduino, and it's looking like the mega is going to be needed, if I'm to include comprehensive datalogging. By comprehensive, I mean *everything*. I can, provided I can get the timing right, take a complete record of the state of the bike at any given point, if the SD card can be written fast enough (with meaningful content).
For a more minimal dash, I can economise enough to make use of the Boarduino with no problems, and a significantly smaller footprint.
So - the options are (and I'm intending to play with both of these, so don't despair):
1) no datalogging at all - this will work with a boarduino - i gain 6 digital lines, two of which have pwm capability (this is useful). This gives me a dash with sensor feeds (temp, tacho, speedo, fuel), as well as a couple of lines so I can have pushbutton inputs to switch between screens with no problems;
2) epic datalogging on the back of a porky board - I get the sensor feeds listed above, plus GPS, XYZ accelerometer (when I get one - they're not overly pricey), TPS data, gear display, I can even include a log of what the idiot lights were doing, and when. For the engine tuners among you, there's also the possibility of tracking air intake pressure, amongst other things.
I'm going to focus on the non-datalogging one for now, because that will at least require a bit less coding, as well as being much easier to prototype.
Between reading significantly huge tracts of electronic theory and trying things out, I shall report back.
:edit: Also, in the interests of keeping you lot informed, it looks like the parts costs for doing the epic logger of doom is ~£80, but that's without including the costs of an enclosure, and it's minus a few resistors and some wire. Let's call it a round £90. Obviously, this doesn't account for my time/effort, but I thought you might like to know.
However, this is the bit that'll blow your minds. The version that includes no datalogging comes in at (minus enclosure and a couple of analogue bits) ~£30. This isn't accounting for import duty in either case, and I'm hoping I can find UK suppliers for the screen soon, but for now, that's still apocalyptically cheap compared to the alternatives on the market. ____________________ '10 SV650SF, '83 GS650GT (it lives!), Questionable DIY dash project, 3D Printer project, Lasercutter project
Last edited by nowhere.elysium on 13:21 - 19 Dec 2011; edited 1 time in total |
|
Back to top |
|
You must be logged in to rate posts |
|
|
chris-red |
This post is not being displayed .
|
chris-red Have you considered a TDM?
Joined: 21 Sep 2005 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 :
|
|
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: 15:07 - 19 Dec 2011 Post subject: |
|
|
Right - here's the schematic for the basic one, using a Boarduino (the application I was using doesn't have a proper graphic for one, so I used the nearest approximation).
https://farm8.staticflickr.com/7153/6537649519_335ff3370e_z.jpg
Because I haven't bothered checking the voltages on the sensors yet, I put a voltage regulator in front of all of them, operating on the assumption that they're all rated for 12v.
As you can see, there are two buttons included, which will allow me to select between screens, and reset trip meters (there'll be one per screen, I reckon; main trip and 'between fuel stops' trip).
At the moment, I'm thinking that I'll probably re-route some of this, so the 8th, 10th and 11th pin from the ST7565 display go to PWM pins, so I can use colour gradations for the backlight.
I also routed all of the sensors to the analogue input side, but that was purely to avoid getting a migraine while plotting all this out. The analogue pins can be used as digital lines if they need to be, although I'm going to try and keep them available as much as I can, because they're a rarer resource than the digital ones.
Tomorrow's supposed to be a nice day, so I think I'll wait 'til then to head down to the garage with a multimeter and a camera, and start checking out the ratings on various SV components. ____________________ '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 |
|
|
nowhere.elysium |
This post is not being displayed .
|
nowhere.elysium The Pork Lord
Joined: 02 Mar 2009 Karma :
|
Posted: 17:28 - 19 Dec 2011 Post subject: |
|
|
G has a lot to answer for.
He's managed to convince me to roll in a function to control an MD80 camera. While I can't do exactly what he wants with the hardware/expertise at my disposal, I can do the following: on the uber-build (the one with all the sensors), I can add a simple on/off controller for the MD80 camera, as well as hopefully being able to hack in a feed from the RTC that'll be built in to the dash. This means that I've got perfect synchronisation between the readings from the dash, and the video feed. as such, there'll be detailed telemetry available, alongside a video/audio feed of the ride, so that weird 'cough' that happened about three miles in can be found a lot more readily, because people tend to remember what they see better than the exact time.
I'm going to continue working on the basic one for now, although I've got a pair of MD80 cameras on order, so I can pull one apart, and see what makes it tick. Conveniently, there are schematics available for them, so it makes it significantly easier to wire in external controls. Forunately, I'm fairly good at detailed work, so soldering any new lines in will be do-able. Just very, very time consuming.
I'll keep you all posted as best I can. ____________________ '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 |
|
|
Charlie |
This post is not being displayed .
|
Charlie World Chat Champion
Joined: 27 May 2007 Karma :
|
Posted: 10:39 - 20 Dec 2011 Post subject: |
|
|
Have you got a bigger version of your circuit diagram?
Starting simple sounds like the right idea ____________________ Past: Honda x8rs, Honda City fly, Honda Hornet 250, Honda VFR750, Yamaha xt600e.
Current: Honda CBR929RR & Yamaha XT660Z Tenere |
|
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 :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
chris-red |
This post is not being displayed .
|
chris-red Have you considered a TDM?
Joined: 21 Sep 2005 Karma :
|
Posted: 14:45 - 20 Dec 2011 Post subject: |
|
|
On a side note, a simple 12v charger/on off switch would be very handy for an md80.
HINT HINT.
____________________ Well, you know what they say. If you want to save the world, you have to push a few old ladies down the stairs.
Skudd:- Perhaps she just thinks you are a window licker and is being nice just in case she becomes another Jill Dando.
WANTED:- Fujinon (Fuji) M42 (Screw on) lenses, let me know if you have anything. |
|
Back to top |
|
You must be logged in to rate posts |
|
|
P. |
This post is not being displayed .
|
P. Red Rocket
Joined: 14 Feb 2008 Karma :
|
Posted: 14:57 - 20 Dec 2011 Post subject: |
|
|
|
|
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: 16:19 - 20 Dec 2011 Post subject: |
|
|
##Paddy## wrote: | Got the feeling this will be good competition for the B12 Turbo |
Competition? Sod that. CHR15 knows what he's doing - I'm just flailing wildly, and writing it up when it works out in my favour.
TDM evangelist wrote: | On a side note, a simple 12v charger/on off switch would be very handy for an md80. |
That's fairly simple - the MD80 charges off a 5V supply, so a voltage regulator should be fine for that. You could probably do away with the battery, too - I don't think that it's complex enough to involve any kind of intelligent charging
THere's a schematic for the MD80 available here - it's a pdf file, and it looks to be complete. Karma to whoever finds me an RTC input line on there, or something that I can chop out to replace with my own. ____________________ '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 |
|
|
chris-red |
This post is not being displayed .
|
chris-red Have you considered a TDM?
Joined: 21 Sep 2005 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
chris-red |
This post is not being displayed .
|
chris-red Have you considered a TDM?
Joined: 21 Sep 2005 Karma :
|
Posted: 17:22 - 20 Dec 2011 Post subject: |
|
|
I also want a waterproof bluetooth remote for my iphone ____________________ Well, you know what they say. If you want to save the world, you have to push a few old ladies down the stairs.
Skudd:- Perhaps she just thinks you are a window licker and is being nice just in case she becomes another Jill Dando.
WANTED:- Fujinon (Fuji) M42 (Screw on) lenses, let me know if you have anything. |
|
Back to top |
|
You must be logged in to rate posts |
|
|
Charlie |
This post is not being displayed .
|
Charlie World Chat Champion
Joined: 27 May 2007 Karma :
|
Posted: 17:25 - 20 Dec 2011 Post subject: |
|
|
The RTC is done inside the ASIC (SPCA1527A) and I think is set by the 32.768KHz crystal. 4th comment on this blog tells you it's in the ASIC.
Don't think you have much control of the RTC without interfacing with the chip. Although I haven't looked into it too much ____________________ Past: Honda x8rs, Honda City fly, Honda Hornet 250, Honda VFR750, Yamaha xt600e.
Current: Honda CBR929RR & Yamaha XT660Z Tenere |
|
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: 17:35 - 20 Dec 2011 Post subject: |
|
|
You've become a properly cheeky bitch since getting your custom title, haven't you
The MD80 power supply will be integrated into the whole unit, but a circuit diagram will be available, so you'll have just as much fun with the DIY learning curve as I've been having.
Alternately, what could be done is to determine whether the thing will run while it's charging (I've heard tell that it might not), and if it does, then just hack up a USB lead, and wire up the red and black ones to a voltage regulator that goes to the battery.
If it does stop recording when there's a USB lead connected, then you can just break the line that detects the presence of a lead - it's a spur from the positive line coming out of the USB socket, that goes to a line labelled 'USB_DET' in section 4A of the schematic I linked to. You'll lose the use of the USB connection, unless you include some kind of switch, but soldering at that scale is a bitch. You'd have to transfer footage off using a MicroSD reader, but that may well prove to be faster anyway, given that a lot of these small cameras don't have the fastest transfer rates in the world. ____________________ '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 |
|
|
P. |
This post is not being displayed .
|
P. Red Rocket
Joined: 14 Feb 2008 Karma :
|
Posted: 17:51 - 20 Dec 2011 Post subject: |
|
|
What you need to do is integrate the MD80, then find a nice way of using a 500GB drive for prolonged recording and set it up so you can turn it on/off recording on the dash
Then, I will buy one |
|
Back to top |
|
You must be logged in to rate posts |
|
|
chris-red |
This post is not being displayed .
|
chris-red Have you considered a TDM?
Joined: 21 Sep 2005 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
Blackwolf |
This post is not being displayed .
|
Blackwolf Burgerfist
Joined: 19 Nov 2006 Karma :
|
Posted: 18:18 - 20 Dec 2011 Post subject: |
|
|
|
|
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: 18:32 - 20 Dec 2011 Post subject: |
|
|
Charlie wrote: | The RTC is done inside the ASIC (SPCA1527A) and I think is set by the 32.768KHz crystal. 4th comment on this blog tells you it's in the ASIC.
Don't think you have much control of the RTC without interfacing with the chip. Although I haven't looked into it too much |
Just read that, and had another look at the schematic. Looks like pins 79 and 80 attach directly to the crystal, so yup, you're totally right. Bugger.
The easiest way of solving this, insofar as I can see, is to makes sure that both the Arduino and the MD80 are originally set by the same external clock. That way, they'll have a calibrated starting point. The only caveat is if they lose power completely. They've both got batteries, though, and they'll also both be lashed to the bike's wiring loom, so that should minimise the risk of total power failure. ____________________ '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 |
|
|
steven_191 |
This post is not being displayed .
|
steven_191 Nearly there...
Joined: 31 May 2009 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: 19:33 - 20 Dec 2011 Post subject: |
|
|
steven_191 wrote: | https://ubuntuforums.org/showthread.php?t=1391735
Read the first few posts. suggests that the md80 can be used as a webcam, meaning it would need to be plugged into a USB port and have the 3v supply.
Could you set it as webcam mode a direct the video to storage? Or would that mean hacking the camera?
Just a thought but webcam mode does mean not storing the video/audio data. |
I'm not quite sure where you're going with this: the point of having the camera is to be able to record what's going on. If I just set it as a webcam, then it means that I'd have to have something that can parse the footage appropriately, encode it, and record it at a suitable speed. The arduino really isn't up to that. Nor am I really up to the challenge of writing a camera library for arduino.
I've got my eye on a few from maplins, for the prototype. Nothing too flashy, because it's likely to be chopped and changed a bit over the initial settling in period. I'd prefer to design something myself after that, and get it fabbed up. I used to have access to a 3D printer, and a Roland Modela, but thanks to weird departmental changes at work, I don't know where they are anymore. ____________________ '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 |
|
|
Charlie |
This post is not being displayed .
|
Charlie World Chat Champion
Joined: 27 May 2007 Karma :
|
Posted: 22:19 - 20 Dec 2011 Post subject: |
|
|
nowhere.elysium wrote: | The easiest way of solving this, insofar as I can see, is to makes sure that both the Arduino and the MD80 are originally set by the same external clock. That way, they'll have a calibrated starting point. The only caveat is if they lose power completely. |
Yeah calibrated starting point is easiest in my eyes, I also doubt you'd notice clock even over a 24 hour ride.
nowhere.elysium wrote: | They've both got batteries, though, and they'll also both be lashed to the bike's wiring loom, so that should minimise the risk of total power failure. |
If they've got separate batteries then you'll need to link the grounds together between batteries so they share the same ground. And think about some diodes to prevent the batteries trying to power the loom or loom charge the batteries. Could be easier to share a battery between them both. ____________________ Past: Honda x8rs, Honda City fly, Honda Hornet 250, Honda VFR750, Yamaha xt600e.
Current: Honda CBR929RR & Yamaha XT660Z Tenere |
|
Back to top |
|
You must be logged in to rate posts |
|
|
steven_191 |
This post is not being displayed .
|
steven_191 Nearly there...
Joined: 31 May 2009 Karma :
|
|
Back to top |
|
You must be logged in to rate posts |
|
|
Old Thread Alert!
The last post was made 12 years, 131 days ago. Instead of replying here, would creating a new thread be more useful? |
|
|
|