Page 45 of 68

Re: Nimminz' GLT Daily

Posted: 01 Aug 2012 10:17 pm
by Chris_C
Are you recording from the sensors directly bud? Or via the ECU (i.e. the LH one when it's in?)

Fake sporadically has an SD card logger, I use one of
https://www.sparkfun.com/products/9530
with a few firmware changes so I don't always have to carry a laptop. Well worth doing though, logging is the best thing EVER!

Re: Nimminz' GLT Daily

Posted: 02 Aug 2012 12:42 am
by Nimminz
Well i started off just thinking about the oil temp and press. sensors I have seperatly in the filter relocation then its moved on to all sorts. Not really sure, guessed i'd take it from the sensor wires before they hit the ECU (on the LH system)

I'm after live view of things and logging at the same time. With the arduino board i bought is a 3.2" touchscreen LCD with card reader mounted on the back. I'd probably end up buying something like what you have for discrete dash mount and I'm not sure on a full colour touchscreen in an '80s car. I also got a 128x64 graphic LCD white on blue and that's more probable for sticking in the car. I've got a 3-axis accelerometer ordered too so that should be nice if i can get it to work. thinking about a GPS module too then one day learn to do this sort of thing: http://www.practicalarduino.com/project ... y-platform
I always thought you must have some dead expensive bit of kit to get those graphs of yours.
I've not done much stuff like this before but luckily the internets full of examples tutorials and other people's projects :D

Re: Nimminz' GLT Daily

Posted: 02 Aug 2012 09:44 am
by Chris_C
Nimminz wrote:Well i started off just thinking about the oil temp and press. sensors I have seperatly in the filter relocation then its moved on to all sorts. Not really sure, guessed i'd take it from the sensor wires before they hit the ECU (on the LH system)

I'm after live view of things and logging at the same time. With the arduino board i bought is a 3.2" touchscreen LCD with card reader mounted on the back. I'd probably end up buying something like what you have for discrete dash mount and I'm not sure on a full colour touchscreen in an '80s car. I also got a 128x64 graphic LCD white on blue and that's more probable for sticking in the car. I've got a 3-axis accelerometer ordered too so that should be nice if i can get it to work. thinking about a GPS module too then one day learn to do this sort of thing: http://www.practicalarduino.com/project ... y-platform
I always thought you must have some dead expensive bit of kit to get those graphs of yours.
I've not done much stuff like this before but luckily the internets full of examples tutorials and other people's projects :D
Electronics is easy if you are prepared to sit down and do some learning. It's damn frustrating for the first few months too, but that's where the Arduino will help you no end, they didn't exist when I started ;)

If you see the circuit I use to interface the Williams ECU to a PC you'd laugh and as it's just converting to RS232 then the RS232 logged happily works (well, along with the same magic software tweak the PC needs). In all, those graphs were somehting like £25 of components and Excel :lol:

Making things to do this sort of thing is what I do for a job though...

As for LH, I've not looked at it so can't say for sure. If you are taking a signal before the ECU, make sure you use a high impedance input so you don't affect the signal the ECU sees. I don't know the AVR on the arduino well enough to call that out my head.

Re: Nimminz' GLT Daily

Posted: 02 Aug 2012 04:43 pm
by Nimminz
Cheers!

I've done a fair bit of analogue sort of stuff and did it in GCSE and A-level and we very breifly touched on the programming stuff with PICs
Here's what i bought: http://www.ebay.co.uk/itm/280931953825? ... 280wt_1037
If LH2.4 had an OBD-II things would be nice as that's got serial output, doubt much could be had from the daignostics port in LH unless there was actually a fault, in which case the most you could make it do was count the 'flashes' and look up what the code is and display it as nice text.

I'll start off small, oil temp and pressure and the touchscreen and little LCD display, see what can be done. Then I'll Look more into the LH - which i still need to crack on with :/

Re: Nimminz' GLT Daily

Posted: 02 Aug 2012 06:34 pm
by Ride_on
Noone seems to know if you can read live data from the LH. FCR software seems to do it but not clear atall which models it can do it.

The LH2.4 is not ODBII, its totally propriety. The 95 LH2.4 is the same as the 96 with the ODBII-like socket AFAIK, 95 has no computer connection so I'm guessing no live data on 940.

I have been looking at data loggers as logging is much more powerful than gauges (nevermind space and spoiling the dash), some nice car ones with GPS and accelerometers, but you are looking at £300+ second hand with multiple analogue in. Some others are mainly digital and want you buy additional analogue modules.

DIY with Arduino or Raspberry PI looks interesting but I havn't time to learn.

Re: Nimminz' GLT Daily

Posted: 02 Aug 2012 07:01 pm
by Chris_C
Need more googlefu :p

http://www.jetronic.info/wiki/tiki-inde ... atalogging

Looks like it only runs on one bin, but might be somewhere to start! Easier than the F7x stuff if it is just K line too, looks like it goes into both LH and EZK too.

Re: Nimminz' GLT Daily

Posted: 02 Aug 2012 09:45 pm
by Nimminz
the K-line, i remember that from drawing the diagrams. So that's the streaming data pin then. That's a rather good site I've not seen before, cheers!

Luckily I've got time to learn, my dad's bought a rasbery pi so i might have a play with that.

What I'm wanting to do is have the guages/ display and data logging at the same time. Although placement of a 3.2" touchscreen wasn't quite thought out by the designers :lol:

Re: Nimminz' GLT Daily

Posted: 03 Aug 2012 09:24 am
by Chris_C
Raspberry Pi is superbly overkill for what you need and will (I'd have thought) make life a bit harder than it needs to be. The one advantage it has over a PIC or AVR dev board is the ability to have a GUI running on the table, but that's the last thing you want in the car.

FWIW, I'd get the Arduino you have coming, make some words appear on the screen. Then, make those words change when you change a digital I/O pin. Then, make it display the value going into an analogue pin (I think AVR's have analogue in's.... if it has you have no need for a more accurate A/D, unless you need more channels). Making a varying analogue voltage is easy with a pot.

Then, make the numbers into a pretty graph. Then bolt into the car. Woooo!

Re: Nimminz' GLT Daily

Posted: 03 Aug 2012 03:37 pm
by Nimminz
Yeah Rasberry aint what i want. Got the arduino thing today, gonna have a play with it now. Its got loads of analog inputs :D

Gonna try all the tutorials that come with the parts I've got, the displays, accelerometer, temp sensor etc. Then see about combining them. Start simple i think :)

Re: Nimminz' GLT Daily

Posted: 07 Aug 2012 09:43 pm
by Nimminz
Update on the car-back-on-the-road situation is that its nearly all back together, just the bearing carriers to take off, stick o-rings on, and put back on then make the gear linkages and everythings done. Then we've just gotta get the bellhousing off and find what the prop's stuck in, free it and whack all the good torquetube/gearbox and LSD on :)

The Arduino's quite amusing, so far made an angle meter, shows 0-90degees left or right in one axis on a 7-segment dispay (in increments of 10) Need to find some resistors and the like before i can play with analogue inputs, got a light sensor, well LDR, to test things out with

I'll take some pretty pics for my next update

Re: Nimminz' GLT Daily

Posted: 08 Aug 2012 02:52 pm
by volvosneverdie
Pics pics pics please

Re: Nimminz' GLT Daily

Posted: 08 Aug 2012 03:39 pm
by Chris_C
Including of the Arduino stuff ;)

My individual project for my degree was an inclinometer, managed to get 0.1degs between 0-80, 1 between 80-90. Which according to my tutors and the datasheets wasn't possible... so ended up having to do a load of proof work.

That took me 6months though, which just shows how awesome the current state of taking away the mundane really is. Great job dude. Can't wait till you have it on the car and able to log. (maybe a logging inclinometer is a good next step?)

Re: Nimminz' GLT Daily

Posted: 08 Aug 2012 10:17 pm
by Nimminz
Yep the arduino makes things sooo easy, it feels like cheating

So far I have managed to get the accellerometer working with the small GLCD. Still loads to learn, took me ages to figure out how i was going to use 2 serial connections, one for acel. meter and one for LCD, i thought it would be hard but nope, can have up to 4 serials without having to play with 'chip select' which AFAIK is using the same data and clock lines but choosing which thing transmits and receives at what time. Anyway... Here it is in photos and a video :D

When I added 7-segment displays
Image
Image

Serial rec'd by computer - could easily be logged to SD from car.
x=
20 //output from Acc. meter
30 //x+10 as 'flat' value is -10
9.31 //Divide by 3.2222 as 90 deg. tilt gave me 280 so divided 290 by 90 (degrees) to give 3.22222 then divide x+10 by that to give rough degrees. I know thats not very good but was more an exersize in manipulating the serial input and sending it as output. Am doing it a much better way next
Image

And the LCD with pretty fonts and a bar that moves :D 5 wires LCD->arduino MUCH better than 7-segs
Image

Video of how far i've got with the LCD, will be miles better after a few hours tonight

http://www.youtube.com/watch?v=a22qBCDs ... e=youtu.be

I'm waiting on some resistors and stuff so i can properly try analogue inputs but reckon they'll be straight forwards. Plan for tonight is to get multiple pages on the LCD and buttons to navigate and sort the 'bar' thingy so its better

Thanks for looking :D

Re: Nimminz' GLT Daily

Posted: 08 Aug 2012 11:58 pm
by Chris_C
That video looks nice Matt! Keep on it dude.

Re: Nimminz' GLT Daily

Posted: 10 Aug 2012 04:17 pm
by Nimminz
http://www.youtube.com/watch?v=QqQIDUvnVPk

X,Y,Z axis now on a much nicer way of displaying it.

Here's how the code that makes the dot showing x+y looks :/

Code: Select all

  u8g.drawDisc(((x+280)/530.0*46.0)+11, ((y+280)/530.0*46.0)+10, 2); 
//library.Filled circle(x co-ordinates, y-co-ordinates, radius
 
Won't be hard to tidy up but need a rest from it till later