Hey, look, i built something! Neds MicroEMS
Posted: Wed Nov 18, 2015 10:38 pm
Hey guys,
I dont post much here, but pretty close friends with young frederick in real life. He's been complaining that more people need to run his code in their cars, and i kept telling him i would if it was cheaper/easier than the competition
I only have a little 4 cyl car (84 KP Starlet with 7K, soon to be EFI) so i dont need 17 gazillion outputs and inputs to run 15 injectors per port and quadruple spark per valve and what not.
A few friends of mine have all run a microsquirt in their cars very successfully, and i like their little units! Fred will likely disagree, but they are quite cool. If you look at it in a simplistic/binary way of "does it work, yes or no" the the answer is definitely a yes. is it cheap? yes. well, thats all i need from an ECU to some a rubbish inefficient motor designed in the 60's
but guess what... the dollar tanked, and everything because 50% more expensive of us kiwis, and i spent 6 weeks in the middle of nowhere, with not much to do but watch TV or work on the computer, so i thought "how hard can it be!?" and thats how MicroEMS was born 
The name is a bit of a cross over between MicroSquirt, and FreeEMS, because it is actually pin compatible with microsquirt... this is done for 2 reasons,
1) if my hardware, or freds software sucks, i can just buy a microsquirt and plug it into the loom and bobs your uncle
2) if would be easier to convince people who already have a microsquirt, or are in the same position as me, to try this FreeEMS thing
Guess i better show you all a picture aye?

and here's the real one

and one populated.

it even has lights that come on, and the computer actually recognised the USB chip
which is as far as i've tested it, but pretty happy so far!


It tried to make it software compatible with the jaguar board, so it should all just run with little/no changes,m but i did add a couple things to the board. Most Fred hates, and i wouldnt normally put on the board, but it was to make it pin compatible with microsquirt, so i just went ahead and put it all on anyway
Here is the schematic, if you wanna have a look. Pages arent in any sensible order, sorry.
-the analogue inputs are all much the same. I opted for a 2 in 1 diode pack though thats not QUITE as good, but still plenty good enough, i'm sure. Other thing is that the 3rd spare input can be used to measure the battery voltage as a separate input, so you can connect that directly to the battery, or directly to the injector feed, or whatever 12V you want to measure accurately.
-I removed the USB isolation... some people will go "WTF NED!" but i dont have a need for it to be isolated. I really wanted to be able to power the board from USB for when its out of the car and on the bench for whatever reason, and having that isolated is a pain in the back-side, so its no longer isolated, but the 5V from the USB can power the board. (more on that later)
-it has RS232. Why? because microsquirt has it. Will it ever be used? doubt it... but when you're making something to be pin compatible, you cant pick and choose really... The data lines go through a gate, so you can only use one or the other. If they are both talking at the same time, you're going to get garbage on the micro input. It wont break anything electrically though, it just wont work right.
-Also has CAN on board. No idea if freeems even has CAN woring yet, but its hooked up to the pins marked as "we'll use these for CAN one day..." so that should be fine.
-It uses the TC442? fet driver for the ignition. I've had much luck with these before, and fred uses them also so that was a nice coincident
schematic has a 428 on it to show you can get them as inverted and non-inverted and you can pick what part to actually fit.
-LSD and Injector drives is nothing new, all much the same as other boards.
-power is also much the same, but instead of the dual supplies, i opted for just one.
-Also decided not to fit any tans or electros on the board, and fit only ceramics... i just have a strong dislike for tants and electros and im convinced the ceramics will perform just fine in this application.
- on the reg output, there is an ideal diode. This will allow the board to be powered from USB 5V when there is no regulated 5V present, and not back-feed into the reg. Theres a 0R link there is you dont wanna place the expensive ideal diode though.
-Theres a PI-Filter to filter the analogue reference 5V instead of a whole separate supply and that 5V clamp the jaguar uses. It has its limitations, but i fell its sufficient.
-grounding talk... thats always something that gets people up in arms! so i'm not gonna say anything, but theres an optional 0R is foy wanna link PGND and SGND inside the unit, and if you dont then you can do whatever you like externally. Everything runs on SGND except the LSD and injectors. It's a standard 0805 pad, so maybe a cap would be a good thing to place there instead...
i tried to do a fancy thing with the power LED, and it doesnt quite work and might just need a little resistor change adjustment, but the idea was that the green LED would light up when powered on, but if the fuse blew, it would turn to red. In reality, on USB 5V it goes green, regulated 5V it goes to green and a little red (orange) and fuse blown it goes to red. Close enough
- Theres a tacho output, that i attached to some random pin. Hopefully fred can make it do what it needs to do, if not then i dont really mind too much, but i added it anyway.
- theres some optional input protection stuff there for when you dont want to run the MAX9926 and save a couple dollars and sun the inputs directly into the micro.
-theres a silly opto input, just for pin compatibility again
-MAX9926 is much the same, no real changes there either.
thats my quick run through the board. Let me know what you think. I'm obviously too deep into it to make any changes to the schematic etc, but happy to hear your thoughts anyway.
This board, at this stage, is not open hardware. It's my own design and i'm keeping it that way for the time being. happy to share the schematic obviously, and it could likely change to open in the future, but for now i'm holding onto the HW design.
I dont post much here, but pretty close friends with young frederick in real life. He's been complaining that more people need to run his code in their cars, and i kept telling him i would if it was cheaper/easier than the competition

I only have a little 4 cyl car (84 KP Starlet with 7K, soon to be EFI) so i dont need 17 gazillion outputs and inputs to run 15 injectors per port and quadruple spark per valve and what not.
A few friends of mine have all run a microsquirt in their cars very successfully, and i like their little units! Fred will likely disagree, but they are quite cool. If you look at it in a simplistic/binary way of "does it work, yes or no" the the answer is definitely a yes. is it cheap? yes. well, thats all i need from an ECU to some a rubbish inefficient motor designed in the 60's


The name is a bit of a cross over between MicroSquirt, and FreeEMS, because it is actually pin compatible with microsquirt... this is done for 2 reasons,
1) if my hardware, or freds software sucks, i can just buy a microsquirt and plug it into the loom and bobs your uncle

2) if would be easier to convince people who already have a microsquirt, or are in the same position as me, to try this FreeEMS thing
Guess i better show you all a picture aye?
and here's the real one

and one populated.

it even has lights that come on, and the computer actually recognised the USB chip


It tried to make it software compatible with the jaguar board, so it should all just run with little/no changes,m but i did add a couple things to the board. Most Fred hates, and i wouldnt normally put on the board, but it was to make it pin compatible with microsquirt, so i just went ahead and put it all on anyway

Here is the schematic, if you wanna have a look. Pages arent in any sensible order, sorry.
-the analogue inputs are all much the same. I opted for a 2 in 1 diode pack though thats not QUITE as good, but still plenty good enough, i'm sure. Other thing is that the 3rd spare input can be used to measure the battery voltage as a separate input, so you can connect that directly to the battery, or directly to the injector feed, or whatever 12V you want to measure accurately.
-I removed the USB isolation... some people will go "WTF NED!" but i dont have a need for it to be isolated. I really wanted to be able to power the board from USB for when its out of the car and on the bench for whatever reason, and having that isolated is a pain in the back-side, so its no longer isolated, but the 5V from the USB can power the board. (more on that later)
-it has RS232. Why? because microsquirt has it. Will it ever be used? doubt it... but when you're making something to be pin compatible, you cant pick and choose really... The data lines go through a gate, so you can only use one or the other. If they are both talking at the same time, you're going to get garbage on the micro input. It wont break anything electrically though, it just wont work right.
-Also has CAN on board. No idea if freeems even has CAN woring yet, but its hooked up to the pins marked as "we'll use these for CAN one day..." so that should be fine.
-It uses the TC442? fet driver for the ignition. I've had much luck with these before, and fred uses them also so that was a nice coincident

-LSD and Injector drives is nothing new, all much the same as other boards.
-power is also much the same, but instead of the dual supplies, i opted for just one.
-Also decided not to fit any tans or electros on the board, and fit only ceramics... i just have a strong dislike for tants and electros and im convinced the ceramics will perform just fine in this application.
- on the reg output, there is an ideal diode. This will allow the board to be powered from USB 5V when there is no regulated 5V present, and not back-feed into the reg. Theres a 0R link there is you dont wanna place the expensive ideal diode though.
-Theres a PI-Filter to filter the analogue reference 5V instead of a whole separate supply and that 5V clamp the jaguar uses. It has its limitations, but i fell its sufficient.
-grounding talk... thats always something that gets people up in arms! so i'm not gonna say anything, but theres an optional 0R is foy wanna link PGND and SGND inside the unit, and if you dont then you can do whatever you like externally. Everything runs on SGND except the LSD and injectors. It's a standard 0805 pad, so maybe a cap would be a good thing to place there instead...
i tried to do a fancy thing with the power LED, and it doesnt quite work and might just need a little resistor change adjustment, but the idea was that the green LED would light up when powered on, but if the fuse blew, it would turn to red. In reality, on USB 5V it goes green, regulated 5V it goes to green and a little red (orange) and fuse blown it goes to red. Close enough

- Theres a tacho output, that i attached to some random pin. Hopefully fred can make it do what it needs to do, if not then i dont really mind too much, but i added it anyway.
- theres some optional input protection stuff there for when you dont want to run the MAX9926 and save a couple dollars and sun the inputs directly into the micro.
-theres a silly opto input, just for pin compatibility again
-MAX9926 is much the same, no real changes there either.
thats my quick run through the board. Let me know what you think. I'm obviously too deep into it to make any changes to the schematic etc, but happy to hear your thoughts anyway.
This board, at this stage, is not open hardware. It's my own design and i'm keeping it that way for the time being. happy to share the schematic obviously, and it could likely change to open in the future, but for now i'm holding onto the HW design.