Statistics: Posted by abecedarian — Sun Jan 12, 2014 1:13 am
Statistics: Posted by abecedarian — Sun Jan 12, 2014 1:09 am
Statistics: Posted by abecedarian — Sat Jan 11, 2014 11:28 pm
Statistics: Posted by abecedarian — Sat Jan 11, 2014 11:22 pm
That's one reason I'm using DAC's for the outputs back to the ECU, with 5v from the ECU as Vref.As it stands now, 3V at the MCU will not correlate to 3V at the sensor.
Statistics: Posted by abecedarian — Fri Jan 03, 2014 8:13 pm
That wasn't what I was looking for. Your bike is 12V, how does that get to the 5V input? I'm assuming there is a linear regulator or switching regulator somewhere along the path. I'm looking for things like ripple rejection issues, or areas where you can get over voltage issues. I suggest that you only use one 5V source at a time, with out it you run risks of GND loops.Two ways, actually:How do you get 5V?
The reason why they need to be near the regulator has nearly nothing to do with the load. Decoupling caps deal with issues caused by short term current spikes at the device, while these output caps deal with oscillation caused by the linear regulator. Here's a fellow that's experiencing it in a situation very similar to what you are looking to do. http://e2e.ti.com/support/power_management/linear_regulators/f/321/t/245637.aspx it all depends on what the linear spec calls for. Some have these caps installed internally, most do not.C5 and C6 are for the 3v3 circuit, obviously. Strictly speaking they are not required at all since the MCU board has decoupling capacitors installed near the MCU chip already.C6 and probably C5, wants to be much closer to the regulator. The regulator is a high gain device it can ossilate if the output cap isn't just right.
Most of the best designs I know refuse to use these dev boards, as they are not cost effective for real world developments. They way they force you into headers like this almost always creates issues. However there are many DIY'ers that use them well enough and if you only ever plan for a short run low risk effort, they can do well enough. I tend to sit on the fence about how and when to use these low cost MCU dev boards. I would suggest using the header as a last resort, place the chips first, then after it's laid out, place the headers. In your case you have more than enough space, so it should be fairly easy to get the headers to work. I wish I had tome to open in paint to show you the loops. Again this isn't hard failures. it will only result in a raised noise floor, which your design can probably sustain. Your board isn't RF, however with op-amps the raising of the noise floor can create some hidden RF issues. When I say the back should be GND, I mean that should be GND with no physical barriers or breaks. Via's only is highly recommended.I'm open to layout suggestions, but the pin headers (J1, J2, J3, J4) must be located as they are so the MCU board can plug on, and am self-limiting the board to 5cm x 5cm. Also, top and bottom layers are GND planes; power is distributed by discrete traces to the components so I'm curious about what "current loops" you're seeing.
I'm not so interested in what it's measuring, but it's impedance over a variety of voltages. Ultimately it's using small current loops that are then turned into a voltage reference somewhere inside the ECU. If you measure the voltages and currents for a variety of pressures, you can calculate the impedance of the existing system. Once you know the impedance, you can predict what voltage you will need at the MCU to generate an equivalent voltage at the sensor input. As it stands now, 3V at the MCU will not correlate to 3V at the sensor.Now, no one has determined whether the ECU is measuring voltage or current from the sensors so this unit may not work as it's a voltage source not a current source. That can easily be fixed in a future revision, but I have to start somewhere, hence the op-amps and those resistors.
Statistics: Posted by kb1gtt — Thu Jan 02, 2014 11:37 am
Okay.I'm still not seeing the need for the op-amp, you can still use a resistor divider to drop it how ever you want, doesn't have to be 5 to 3V, you can change that divider to what ever you are looking for. Then after the drop, use a clamp to protect the MCU input. This approach can sustain a much higher input voltage issue than the opamp can sustain.
Two ways, actually:How do you get 5V?
C5 and C6 are for the 3v3 circuit, obviously. Strictly speaking they are not required at all since the MCU board has decoupling capacitors installed near the MCU chip already. C6 is a carry-over from a previous design which had the MCU on the board and would be installed close to the MCU. C5 doesn't need to be installed at all, but is there to help smooth voltage fluctuations to the MCU and should be as close to the MCU as possible, which happens to be near the 3v3 pin, as shown. Again, suggested by the person referenced above.C6 and probably C5, wants to be much closer to the regulator. The regulator is a high gain device it can ossilate if the output cap isn't just right.
I'm open to layout suggestions, but the pin headers (J1, J2, J3, J4) must be located as they are so the MCU board can plug on, and am self-limiting the board to 5cm x 5cm. Also, top and bottom layers are GND planes; power is distributed by discrete traces to the components so I'm curious about what "current loops" you're seeing.AS for the layout itself, I'm not crazy about it. I recommend spending more time placing the components than drawing the traces. When I look at it I see lots of current loops that are larger than required, which results in a raised noise floor. This circuit should be easy enough to have nearly no punch through's to the back layer which should be GND. As a general layout technique I suggest placing the components (optimizing the current loops), then draw the traces, then draw the PCB edges. However it's very common folks start with an enclosure then try to shoe horn the components in the box. Which often leads to bad electrical design.
Now, no one has determined whether the ECU is measuring voltage or current from the sensors so this unit may not work as it's a voltage source not a current source. That can easily be fixed in a future revision, but I have to start somewhere, hence the op-amps and those resistors.I don't know the inductive or capacitance properties of the ECU input, so I'm not sure if this is a problem or not, which usually means it is a problem....
... I suspect you are OK with those 1k resistors on the output. However....
Statistics: Posted by abecedarian — Thu Jan 02, 2014 3:15 am
It can go higher for a variety of reasons. I'm sure you've see that these linear regulators will pull you up to 5V, but not down to 5V. I also think you've seen how these schottkey diodes will dump a transient spike to the + rail, which can cause the 5V to rise if there isn't enough of a load pulling it down to 5V. One items folks often over look is that most MCU pins are protected with nearly the same diodes that are commonly used external to the MCU. The diodes internal to the MCU are for ESD not continuous over voltage, this is why folks often use the external diodes which are much larger and can sustain the continuous operation. So if you have a spike, the MCU pin will often dump that energy to the + rail even if you don't have those extra protection diodes installed. If the 5V is sensitive to over-voltage it's often a good idea to add a clamping protection. A common approach is a crow bar circuit. Either that or a shunt to GND. Or the more common often assumed OK as it'd done by many OEM who have much stringent control on the install constraints, is to use not protection. Because this would be used by DIY'er I would not suggest the no protection approach, as you don't have control over how it's going to be installed. There are lots of creative ways to get more than 5V on the + rail, probably one that's more likely is to simply connect the +V when +V is powered. Linears are typically fairly poor about ripple rejection, and can pass more than 5V during upstream fast transients. If you connect the power after it's powered, you often get a large amount of transients caused by the arcing that happens while the connection is being made. Any how, for a DIY approach, I suggest a 5V clamp, or some kind of MCU pin protection. I don't know the failure mode of the op-amp, so I don't know if it would open or short, or other. I would assume it shorts which would mean the MCU would need to bare the load after the op-amp failed any how.Since 5v0 is supplying all the devices none of them should output more than that.
Statistics: Posted by kb1gtt — Wed Jan 01, 2014 2:45 pm
Don't worry about it at least not while there is good contentabecedarian wrote:
Sorry for the long-winded reply.
Both the 500T or 650T need 3 sensors to run the EFI; the 500T needs 1 more to run ignition. As far as I know, the P1 (baro) and Pign (500T ignition) sensors have relatively low failure rates. The P2 (boost) sensors are starting to show their age. Pb are failing at increasing rates because they were not really designed to be subject to 17+ PSI boost for 30+ years... well neither was the P2 or Pign but they were designed to experience that boost level though.I don't think I follow. If you need 4 signals, I see one board as lower cost than multiple boards. Perhaps you are think of projects other than this bike which might not require all 4 signals. Any how, I might suggest looking for 4 outputs.
Basically, you are right. Think of it like it's a 'digital' trim pot. If the output voltage is not what's it's supposed to be, an offset can be added, and plans are there for temp compensation. That is why I'm sampling the ECU 5v0 rail also, to allow for fluctuations on the sensor supplies.This doesn't make sense to me. What do you mean output drift? Perhaps you mean temperature stability, or drift from electrical noise getting induced on the MCU DAC signal. I'm a fan of the feedback where you command 3V then measure it's actually at 3V.
Not sure how I'd get a >7v spike from a 5v regulated source that also supplies power to the processors within the ECU.I'm not sure it's really safer. If you use a rail to rail op-amp, the rail to rail circuits often dump energy when you exceed the rails by like .5V to 1V. So if you get a spike that's more than say 7V, then you're still going to see the spike at the MCU pin. I've not been happy with the rail to rail diode dumping. I'm making progress on a better protection.
Statistics: Posted by abecedarian — Wed Jan 01, 2014 4:21 am
Yes lots of excuses and higher priorities. Kids, work, typical life stuff. You are correct I didn't read the CFI, thanks for the patience as I stumble through figuring out how to offer useful help.I know you're busy so probably didn't look at CFI document I linked to earlier.
I don't think I follow. If you need 4 signals, I see one board as lower cost than multiple boards. Perhaps you are think of projects other than this bike which might not require all 4 signals. Any how, I might suggest looking for 4 outputs.I only have two outputs because I was aiming at comparatively low cost and was thinking maybe variations with different routings which could be stacked, like an 'expansion board' to add two more outputs to be controlled by the MCU. Maybe I'll go towards two boards, one with MPX and DAC and the second with BMP_OP and DAC, or maybe one "sensor" board and one 4 out board. That's part of why I'm posting about this.
This doesn't make sense to me. What do you mean output drift? Perhaps you mean temperature stability, or drift from electrical noise getting induced on the MCU DAC signal. I'm a fan of the feedback where you command 3V then measure it's actually at 3V.The A & B outputs are routed to ADC channels on the MCU. Intent is to have the MCU sample them for consistency / accuracy and fail-safe: if an output drifts the MCU might be able to correct it by adjusting the DAC or completely shut the DAC channel down. I haven't committed to this. I'll likely have a few boards fabbed and DNP that op-amp and related components then do testing to see if they should be added.
I'm not sure it's really safer. If you use a rail to rail op-amp, the rail to rail circuits often dump energy when you exceed the rails by like .5V to 1V. So if you get a spike that's more than say 7V, then you're still going to see the spike at the MCU pin. I've not been happy with the rail to rail diode dumping. I'm making progress on a better protection. See here for details. http://rusefi.com/forum/viewtopic.php?f=4&t=274&start=8Valid question the best answer for which I have is it seems 'safer' to me.
Statistics: Posted by kb1gtt — Wed Jan 01, 2014 12:44 am
I know you're busy so probably didn't look at CFI document I linked to earlier. It explains a bunch.It's my understanding the baro isn't used for altitude adjustments, but is used for live data which can change as air currents around your bike change, not just long term changes as you drive up a mountain or similar.
It's all map / look up table based:I also don't know what your ECU is doing with that data so who knows what algo they are expecting and looking for.
Pb is required needed- it's a manifold sensor, not barometric. That is P1 and why the BMP_OP is there- it's "OPtional", and it's IIC/I2C, not SPI.Looks like Pb would be that BMP_OP header with a SPI interface. I only see the two outputs, but I believe you need 4 signals to the bike. I don't know what you would be generating on A_sample and B_sample. One might be Pb, or P1, or Pign. I see you needing at least 3 outputs, but probably 4 outputs.
Valid question the best answer for which I have is it seems 'safer' to me.For MAP in and 5V sensing, I don't see why you need the op-amps, why not just resistor divide?
Statistics: Posted by abecedarian — Tue Dec 31, 2013 7:56 pm
Statistics: Posted by kb1gtt — Tue Dec 31, 2013 10:59 am
Statistics: Posted by abecedarian — Mon Dec 30, 2013 2:28 pm