Page 6 of 10

Re: M20B20 to MegaSquirt build

Posted: Wed Mar 04, 2015 11:52 am
by steed
that is a cold start, but a good one! loving the whisky tin tube is it?

Re: M20B20 to MegaSquirt build

Posted: Wed Mar 04, 2015 3:36 pm
by BertjeConti
steed wrote:that is a cold start, but a good one! loving the whisky tin tube is it?
Two beer cans, they're "my favorite Germain "weizen Bier" cans.

i've also used one for a nice exhaust end tip e_surprised

Image

Re: M20B20 to MegaSquirt build

Posted: Sat Mar 07, 2015 9:34 pm
by Christoph
Awesome work, I've read the whole thread
Realy nice and à clean build up

With respect :sealed

Re: M20B20 to MegaSquirt build

Posted: Sun Mar 29, 2015 12:36 pm
by BertjeConti
MS Display update

The display unit works fine, only i wasn't happy with the populair blue/white LCD display because:
- you can't read it when backlight is off, so backlight is always on
- in the dark the white backlight gives a lot of disturbing light in the cockpit.
- in sunny daylight the backlight isn't strong enaugh to give a good readout
- the refresh rate of this display is very slow.

So i ordered a oldfashioned black on green display, which gives a good contrast with or without backligt.

I also was't happy with the experimental pcb, it works wel at the moment but i doupt it's reliability on the long term.
So i've designed last week a real pcb and used SMD components as much as possible. The design is a single sided PCB.

The PCB is manufactured at home without fancy/expensive tools.

Firs the design is mirror printed on photo paper with my laser printer and then the toner is tranferred from the photo paper to the copper PCB with the help of a laminator:

Image

Then the PCB is etched in a solution of Hydrochloric and hydrogen peroxide:

Image

After that the toner is removed with thinner:

Image

test fit some components:

Image

next step is aplying a solder mask which protects the bare copper from corrosion, to do you'll have to mask the solder pads before aplying the solder mask paint, the paint i used is a glass-porcelian paint which needs to cure at 150 degrees for 20 minutes:
solder pads masked with yellow transparrent tape (nerve wrecking job):

Image

solder mask applied:

Image

And cured:

Image

Then the PCB was finaly ready for drlling and soldering the components.
As a drill tool i used my wifes electric pedicure hand drill/mill machine. The proxxon drills i use fit perfectly in this profesional machinery.
After soldering i cleaned the PCB with white spirit to remove the resin deposits which is used in the solder as a flux.

Image

PCB and display assembled:
Image

Image

experimental PCB versus the final PCB:

Image

Image

Test run on the bench:
Image

And finaly build the whole assembly back in is enclosure:

Image

Image

The display unit is back in the car and works like it should.

Image

in the background there is my homebuild tripmaster:

Image

another job done.

Re: M20B20 to MegaSquirt build

Posted: Sun Mar 29, 2015 1:03 pm
by Jeroen
And an impressive one! :thumbsup

Re: M20B20 to MegaSquirt build

Posted: Mon Mar 30, 2015 8:41 am
by steed
oh very nice, the colour/contrast is much better in the green that's for sure. I have been toying with buying a proxxon pretty much for the reason you have used your bits for. I've never seen solder mask applied like that before, is it a film layer of do you paint it on? how do you stop it from sticking to the contacts you want exposed?

Re: M20B20 to MegaSquirt build

Posted: Mon Mar 30, 2015 11:52 am
by BertjeConti
steed wrote:oh very nice, the colour/contrast is much better in the green that's for sure. I have been toying with buying a proxxon pretty much for the reason you have used your bits for. I've never seen solder mask applied like that before, is it a film layer of do you paint it on? how do you stop it from sticking to the contacts you want exposed?
The Soldermask is painted with a brush on the PCB, before painting i've masked the solder pads with tiny pieces of tape, as i explained earlier.
In this photo you can see the masked solder pads, it is hard to see because of the yellow transparent tape i used.
Image
After applying and drying the paint i've removed the tape from the solder pads and after that i cured the paint at 150 degrees for 20 minutes.
The paint i used is intended for creative glass painting, and gets hard like porcelain when cured in a oven.

Re: M20B20 to MegaSquirt build

Posted: Thu Apr 02, 2015 8:30 am
by steed
That is a genius use of porcelain glass paint. I think I shall steal this technique!

Also, love the shark

Re: M20B20 to MegaSquirt build

Posted: Tue Dec 15, 2015 10:18 pm
by BertjeConti
Oil pressure an temperature sensors

The Megasquirted M20 still performs like it should. So it seems a reliable solution when build with care and good planning.

Since last post in this topic we did some classic car rally's with it and the whole system performed without any problems at all. And because we want to do some more rally's and rally's aren't always driven on smooth roads im adding a sump guard to the car. the sump guard will take some cooling air away from the sump, and thats why i want to install al oil temp sensor.
So while adding a oil temp sensor the next logical step is adding a oil pressure sensor also.

The Megasquirt V2 software cannot handle these extra parameters, but my display can, so i've added al little PCB which add's 4 extra analog inputs. 1 for oil temp, 1 for oil pressure and 2 spare for future plans.

here are some photos of it:

little daughter PCB etched:
Image

and again made a solder mask with glass paint:

Image

then fitted the daughterboard to the main board:

Image

put it all back together:

Image

wrote updated firmware and loaded in the display and testing:

Image

Seems to work well on bench testing, display hooked up to test megasquirt:

Next step is building a little wire loom to the sensors, sensors come in a sandwich adapter plate between oil filter and engine block.

Another nice feature i'm planning is a "eco -fun" switch, with this switch its possible to choose between two fuel and ignition tables in the megasquirt, normaly driving in "eco" mode, but when "fun" mode is selected, some extra advanced is introduced and when lifting the throttle (very low MAP) the ingition advance wil be very low and mixture rich, so the exhaust wil give nice popping sounds between gear change or overrun situations.

Re: M20B20 to MegaSquirt build

Posted: Tue Dec 15, 2015 11:12 pm
by Jeroen
I want a Fun switch as well!

May fit nicely in this dash as well

Image

Re: M20B20 to MegaSquirt build

Posted: Tue Dec 15, 2015 11:32 pm
by BertjeConti
Nice dash Jeroen, love it...

Re: M20B20 to MegaSquirt build

Posted: Fri Feb 19, 2016 10:10 am
by steed
this is impressive, how are you including the separate sensor inputs on the code? I recall that you extract the MS data via a serial interface and then display its values, but am I right in thing that the daughterboard is it interface the separate analogue sensors? if so how are you going about including their update display sequence in a timely fashion (how frequently does this new set of values update o the display?)

Re: M20B20 to MegaSquirt build

Posted: Fri Feb 19, 2016 6:42 pm
by BertjeConti
steed wrote:this is impressive, how are you including the separate sensor inputs on the code? I recall that you extract the MS data via a serial interface and then display its values, but am I right in thing that the daughterboard is it interface the separate analogue sensors? if so how are you going about including their update display sequence in a timely fashion (how frequently does this new set of values update o the display?)
Hello Steed, de separate sensor inputs are hooked up to two analog inputs which are already on the microcontroller board. The daughterboard was needed to make a proper interface and connector to the controllor board. The daugtherboard is layed out for 4 analog inputs, two used for the oil pressure and temp sensors and 2 spare for eventualy future plans.

Reading analog values from inputs in a microcontroller is the most easy task, it takes only 1 line of code.
Converting the analog value to the desired value to show takes some more coding, but al in al it's relative easy to do.

I'm asking and getting the logging values from the megasquirt via the serail connection every 200mSec, in this same sequense i'm reading the 2 analog inputs, so all the values on the display are refreshed every 200mS. This is including all the necessary calculations and conversions needed.

Getting the logging values from a Megasquirt is fairly easy too, connect the serial port with the same settings as in the megasquirt (default 115200baud) and send the character A, the megasquirt responds with a string of 209 bytes which contains all the available data. The trickiest part is to extract all the wanted values from the data string.

The speed signal from the sensor hooked up to the diff causes a interrupt at each puls, so it doesn't interfere with the rest of the code. The executed code handled by the interrupt needs to be as short as possible.

Hopefully this explains your questions

Re: M20B20 to MegaSquirt build

Posted: Fri Feb 19, 2016 7:05 pm
by BertjeConti
in my offtopic thread i've showed the wiring to the sensors and a short video showing the readouts on the display, in the video i toggle the select button to show next set of readouts:

Pastellblau 520/6 Display update


At this time the firmware in the display is updated again, showing the readouts a little nicer and got rid of the bootloader in the controller, so it starts right away.

Re: M20B20 to MegaSquirt build

Posted: Tue Feb 23, 2016 8:18 am
by steed
you stripped out the bootloader! you definitely know your onions if you've gone that far for the sake of presentation.

it is exactly as you say, the refresh rate is ideal for the amount of information being displayed against. have you thought about a graphical representation? I know absolute values are better for measurement purposes but when I'm driving I like the 'needle in a zone' appearance, or possibly the filled bar display for instant feedback. obviously you wouldn't be able to display as much information but I wonder if you had thought about it?

Its all very impressive nonetheless.