PDA

View Full Version : Whelp, no turning back now.



x2percentmilk
01-27-2011, 06:01 PM
I submitted my proposal for my senior design project, looks like I need to step up to the plate, and commit to making this damn thing. The overall goal is to make a custom, super affordable, programmable ECU for our cars. The goal by Late April / May is to get the car to start and idle.

Ive been doing TONS of research on this so now its time to get the ball rolling, wish me luck, ill try to keep you guys updated if I have time. Id love any suggestions / feedback as im going as well.

MADMarc
01-27-2011, 06:04 PM
GL with it man. Mechanical Engineering or Electrical?

x2percentmilk
01-27-2011, 06:06 PM
Computer Engineering w/ Computer Science minor, but I cant even count how many electrical engineering credits ive taken.

bluzvr4
01-27-2011, 06:31 PM
will this benefit 2nd gens or just 1g guys? either way good luck

GTOJOE
01-27-2011, 06:41 PM
how affordable is super affordable?

x2percentmilk
01-27-2011, 06:44 PM
400-600 dollars, depending on how things work out. When its all done it should work for any 3/s, though you'll need the separate CAM/CAS sensors of the 93+, and maybe some other small details ill find out later. Im hoping to even allow you to run this while leaving the stock ECU in place for OBD, if you care/need to. If its commercially viable ill also have a neat dash accessory for it and some other fun stuff, but thats looking into the future.

stealthee
01-27-2011, 08:16 PM
FYI the 91-92 CAS and 93+ CAS are directly interchangable. The signals are derived the same way. The ECU doesn't know the difference. There is only a minor difference in latency between the two styles.

I had a guy buy a 95 NA Fed Spec ECU and drop it into his 92 with no problems.

IPD
01-27-2011, 08:33 PM
so you're going to do what gatecrasher never finished?

easily worth $600, assuming:

1. it's reliable
2. it's pre-mapped for stock

biggest drawback of AEM is the amount of tuning required. if we can get good maps for this, it should really get this platform moving.

HLxDrummer
01-27-2011, 08:42 PM
Are you talking piggyback or standalone? If standalone for that price and it works very well I would definitely buy. Even if it was similar to a stock flash-able ECU I'd be down!

If you need any help or need a test subject hit me up :)

Austin@STM
01-27-2011, 08:46 PM
That price should be very doable, AEM could do that price very easily, im sure there isnt much money at all into building an EMS, they are just charging for there research and time involved, oh and to make a ton of money.

x2percentmilk
01-27-2011, 08:59 PM
Thank you stealthee, I wasn't sure if the signals ended up being the same in the end, so in that case the cross year application holds true.

1. Reliability will always be a concern. My guinea pig and test vehicle will be my daily driver, so thats definitely something I want out of it as well. Ill even be using some industry proven/standard parts for safety.

2. The goal is to make it a one size fits all sort of application. If you have a stock vehicle, you should be able to unbox it, plug it in, and turn your key. If you have larger injectors, just choose the size and go. Fine tune adjustments can be made from there, how deep you want to go is up to you. Boost control/maps will be an option, as well as running speed density. Those who want to toy with red lines, wideband o2 targets, anti lag and 2step launch control will be able to.

By the way, anyone have any links to solid resources for speed density? Im only finding general information.

Yes, this will be a standalone. Complete control of everything.

I'm fairly confident in my price target. Those companies like AEM have overhead and longevity to worry about, so they up the prices like crazy, seriously for $1600 I can make my gaming PC twice. Ill be honest with my pricing and will offer it as low as I can while still making it worth my time. I plan on making this into a company / carreer, and I need to eat, so there will be some profit involved, but im not much of a capitalist and would honestly give them away for free if I could.

Caswell239
01-27-2011, 09:38 PM
Very interested

bluzvr4
01-27-2011, 10:01 PM
im excited now i want one or 2 lol get busy and get this thing going lol

CoopKill
01-27-2011, 11:05 PM
In for awesomeness!

CoreyB
01-27-2011, 11:13 PM
How big is your team that you have at your disposal? It would be great if you could do this but to be honest it is a huge thing to take on. I wish you luck in you endeavors though.

IPD
01-27-2011, 11:22 PM
How big is your team that you have at your disposal? It would be great if you could do this but to be honest it is a huge thing to take on. I wish you luck in you endeavors though.

why does he need a big team? gatecrasher had the 98-99's mapped out. if i'm not mistaken, this is a matter of reverse-engineering the programming and putting it on a flashable medium. we already know where the harness pins go too.

maybe i'm making this sound too easy. i'm sure there's a lot involved here. still, it's basically an EEPROM, cloned fed-spec ECU coding, and a plug that fits our harnesses.

...bonus points if he makes it ATX compatible from the ground up.

bluzvr4
01-27-2011, 11:27 PM
this is going to sound like a noob question but i dont know so im asking lol wtf is atx?

CoreyB
01-27-2011, 11:30 PM
Did Gatecrasher ever release a product? The eprom is just a part of the circuit you still need to build the power supply and delivery aspect of the circuit. If it was easy it would have already bean done not just discussed Imo.

CoreyB
01-27-2011, 11:31 PM
this is going to sound like a noob question but i dont know so im asking lol wtf is atx?
junk that nobody wants.

bluzvr4
01-27-2011, 11:32 PM
well that sums it up lol

CoopKill
01-27-2011, 11:33 PM
atx = auto trans

bluzvr4
01-27-2011, 11:34 PM
i see i see is the x for awd or im a looking into to far lol

CoreyB
01-27-2011, 11:35 PM
Auto transmission

IPD
01-27-2011, 11:39 PM
junk that nobody wants.

you shut your whore mouth. :p

p.s.

there's actually several differences between n/a and tt ecu's; apart from the obvious. having this device with native support for the TCU would be quite beneficial for fwd-tt's; eliminating the need to hotwire.

CoreyB
01-27-2011, 11:43 PM
Lol just yanking your chain buddy

x2percentmilk
01-28-2011, 12:09 AM
Glad I see some interest already :) Yeah, im working on this alone (fun fun). It really isnt TOO bad. Its really just (in) -> (programming) -> (out). The in and out are more complicated then they seem, and do require some electrical engineering knowledge. It allows a tiny microcontroller to control high voltage things like our coil packs, or receive information from the knock sensor and CAS. Its why the stock board looks complicated and why there are so many components.

Ive been thinking alot about ATX and it will be seen in the final product. Given that im lucky and that the TCU controls almost everything I cant imagine it being too difficult, though it wont happen until later stages when I can get testing on someone else's auto. I would need to dig and find more information on what these "torque reduce request" lines do as well.

stealthee
01-28-2011, 07:03 AM
i see i see is the x for awd or im a looking into to far lol

ATX actually means automatic transaxle.

akotten
01-28-2011, 07:13 AM
Sweet...subscribed :cool:

hdnixon
01-28-2011, 02:03 PM
Good luck with this project.

As a future progression maybe you can ditch the PTU so guy's can run coil on plug easier? Just thinking out loud

HilbillyHomeboy
01-28-2011, 02:15 PM
Best of luck, keep us posted with your progress!

Jeremy

Chris95RT
01-31-2011, 10:25 AM
Pretty ambitious, enjoy the project.

Just a hint since I've done something similar in the past, and now do it for a livingish... document everything before you start writing code. The key to a successful embedded layout is organization, not quality of code... you would be amazed at how simple to understand somee of the Powertrain code running on your PCM is. Oh, and I would go as simple as possible for your first pass. You're going to run into EMI problem when it gets to the hardware part.

FluffyCow
01-31-2011, 01:42 PM
Nice ambitious project. Good luck! Even if you don't get it 100% working, hopefully you get the grade you need!

If this DOES work...then...oh boy I think I'll eventually have a SAFCII for sale..

Greg E
01-31-2011, 05:24 PM
Why not design an eprom innerface with the stock mirco-controler? Hardware and software is already there. Just the hardware to edit the code is not...

jba3
01-31-2011, 05:51 PM
Interesting. Good luck with it.

ikOnone
01-31-2011, 05:56 PM
I submitted my proposal for my senior design project, looks like I need to step up to the plate, and commit to making this damn thing. The overall goal is to make a custom, super affordable, programmable ECU for our cars. The goal by Late April / May is to get the car to start and idle.

Ive been doing TONS of research on this so now its time to get the ball rolling, wish me luck, ill try to keep you guys updated if I have time. Id love any suggestions / feedback as im going as well.

sounds like an awesome project. i did a data aqisition system for the school's sae formula car for my senior design project, it was fun.

just as an fyi, this might not be the case at your school but i thought it was the norm. anything developed at my school using school supplies (oscilloscope for example) is technically owned by the school and you are not allowed to sell it without the schools concent and probably payment to the school. that is how it was at my school at least. would they ever know? maybe not. just saying, something you might want to look into.

akotten
01-31-2011, 06:35 PM
sounds like an awesome project. i did a data aqisition system for the school's sae formula car for my senior design project, it was fun.

just as an fyi, this might not be the case at your school but i thought it was the norm. anything developed at my school using school supplies (oscilloscope for example) is technically owned by the school and you are not allowed to sell it without the schools concent and probably payment to the school. that is how it was at my school at least. would they ever know? maybe not. just saying, something you might want to look into.


FSAE is where its at! "Why? Because Race Car!!!" lol

x2percentmilk
01-31-2011, 08:23 PM
Thanks guys!

@hdnixon: Ill keep coil on plug applications banked for the future

@Chris95RT: Thanks, im having a hard enough time keeping my research organized haha. I often times slack with documenting, so that is a good tip, ill be keen to keep everything neat and organized. I knew EMI would be coming at some point but I've been trying to forget about it until it happens :) Perhaps not the best approach, but an approach none the less :P

@Greg E: I dont really enjoy reverse engineering at such a low level, plus with the issues that past projects have and the final costs they ended up with for clunky mediocre user control just kind of scared me. I dont want the ECU to be a restriction as far as tuning goes, wether it is usability, functionality, or cost.

@ikOnone: The way they explained it to us was who pays for the parts owns the work. If there is ever a hassle, I have my own oscilloscope, meters, and other various electronic equipment. Theres alot of free software (KiCAD, for example) out there as well. Also, what I will end up with in may will basically be a mess and more closely resembling a research project than a product, so im hoping they leave me alone :)

Chris95RT
01-31-2011, 10:28 PM
What micro do you plan on using?

x2percentmilk
01-31-2011, 10:45 PM
I have experience with freescale 9S12's, but i'll probably end up with a 16 bit PIC. Free development tools, tons of info, and super easy in circuit programming make the PICs pretty attractive.

Chris95RT
01-31-2011, 10:54 PM
I'd give some serious thought to a flavor of ARM and leave the Pic(all of them) and HCS12 behind, or PPC depending on if you want an automotive certified part.

x2percentmilk
01-31-2011, 11:12 PM
While tantalizing, I think im going to keep it in microcontroller territory for now. PIC has quite a few AEC-Q100 qualified controllers, so I think it will fine.

Chris95RT
01-31-2011, 11:21 PM
Those are both micro controllers, iirc isn't the PIC30F a ds variant? Regardless, there's a good chance some flavor of the PPC is in many daily drivers! But good luck! Get something with memory!

x2percentmilk
03-01-2011, 02:53 AM
Just deciding to bump this up with a short update. Still working on this readily...kind of getting bogged down by the amount of writing we need to do for the project, but its moving along.

Im starting to get my parts in, i have broken the design up into chunks and things look great. Currently have a PIC24FJ256GB110 in my hands. Will be using it for the prototype at least, and will see how things work out. The goal by april / may is to have it control injectors, spark, and the IAC as minimally as possible, just enough to get the car to start and idle. I've also been working on noise and isolation issues.

My patch harness is also near complete so ill be able to start taking some oscilloscope readings soon :)

Chris95RT
04-10-2011, 05:40 PM
What compiler did you end up going with, or are you using Microchip's MPLAB (or whatever) software?

THE_FATTIE
04-10-2011, 08:08 PM
This sounds awesome...

VR-4 0wnz j00
04-10-2011, 10:43 PM
Good luck! I want one!!!

mb3000
04-10-2011, 10:47 PM
Subscribed.

Jesters Deadd
04-11-2011, 03:32 PM
subscribed.

ViperZ
04-11-2011, 06:32 PM
Subscribed!!!

Nationalmilkman
04-12-2011, 11:16 AM
Subscribed.

marshallh
04-12-2011, 01:20 PM
Ill be honest with my pricing and will offer it as low as I can while still making it worth my time. I plan on making this into a company / carreer, and I need to eat, so there will be some profit involved, but im not much of a capitalist and would honestly give them away for free if I could.

I'm just curious, how much of your own expense are you covering right now? I am at the tail end of a project that's taken me over a year, and I will tell you this; people will PLEAD and BEG for you to lower your price, NO MATTER what it is. Also, while money will not seem like a huge deal now, because it's interesting, there's a good chance during the tail end of the process (the mind-numbing stuff) you will be forcing yourself with all your effort just to work on the damn thing, and money is a HUGE reason to keep going.

Set your price high. You can always lower it later but it's VERY hard to raise. You absolutely must make this worth your time and effort. At the end of this project you'll realize how much hidden work / corner case finding / idiot proofing has to be done, NEVER short change yourself or let others do it to you. It's one thing to be an engineer working for someone else, and another entirely to be a one man show.


Pretty ambitious, enjoy the project.

Just a hint since I've done something similar in the past, and now do it for a livingish... document everything before you start writing code. The key to a successful embedded layout is organization, not quality of code... you would be amazed at how simple to understand somee of the Powertrain code running on your PCM is. Oh, and I would go as simple as possible for your first pass. You're going to run into EMI problem when it gets to the hardware part.

This is super true, DOCUMENTATION, don't feel like you have to plan every single thing in advance, but you will need docs to retain your sanity. Your mind starts to do weird things under stress.
I have a 12 page PDF that I've been adding to as my project's been progressing, stuff like hardware register definitions, how to use the hardware, pitfalls to be aware of, etc.
Consistency with your docs and your code is crucial. Comment the shit out of your code.

PIC is a good choice, I would stay away from AVRs because Atmel loves to EOL products whenever it feels like it.

Anyway, if you have any questions feel free to PM me, I could write a book with all the numerous things I've had to learn over the past while.

x2percentmilk
04-12-2011, 01:58 PM
First of all let me say thank you guys for all of the interest, while I will probably still finish this project for myself, the interest is what keep me from shelving it entirely.
Also, thank you marshallh for the tips. My head has already started doing some crazy things (I cant believe its April 12th already!!). Ill let you know if I have any issues. I am covering all of my own expenses right now, but they are manageable right now.

As an update: Hardware is starting to take shape. Initial tests of the injector circuits seem fine, though I wont really know for sure until I test them on the car, which I hope to start doing sometime next week. Software is really my biggest concern right now, as I've fallen a bit behind and have nothing more than my plan and flow charts. Had a few set backs with the PIC and my surface mount soldering ability, so I just now got the thing functioning an recognized by MPLAB. Part of me wishes I just sprung for a fully featured development board to save time.

I am going to have to buy a VR4/TT early this summer so I can really start making some progress. On a side, I also have someone into VW's who is interested.

Chris95RT
04-13-2011, 03:09 PM
I don't know what package type you got from Microchip, but I would give something like this a serious look: SURFBOARDS* 9000 SERIES FOR I.C.s (http://www.capitaladvanced.com/9000ser.htm). But please get away from bread boarding these things, the EMI the transients will generate because of how crappy the breadboard is will have you chasing your tail.

Also, spring for the development board/kit; well worth the cost and you get something you can develop more things on in the future.

STLVR4
04-13-2011, 05:31 PM
I really hope you can figure this out and stick with it.

Been waiting for an opportunity like this for toooooo long.

Good luck.

Subscribed.

familyMAN
04-13-2011, 05:49 PM
Interested in seeing how this turns out!

x2percentmilk
04-14-2011, 09:49 AM
The chip is a TQFP 100 pin 0.5 mm ping spacing. I ordered similar boards to what you showed me, but the pins were so small that even with somewhat decent technique and a boat load of solder wick I still had bridges that I cant even see with a 40X magnifying glass. Theyre so small my multimeter doesnt beep for continuity, but displays some high numbers. I ended up buying a board from microchip with the pin already mounted and the necessary capacitors already mounted. If I cant get this thing working as Id like by next week ill have to overnight a development board or something and pull a few all-nighters.

Thanks guys, will continue with the updates!

Chris95RT
04-14-2011, 11:34 AM
Yeikes that's pretty fine pitch! That kind of part really needs some fine fine solder with a really fine tip and usually some flux; usually a reflow oven is used for something like that. Hopefully you can get a breakout board in place of it, when I was doing development on an 8 bit ST part a while back they gave made some chincy breakout board which made probing signals and development in general really easy.

Your other bet is to make your own using something like Altium, good luck though!

x2percentmilk
04-14-2011, 03:37 PM
Youre telling me! :eek4: was surprised when I opened the package. A breakout board ended up saving me.

Good news: PIC is finally configured and running properly. Time to start writing code

marshallh
04-14-2011, 04:26 PM
Relax, you can solder those no problem. It sounds like you need to be using more flux. Look into buying flux pens -- they're like sharpies, except you "draw" flux with them. Kester is the one brand I know of that makes them.

Sparkfun sells them, also look into getting a set of curved SMD tweezers. I got a set for $4 from dealextreme.

I have a Weller butane iron and I use it for pretty much everything. I have soldered pqfp-208 FPGAs no problem with it. Works best to add just a bit of flux before you run the iron+solder down the row of pins. Add a bit more flux when using the solder wick or you'll have zero luck.

Allelectronics.com sells some awesome solder wick that's flux impregnated, my only gripe is that it's almost too much flux ! haha

Highest percentage rubbing alcohol you can get for cleaning. I use 91% from walmart.

Something to keep in mind as you start adding sensors and such, if weird shit starts happening (that you can't trace down to the code), look to your hardware. Proper decoupling and clean power go a long way. If you suspect a noise issue somewhere use shielding to see if you can track it down.

Eventually when you make a pcb, let me know, i have more tips there too :)

oh, about that flux again, it's a very good idea to add a bit of flux and reflow parts after you're completely finished assmebling. In the pic below, right below the L in Altera, there was a stupidly small solder whisker. Caused corruption on that data lines. Couldn't even see it, multimeter didn't even pick it up like you described. But once I reflowed with flux and cleaned it worked great.
http://img19.imageshack.us/img19/7548/new1kd.jpg

edit: one more thing, PLEASE do not make the mistake of using blue/black/red silkscreen on prototype pcbs! You can hardly see shit, even with the camera flash. Working > looks cool, haha

x2percentmilk
04-14-2011, 05:36 PM
Thanks for the tips. I do actually have the kester flux pen you mentioned, and a Hakko 936 with a few different tips. For now the pre-assembled board is working, but I am going to go back to those other ones and see if I can fix them so I have some backup chips during development, not to mention its a lot cheaper. I just couldn't budget anymore time into bridges that I couldn't see haha. 3 weeks left before this is all due. The solder wick impregnated with flux sounds super handy, im going to have to pick some of that up. Final product will have surface mount components professionally assembled.

Ill let you know if I start having any PCB questions. That blue does look pretty awesome :P

Chris95RT
04-14-2011, 06:54 PM
Something to keep in mind as you start adding sensors and such, if weird shit starts happening (that you can't trace down to the code), look to your hardware. Proper decoupling and clean power go a long way. If you suspect a noise issue somewhere use shielding to see if you can track it down.


In general these are good concepts to remember when building it, but you really want to be careful with shielding as it can, and often does, make things worse. Same goes for decoupling noise from the supply lines and away from IO/AD lines, too much bulk capacitance and you can run into power issues, too little and you get a noisy signal!

Nice board too! The smallest package type I'm familiar with is 144 pin LQFP, and I wasn't very good at soldering with them.

x2percentmilk
04-20-2011, 09:29 PM
Hmm, dont rush should just be tattooed across my hands and arms. 12 volts on the 3 volt line = blown micro.

Overnighted an Explorer 16 board so I can stop beating around the bush and get things going. FreeRTOS is compiled and im starting to write some code. Will start testing my drive circuits on the car tomorrow or sunday. Need to catch up on documentation and progress reports. Also made a connection with a startup that is in the field and in my area. Will probably be working on stuff for them, which will at least indirectly help with getting this thing into production for you guys. In the future. Id like to see at least something resembling a product by the end of the summer. Still cant make any promises on release dates yet.

I have until May 5th to get this completed, a combination of a full class schedule, part time job, new girlfriend, and senior-itis means im falling behind a bit. But no worries, im in a good mood and have a new toy that will be at my door before 10:30 tomorrow morning.

marshallh
05-06-2011, 07:12 PM
How are things going? Down to the wire yet? I know my project is. I'm busting ass to get stuff fabbed in China, and it HAS to be going into finals week.

Too bad they don't have a class for "start a business while not failing school". haha