
what kind of OP Amp can be used ..?? LM2902PT or TL084IPT
EDITED:
maybe MCP6L04T ..
These are original? Did you get at reasonable price?
Code: Select all
{
CAN_MCR_ABOM | CAN_MCR_AWUM | CAN_MCR_TXFP,
/*
For 48MHz http://www.bittiming.can-wiki.info/ gives us Pre-scaler=6, Seq 1=13 and Seq 2=2. Subtract '1' for register values
*/
CAN_BTR_SJW(0) | CAN_BTR_BRP(5) | CAN_BTR_TS1(12) | CAN_BTR_TS2(1),
};
Code: Select all
{
CAN_MCR_ABOM | CAN_MCR_AWUM | CAN_MCR_TXFP,
/*
For 48MHz http://www.bittiming.can-wiki.info/ gives us Pre-scaler=6, Seq 1=13 and Seq 2=2. Subtract '1' for register values
*/
CAN_BTR_SJW(0) | CAN_BTR_BRP(2) | CAN_BTR_TS1(12) | CAN_BTR_TS2(1),
};
You need to either:hugovw1976 wrote: ↑Wed May 18, 2022 1:49 amI upload firmware to my board but green and blue led blink alternating quickly at boot and then slowly (Firmware integrity check fail).
Thanks, I give it a try.mck1117 wrote:You need to either:
The reason the integrity check fails is that your firmware image is just the firmware, without the required crc at the end, which the bootloader checks to ensure that a firmware update didn't get mis-flashed.
- Disable the bootloader. Set USE_BOOTLOADER=o in f0_module/board.mk, then flash the resulting wideband.bin to your board.
- Build using the script f0_module/build_wideband.sh. This will build a complete image of the bootloader, firmware, and checksum.
Your post is a good spot for me to interject with some considerations.mck1117 wrote: ↑Sun Nov 01, 2020 9:16 pmIirc the only difference is the AC nernst ESR measurement current, and pump current to lambda relationship. The former can be changed by swapping out a single resistor, and the latter is just software. The missing pin isn't a problem, just don't connect it. The signal is still there, it just stays inside the controller instead of also going to the sensor connector.deezums wrote: ↑Sun Nov 01, 2020 5:21 pmWould it be possible to add support for the LSU-ADV sensor? It doesn't use a calibration resistor, so adapting it to a custom harness with this built into the ECU would be one step easier, right? I'm not sure what the difference on the board would need to be, could we populate a jumper for a 4.2/4.9 and a built in cal resistor for the ADV?
Edit: Actually looks like you could just add a resistor and only populate it if you plan on using an ADV sensor? Maybe no resistor at all?
The other option is to duplicate the AC generation circuit (it's just a series RC, after all), and select which one to use based on the sensor type. Leaving the MCU pin as a floating input would effectively disconnect the unused one from the system.
Probably not necessary yet - I have a second bung on my exhaust already too, and was about to make exactly that comparison.
Using "virtual ground + 0.45" for diff amp will produce negative voltage when Nernst voltage is below 0.45. Is not it?
did you try out the trick circuit to generate cleaner "aux analog output" pwm?Dron_Gus wrote: ↑Wed Jan 04, 2023 10:50 pmAny comments on this schematic https://github.com/rusefi/rusefi-hardware/blob/main/lambda-x2/export/rev0/lambda-x2.pdf ?
Planing rev1 with some changes, so review of current schematic will be welcomed.
Changes planned to rev1:
1. switch to 64 pin stm32
2. use stm32 DAC (instead of PWM) for current source
The actual voltage out of the opamp does not go negative though, so any negative value you get due to syntax. For instance, if your ADC is setup as a differential pair then naturally you will get negative ADC values when the negative end voltage is greater than the positive end voltage, but the voltage is never negative as in lower than ground potential.Dron_Gus wrote: ↑Wed Jan 04, 2023 10:50 pmUsing "virtual ground + 0.45" for diff amp will produce negative voltage when Nernst voltage is below 0.45. Is not it?
Any comments on this schematic https://github.com/rusefi/rusefi-hardware/blob/main/lambda-x2/export/rev0/lambda-x2.pdf ?
Planing rev1 with some changes, so review of current schematic will be welcomed.
Changes planned to rev1:
1. switch to 64 pin stm32
2. use stm32 DAC (instead of PWM) for current source
Because any amount of precision on the nernst sense doesn't actually matter. The pump error vs. nernst voltage gain is so astronomically high that it would even work fine to just plumb the nernst voltage from the sensor directly in to the STM32's ADC.
It's not a bare mosfet, it's a protected lowside driver. Same pinout/form factor as an N-type mosfet, but has internal overvoltage/overtemp/overcurrent protection.toalan wrote: ↑Thu Jan 05, 2023 1:07 amOn the Transistor you use to switch the heater, terminal 2 you should protect it with either a TVS diode or a forward conducting diode to 12v. When the heater is powered and the sensor is suddenly unplugged, there is enough inductance and the currents are high enough that terminal 2 will spike in voltage and the current will try to jump the gap between contacts.
I think you are on the right track about connecting nernst directly to the ADC and relying on oversampling to get additional resolution if needed. If you are going to use an amp, it would make the most sense to make the most of it by using vgnd + 0.45 and increasing the gain.
ok, my bad.mck1117 wrote: ↑Thu Jan 05, 2023 9:44 amIt's not a bare mosfet, it's a protected lowside driver. Same pinout/form factor as an N-type mosfet, but has internal overvoltage/overtemp/overcurrent protection.toalan wrote: ↑Thu Jan 05, 2023 1:07 amOn the Transistor you use to switch the heater, terminal 2 you should protect it with either a TVS diode or a forward conducting diode to 12v. When the heater is powered and the sensor is suddenly unplugged, there is enough inductance and the currents are high enough that terminal 2 will spike in voltage and the current will try to jump the gap between contacts.
(https://www.edn.com/cancel-pwm-dac-ripple-with-analog-subtraction/)
dron and I talked about this strategy and it has some real downsides (such as that it kind of doesn't work).