MembersPage/JohanMo

I'm about to try getting VEMS running on my Saab 9000 2.0 Turbo -89. And hopefully i'll learn more about electronics during the installation process (newbee at the moment). And helping two of my friends to install VEMS on their cars.


Thanks for the replies and help i've gotten so far


050527


050526

When the AVR boots:


050526

Some pictures of the progress.

work_setup.JPG

My work setup

flyback.JPG

Flyback

internal_connectors.JPG

My internal connectors

inj+ign+boost+idle.JPG

Inj+Ign+Boost+Idle


050509


050509


050507

Back on track again, after a quite long brake. Changed apartment.. lost interest.

Tuned in WBo2 and now going to finish the rest.

Use "M 724 B14 ZP" diodes should for "DD Flyback low voltage", they are similar to ES2J.

Injection (flyback), Ignition, EGT, inputtrigger and maybe knock.


040708

Maybe a stupid question but witch are the "SMD 5.1v zener"? (for EDIS) The zeners look like the normal LL4189 diode, but they clamp at -5.1V. It is very easy and safe to apply 8..20V through a 500..5000 Ohm resistor, and see the zener clamp at 5.1V Uca (between cathode and anode). Both the zener and the diode clamps at appr. 0.7V Uac.

And how is the SAW connection made? A common way is using a FET in the place of an IGBT, and a 1k pullup to 5V. (and approporitate configuration so EDIS output control is used, not dwell-based dummyign; see ign_out).

BTW: should we change the semantics of h[2] elements so it uses digitalout() so any output can be used for ignition ? It would only cost a few clock cycles.


040706

Recived a new MAX232-chip from Marcell (thanks), soldered it and now its working.

Feels good to have the genboard up and running so i can countinue the building.


040628

Tested the MAX232-chip yesterday.

So if i assume right the MAX232-chip is broken.

Was the RX-port on the genboard tested before shipping?

Yes, of course, it's part of the test procedure. In fact only the bootloader is sent via ISP, the test firmware is uploaded via RS232 (uploading the firmware with BootLoader, or even just verifying it requires both dir of the bidirectional communication working).

I've seen small solderer particles cause short (that's why it is a good idea to clean the board), but never seen a broken MAX232 chip. The MAX232 is actually more durable than most other chips. Did you have the RXTX connected to (the free pins of) EC18 already? Wasn't something special accidentally connected to the given pins?

I havent connected it to EC18, maybe it got broken when i turned the rs232 connector the wrong way around, as i wrote earlier that i did. Anyhow it working now. Ok. that explains. We thought the max232 is quite tolerant to connect output to output, but it is still illegal. Unfortunately we cannot add a resistor to the output, as it would reduce cable range severely, which is already small: The non-symmetrical drive sucks (RS232, 1-wire) vs. symmetrical (Ethernet, RS485, CAN).


040624

Im still trying to find whats wrong with my RS232-interface, done some meashuring (ohms) on the JP_ISPI.

This was the lowest resistance-value i found, there where more differances between the boards.

Could the MAX232-chip be broken, any way to check it?

Tried to start the Bootloader by shorting RXD and TXD on the JP_ISPI, it worked. But not on the SV2... I really need more hints, cant find anything visually anyway.

It is very easy to check the MAX232. You already checked that AVR =>PC direction is perfect.

This is correct behavior, as the MAX232 is inverting. You can measure the signal near the max, and near the AVR, they are supposed to be the same.

If you have a scope, it's easier, of course (make the PC send characters, eg MegaTune will send 'aaaaaa'...


040622

The recive port on the genboard seems to be broken. I can type mcd on the genboard (PS2) and i get config in Brayterm. But bootloader wont start. In that case you can check the given (1) trace visually and with DVM (for continuity and short).

Tried my other genboard im working on, it worked fine.

Should i try upload the firmware to the genboard through isp with parallel cable. (That is unlikely to fix if there is a trace problem).

Have you tried shorting rx with tx at powerup to enter bootloader? You cannot enter bootloader with a InputTrigger active (except with prog.pl using the 'f' flag), Maybe problems with the trigger circuit? //Emil

Tried that, works on the other genboard i have. And the boards has exacly the same setup so far.

Q. When the bootloader is active how should the lcd look?

A.the bootloader does not ever send command to the LCD, and the LCD keeps content whatever was on there before. (2 lines of black squares out of 4 if the LCD hasn't even been initialized since powerup. If neither good text, nor scrambled text, nor 2 lines of squares appear on the LCD, than you know the LCD does not get power, or contrast setting is bad or LCD is broken).

Squares in the midde lines? This is what i got on the other genboard and it answers "AVREFI1" when i type "S"

Squares in the midde lines is normal when you go directly to BootLoader after powerup (so those LCDs get power and contrast setting is OK).


040620

Managed to communicate with GTKterm, seems to work fine.

But megatunix wont connect. Make sure you exit the 'Man' mode by typing 'bye'. Make sure nothing uses the serial port (try fuse /dev/ttyS0 linux command).

If i turn the cable connected to the genboard the wrong way (?????) around it connects but i get crazy readings. (does NOT sound good. you should use the same connection that worx in Man mode)

This is my cable

rs232cable.jpg


Got the keyboard working!!! It was the cable...

Johan, I think this is normal for LCD to look this way with no sensors or input trigger connected. Values dont change unless keyboard commands are used. If keyboard cable is good, let us know what commands you are using exactly.~Chris


040608:

Am i in big trouble? I've connected the genboard for som testing, see if it works. I havent sorted out the earlier issues yet, but i dont think it has anything to do with my problems that i've got now.

Batt (volt):26,35?????. My power supply is from a computer, it measures 11.52 volts. Johan: Is it ok to use computer powersupply? MembersPage/JohanEriksson: I use the PC supply when testing my V3.0

The voltage divider changed from 20k,100k to 22k,75k. True, we need to make this configurable to match the R13/R6 ratio - very good beginner level firmware excercise Johan: Don't relly get this... (sorry, it's spelled exercise)

R6 was missing from my v3.1 board, and it's also missing from yours (based on the photos). It should be 22K (marked 22E), and can be found in the rescue kit. Fitting this will pull the voltage down to something closer, and then can be fine-tuned in the config. - Rich.

Someone already did this firmware exercise (Dave?) -> actually Marcell did it, try adding batt_cal=BB to your config (GenBoard/InitialConfig) Emil (use batt_cal=BB as a starting value only, calibrate with DVM (measure on the 75k VBATT side, and adjust batt_call in config until the megatune voltage matches the DVM voltage) Dave

I measure current consumption to 90mA. -That's OK, depends on HW config- I have only grounds connectors and 12volt connected. There is always some value on sensor signals, just all around the place if you don't connct it (connect GND to unused signals).

I've tried megatune aswell with the same result.

Measured between "HALL_SUPPLY" and "GND", no short but:5.49Kohm wich is the same value as between "+13.8VBATT" and "GND". Got the same values on both of the genboards.

what voltage do you get on HALL_SUPPLY? with it powered Johan: 4.97volt

megatunix_1.jpg

Big trouble??


040531: I have recived a couple of Vems 3.1 boards. (I'm going to help two friends of mine to install Vems in their cars aswell.)


Some of the components from the rescuekit:

components.jpg

Is there any polarity of capacitors? NO Not the ones in rescue kit

I've made a little PDF-guide of the resistors i've recived that makes it a little easier to find the right value. [resistor guide]


I've done some soldering: Connectors in place vems_bot.jpg


I've got some problems. After soldering one of the boards i realized that the frontplate won't fit, because the board is too wide... (I guess we should add it to the installation section so not only EC soldering height is checked to match frontplate exactly but boardedge to ECpins too: actually EC must be soldered while frontplate is on. How much is the difference? Maybe you can use a small file to remove 0.2mm off the PCB or from the endplate - around the 3 sections where the conflict is - I wouldn't desolder. )

What to do? I'm not to keen on desoldering the connectors.. Desoldering is all about the tools, It takes about 10 min to desolder with a good vacuum desolder iron

connector.jpg


I've soldered the AD597 chip for EGT: Just not shure how to populate the rest for it to function. There are questionmarks in the scheme..

AD597.jpg EGT_scheme.jpg

which resistors and capacitors to use? Very common to look up datasheet. I connected all grounds with wire (short a Cap-pads).


I've soldered for the TPIC8101DW knock interface chip: Some questionmarks here aswell.

knock.jpg

knock_scheme.jpg


Soldered the MAP:

MAP.jpg


Next is prepare for the PIP signal from EDIS.

What about the SAW signal to EDIS, couldnt find anything about it? How is that done?

PIPedit.jpg


Is this the right way? How big fuse?

I think ether place can have a fuse. I used a 2A and put a Inductor on the other.

Are you going to use the stepper driver??

That is the only part that needs a lot of current.

Fuse-edit.jpg