F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Hardware inside and outside of the ECU
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

Rev1 was just released. https://github.com/rusefi/rusefi-hardware/tree/main/lambda-x2/export/rev1
Any feedback is welcomed.
Short changelog is:
* Switch to 64 pin STM32/GD32
* Add 8MHz HSE oscillator (better clock stability for CAN over wide temperature range)
* Use DAC (instead of PWM) outputs for driving Ip
* Move BT to UART3/USART3, keep USART1 for bootloader/debug
* Drive BT's EN signal from MCU
* Fix RC filters on heater outputs for better voltage measurement
* Use separate ADC input for Vbat measurement
* Use ADC channels for AUX outputs monitoring/diagnostic
* Use PWM noise cancelation circuit on AUX analog outputs
* Removed useless/non-functional protection of Vm outputs
* Fix board outline to fit two types of enclosure ("plastic top" and "alloy brick")
* Add testpoints for TC2030 JTAG probe
* Add buttons for Reset and Boot0
* Add Cfg1 and jumpers
* Replace fuse holder with resettable 0.2A 33V fuse
* Two status LEDs for separate status indication for left and right channel
* Silkscreen labels around testpoints
* Silkscreen labels at uart connector on both sides of PCB
* Un_3x_sense formula is now 0.247 + 3.15 * (Un - Vm)
* Un_sense (not gained) is also routed to ADC input
* Protection from possible Ip current when MCU in reset/bootloader
* While "power on" LED replaced with green
Attachments
lambda-x2-rev1.png
lambda-x2-rev1.png (304.28 KiB) Viewed 30515 times
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

Main connector pinout added to silkscreen.
Attachments
Screenshot from 2023-02-26 12-44-25.png
Screenshot from 2023-02-26 12-44-25.png (218.53 KiB) Viewed 30481 times
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by AndreyB »

Between https://github.com/mck1117/wideband/pull/157 and https://github.com/mck1117/wideband/issues/215 looks like there is enough logic in the wideband repo to justify some sort of automated testing. https://github.com/mck1117/wideband/issues/218 for further discussion.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by AndreyB »

:roll: :idea: :geek: party time!
image.png
image.png (20.08 KiB) Viewed 30290 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Timbelom
Posts: 3
Joined: Sun Mar 19, 2023 8:28 pm
Github Username: Timbelom
Slack: na

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Timbelom »

controller hard-wired to battery
Stock ECU
few times engine restart
actually looks good
Attachments
stock_ecu_few-engine_restarts.zip
(110.51 KiB) Downloaded 294 times
Timbelom
Posts: 3
Joined: Sun Mar 19, 2023 8:28 pm
Github Username: Timbelom
Slack: na

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Timbelom »

everything the same
but with RusEfi ecu
Attachments
rusefiEcu.zip
(103.01 KiB) Downloaded 305 times
Steve-F
Posts: 4
Joined: Thu Mar 23, 2023 9:42 am

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Steve-F »

Dron_Gus wrote:
Sat Feb 25, 2023 9:29 pm
Rev1 was just released.
Hey, has the Rev1 PCB been tested yet?
I'm considering ordering 2 assembled from JLC to have a play with in the garage.

REF3033 is OOS everywhere at the moment, what do we think of ZRC330F02TA as an alternative.
JLC have it in stock currently.

Cheers.
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

Steve-F wrote:
Thu Mar 23, 2023 9:47 am
Hey, has the Rev1 PCB been tested yet?
I'm considering ordering 2 assembled from JLC to have a play with in the garage.

REF3033 is OOS everywhere at the moment, what do we think of ZRC330F02TA as an alternative.
JLC have it in stock currently.

Cheers.
Not yet. It is on the (two) ways to me. Hope to get in two-three weeks.
FW needs significant adjustment, so add +1 week for testing.
About REF3033 - you can always populate L1 and save few cents... Accuracy possibly will degradate (never tested). But main LDO (XC6206P332MR) is close to ZRC330F02TA in accuracy.
Screenshot from 2023-03-23 21-21-35.png
Screenshot from 2023-03-23 21-21-35.png (13.92 KiB) Viewed 30051 times
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

New hw is just arrived.
Attachments
20230413_114815.jpg
20230413_114815.jpg (1 MiB) Viewed 29853 times
20230413_114853.jpg
20230413_114853.jpg (961.04 KiB) Viewed 29853 times
20230413_105721.jpg
20230413_105721.jpg (2.12 MiB) Viewed 29853 times
puff
contributor
contributor
Posts: 2961
Joined: Mon Nov 11, 2013 11:28 am
Location: Moskau

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by puff »

Metal enclosure for a board with bluetooth?
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

puff wrote:
Fri Apr 14, 2023 9:11 am
Metal enclosure for a board with bluetooth?
Optional BT. For BT fans there is plastic case. See first post in this thread.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by AndreyB »

Look dual WBO went to a cold place to do some engineering work!
Attachments
dual-wbo-doing-engineering-stuff.jpg
dual-wbo-doing-engineering-stuff.jpg (270.87 KiB) Viewed 29642 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

Just a funny picture of my test bench.
Too different eras and markets...
Attachments
20230426_231604.jpg
20230426_231604.jpg (1.13 MiB) Viewed 29628 times
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

Accuracy is not so bad by the way.
Screenshot from 2023-04-26 23-16-20.png
Screenshot from 2023-04-26 23-16-20.png (194.2 KiB) Viewed 29628 times
Steve-F
Posts: 4
Joined: Thu Mar 23, 2023 9:42 am

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Steve-F »

I've seen on GitHub there is the issue if you populate all the sensor ESR resistors.
If I just populate the 4.9 ones, is the Rev1 board useable?

I've a V6 I'm building up over the next few weeks, and I'd love to have a play with per cylinder measurements, this would make that possible without costing a fortune.
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

Steve-F wrote:
Fri Apr 28, 2023 9:20 am
I've seen on GitHub there is the issue if you populate all the sensor ESR resistors.
If I just populate the 4.9 ones, is the Rev1 board useable?

I've a V6 I'm building up over the next few weeks, and I'd love to have a play with per cylinder measurements, this would make that possible without costing a fortune.
Dual Rev1? This issue affects only dual channel boards...
Yes. If you have only 22K populated it is ok.
Steve-F
Posts: 4
Joined: Thu Mar 23, 2023 9:42 am

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Steve-F »

Dron_Gus wrote:
Fri Apr 28, 2023 10:03 am
Steve-F wrote:
Fri Apr 28, 2023 9:20 am
I've seen on GitHub there is the issue if you populate all the sensor ESR resistors.
If I just populate the 4.9 ones, is the Rev1 board useable?

I've a V6 I'm building up over the next few weeks, and I'd love to have a play with per cylinder measurements, this would make that possible without costing a fortune.
Dual Rev1? This issue affects only dual channel boards...
Yes. If you have only 22K populated it is ok.
Yes, dual channel Rev1.
I was planning on using 3, so I can have a sensor per runner.

I'll just populate R24 and R71 with 22K.

Are there any other issues that have cropped up that will result in a Rev2?

Thanks :)
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

Steve-F wrote:
Fri Apr 28, 2023 11:53 am
Are there any other issues that have cropped up that will result in a Rev2?
None were found... yet. :)
Krakert
Posts: 38
Joined: Sat Jan 02, 2021 5:31 pm
Location: Heemskerk
Github Username: Krakert

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Krakert »

Hey I just bought this lovely Wideband controller from the RusEFI shop.

Can you tell me a bit more about setting up the controller, how do I setup the CAN bus and all?

And Andrey told me, that for now, only channel 1 is supported in the firmware, could you tell me more about that?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by AndreyB »

I think it's just this one? maybe both just in case.
image.png
image.png (29.07 KiB) Viewed 28742 times
image.png
image.png (2.99 KiB) Viewed 28742 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Krakert
Posts: 38
Joined: Sat Jan 02, 2021 5:31 pm
Location: Heemskerk
Github Username: Krakert

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Krakert »

Further no changes needed in the `CAN Bus Communication` menu. I assume the firmware is already flashed on the unit?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by AndreyB »

I am experiencing something new - overhear error message. Just swapped the sensor and got same exact message again. Attached are two logs both are same second sensor
Attachments
second-sensor-again-overheating.zip
(149.62 KiB) Downloaded 299 times
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
User avatar
Dron_Gus
contributor
contributor
Posts: 450
Joined: Wed Nov 13, 2013 1:11 pm
Location: S-Pb
Github Username: dron0gus

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Dron_Gus »

AndreyB wrote:
Mon Jul 10, 2023 2:07 am
I am experiencing something new - overhear error message. Just swapped the sensor and got same exact message again. Attached are two logs both are same second sensor
Log look weird.
Heater in WarmupRamp state. Duty is 51%. Temperature rises up t o 730 (780 - 50). Heater switches to ClosedLoop (PID regulation), duty is 62%. Temperature rises to 778 (close to target 780). Duty drop to 0% and instantly rises to 100% and stay until heater fails with overheat.
100% at 14V of supply is more than allowed 11V for heater. We have clear check for this.

Code: Select all

            // Limit to 11 volts
            if (heaterVoltage > 11) {
                heaterVoltage = 11;
            }
Have no idea. May be some bug in PWM code or newly introduced Sampler returns incorrect GetInternalBatteryVoltage().
Krakert
Posts: 38
Joined: Sat Jan 02, 2021 5:31 pm
Location: Heemskerk
Github Username: Krakert

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Krakert »

I'm trying to get the controller to work, but with little luck so far.

When it tries to read the sensor it all goes wrong. I'm not sure what is causing this.
Could some with a bit more knowledge look at the log file?
Attachments
log.7z
(124.72 KiB) Downloaded 288 times
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by AndreyB »

A photo of the wiring would help, a few words describing your setup would work - how do you power your unit?

Have you tried on bench? Do you have a regulated power supply to see current consumption?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Krakert
Posts: 38
Joined: Sat Jan 02, 2021 5:31 pm
Location: Heemskerk
Github Username: Krakert

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Krakert »

The probes are already mounted in the exhaust of the 911E, and they are just feed by 12V from the battery.
I connect to them via bluetooth, and they seem to warmup.

mck1117 also looked at a previous log, and he suggested that maybe Vm and Ip may be swapped.
"the warmup goes OK but when it tries to use the sensor it goes off in to oblivion'"
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by AndreyB »

I guess I am sick or just at the end of my rope with customer support :( just connected directly to battery? That would be strange. I specifically ask for details but I can only treat your answer as a not-answer.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Krakert
Posts: 38
Joined: Sat Jan 02, 2021 5:31 pm
Location: Heemskerk
Github Username: Krakert

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Krakert »

image.png
image.png (21.41 KiB) Viewed 28116 times
https://rusefi.com/docs/pinouts/lambda-x2/

Could you help out with matching the pins? Between this diagram and the pinout online of the Lambda x2?
I often get confussed with the naming of the pins.

And there is really not much to it right? I bougth the controller so I hope some testing is done right?
6 wires and some power, maybe I just made a simple fault myself in the wiring. How about the firmware? maybe a bug there, I doutb tho
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by AndreyB »

Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Krakert
Posts: 38
Joined: Sat Jan 02, 2021 5:31 pm
Location: Heemskerk
Github Username: Krakert

Re: F103 dual channel wideband controller + EGT + 2 x AUX In + 2 Aux out

Post by Krakert »

Just checked the wiring, that is all good, the suggestion of mck1117 was incorrect of that Vm and Ip may be swapped.
Post Reply