sako243
Member
- Messages
- 3,935
- Location
- My mansion in Wales
On to this comment...
Years ago I remember Speeduino coming out and I was messing about with the Nucleo boards from ST (basically an Arduino form-factor but with a far better, in my opinion, processor on it). ST did something really clever by making development boards (now often cheaper than genuine Arduino boards) fully compatible with the Arduino foot-prints as well as writing some software to make them able to replace any AVR based board by simply choosing the correct board in the menu and clicking compile. However, Speeduino at some point must have hit the performance limits of the AVR processor because I remember trying to cross-compile it (I'd done it successfully for other projects) to find there was a lot of AVR specific optimisations in there which wouldn't work on the STM32s. Revisiting the project it's matured a hell of a lot since then and in-fact one of the core developers has developed an STM32 based Arduino to use instead of the AVR based one.
One of the things that also put me off Megasquirt was a lot of installs seem to be a bit clunky in terms of boxing them up and connectors (not necessarily on this forum). At least with Speeduino being fully open-source and my skill-set I could make a decent enclosure with proper automotive connectors. Josh Stewart the creator of Speeduino also created Dropbear, basically a project from boredom through lock-down a 600MHz ECU just I think because he could and also incidentally claim the title of fastest ECU on the market. What caught my eye wasn't the ECU but rather the enclosure and connectors he had for it - a bit of hunting later and I found something very similar on Aliexpress.
I also came across whilst browsing through the code a UK company called DIY-EFI who rather conveniently make a module called the Core4, basically a Speeduino base-board and Arduino merged into one in a much smaller form factor. I know Megasquirt and Speeduino offer through-hole component and nice chunky components to make things easy for a DIY build but given I'm soldering stuff like this (those four holes are 3.1mm and the processor has 0.25mm pads spaced 0.2mm apart - not even legs poking out of it) the normal surface mount stuff doesn't phase me in the slightest.
.thumb.jpg.9699bf767b0abb85266d63b7d47480d6.jpg)
So an hour or so with the laptop whilst watching Game of Thrones and a PCB was designed to mount the Core4 module on, with all the signal conditioning for the VR sensors, stepper motor driver (idle air control) and MAP sensor. An hour in the office the following day and this was the result, a nice waterproof ECU housing with proper automotive connectors.

When I was stripping out the Lexus engine way back when I really liked their setup where they had 3 I think of the 5 ECU connectors were dedicated to the engine wiring harness so when you wanted to pull the engine rather than having to dismantle it to get at all the connectors you simply unplugged the appropriate connectors, pulled it through the bulkhead and left it with the engine. This PCB has taken inspiration from there - the gray connector is all the "vehicle" wires, power supply, O2 sensor, fuel pump and debug. The black connector is all the engine wires: ignition, injectors, stepper, crank, cam, IAT, coolant, TPS etc.
There will be a Mk2 of this ditching the Core4 unit and most likely replacing the Atmel processor with an STM32 one and putting it all onto one PCB but the pin-out will likely remain the same to be able to just swap it straight in.
And to not scare @Stellaghost our resident metalworker away some bending and welding of metal later we have a bracket to mount it where YAFB (yet another fuse box) was added by some of the previous owners.

At this point we were well and truly in the lead up to the wedding / limewashing according to the photos on my phone so most of the progress seems to be documented by random photos I sent to @PaulMc for finding out what connectors were (thanks for that!). A significant benefit for running an electronics company at this point because of getting trade account discounts through distributors and not having to pay shipping as connectors were lumped in with other orders thus negating having to trawl through ebay to find the right ones. The other photos appear to be lots of random ones to @Bowie69 along the lines of WTF is this thing and what does it do... (Did I mention petrols were black magic).
Oh and rebuilding the JCB engine - that was fun, purely mechanical but god that thing puts automotive engines to shame. Refitting the sump involved a ratchet strap and bribing a 6-year old child to operate the strap whilst I tried to guide it and bolt it in place. It's about the same weight as a Tdi block.
I can't remember exactly when it happened but at some point I made the decision not to go Megasquirt (partly cost) but also the faff of machining the crank pulley and fitting a load of brackets - it would be far nicer to use the factory sensors such as the flywheel based VR sensor.
Years ago I remember Speeduino coming out and I was messing about with the Nucleo boards from ST (basically an Arduino form-factor but with a far better, in my opinion, processor on it). ST did something really clever by making development boards (now often cheaper than genuine Arduino boards) fully compatible with the Arduino foot-prints as well as writing some software to make them able to replace any AVR based board by simply choosing the correct board in the menu and clicking compile. However, Speeduino at some point must have hit the performance limits of the AVR processor because I remember trying to cross-compile it (I'd done it successfully for other projects) to find there was a lot of AVR specific optimisations in there which wouldn't work on the STM32s. Revisiting the project it's matured a hell of a lot since then and in-fact one of the core developers has developed an STM32 based Arduino to use instead of the AVR based one.
One of the things that also put me off Megasquirt was a lot of installs seem to be a bit clunky in terms of boxing them up and connectors (not necessarily on this forum). At least with Speeduino being fully open-source and my skill-set I could make a decent enclosure with proper automotive connectors. Josh Stewart the creator of Speeduino also created Dropbear, basically a project from boredom through lock-down a 600MHz ECU just I think because he could and also incidentally claim the title of fastest ECU on the market. What caught my eye wasn't the ECU but rather the enclosure and connectors he had for it - a bit of hunting later and I found something very similar on Aliexpress.
I also came across whilst browsing through the code a UK company called DIY-EFI who rather conveniently make a module called the Core4, basically a Speeduino base-board and Arduino merged into one in a much smaller form factor. I know Megasquirt and Speeduino offer through-hole component and nice chunky components to make things easy for a DIY build but given I'm soldering stuff like this (those four holes are 3.1mm and the processor has 0.25mm pads spaced 0.2mm apart - not even legs poking out of it) the normal surface mount stuff doesn't phase me in the slightest.
.thumb.jpg.9699bf767b0abb85266d63b7d47480d6.jpg)
So an hour or so with the laptop whilst watching Game of Thrones and a PCB was designed to mount the Core4 module on, with all the signal conditioning for the VR sensors, stepper motor driver (idle air control) and MAP sensor. An hour in the office the following day and this was the result, a nice waterproof ECU housing with proper automotive connectors.

When I was stripping out the Lexus engine way back when I really liked their setup where they had 3 I think of the 5 ECU connectors were dedicated to the engine wiring harness so when you wanted to pull the engine rather than having to dismantle it to get at all the connectors you simply unplugged the appropriate connectors, pulled it through the bulkhead and left it with the engine. This PCB has taken inspiration from there - the gray connector is all the "vehicle" wires, power supply, O2 sensor, fuel pump and debug. The black connector is all the engine wires: ignition, injectors, stepper, crank, cam, IAT, coolant, TPS etc.
There will be a Mk2 of this ditching the Core4 unit and most likely replacing the Atmel processor with an STM32 one and putting it all onto one PCB but the pin-out will likely remain the same to be able to just swap it straight in.
And to not scare @Stellaghost our resident metalworker away some bending and welding of metal later we have a bracket to mount it where YAFB (yet another fuse box) was added by some of the previous owners.

At this point we were well and truly in the lead up to the wedding / limewashing according to the photos on my phone so most of the progress seems to be documented by random photos I sent to @PaulMc for finding out what connectors were (thanks for that!). A significant benefit for running an electronics company at this point because of getting trade account discounts through distributors and not having to pay shipping as connectors were lumped in with other orders thus negating having to trawl through ebay to find the right ones. The other photos appear to be lots of random ones to @Bowie69 along the lines of WTF is this thing and what does it do... (Did I mention petrols were black magic).
Oh and rebuilding the JCB engine - that was fun, purely mechanical but god that thing puts automotive engines to shame. Refitting the sump involved a ratchet strap and bribing a 6-year old child to operate the strap whilst I tried to guide it and bolt it in place. It's about the same weight as a Tdi block.