Page 4 of 8

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Fri Nov 05, 2021 8:34 pm
by AndreyB
I am soldering a pair of those on hellen121nissan

One flashed OK and blinks LED happily now, but the other one I have GND and VCC connected somehow. Image is with chip already removed and flux and stuff. I only have one board here so cannot confirm if untouched board is like that.

Does anyone see any questionable spots? I know those images are not great but that's the best I am able to manage :(
image.png
image.png (26.96 KiB) Viewed 81402 times

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Mon Nov 22, 2021 5:33 pm
by JRD McLAREN
I'm found some STM32F072CBT6 MCUs in LQFP48 ..
Will it work ..??

has CAN
instruction set M0

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Mon Nov 22, 2021 5:39 pm
by AndreyB
JRD McLAREN wrote:
Mon Nov 22, 2021 5:33 pm
LQFP48 ..
would be hard to solder it on the existing LQFP32 PCB

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Mon Nov 22, 2021 5:49 pm
by JRD McLAREN

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Thu Nov 25, 2021 7:46 pm
by joaodh
Great project,
I'm trying to get the stm32f042k6, but seems to be out of stock into almost everywhere. It's expected to be compatible with another MCU?

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Sat Dec 04, 2021 12:25 am
by ssmith
I was looking through the code and schematics, and noticed that both Vm and LSU_Vm are routed to the MCU. At first I thought that was so the MCU could detect if LSU_Vm was being dragged down for some reason, but as far as I can tell the code only samples at Vm, not LSU_Vm. Is this just a left over connection from development?

If so you might want to remove it; leaving it in means the MCU is directly connected to an external pin. Not that the 10 ohm resistor for R9 is going to save the MCU from an external event, but still....

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Sat Dec 04, 2021 1:44 am
by AndreyB

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Tue Dec 07, 2021 4:31 am
by ssmith
Maybe this is more of a software question, but any plan to implement barometric compensation for lambda calculation?

Bosch has a nice chart that shows at 0.85bar ambient the 'lp' value is about 5% lower for the same lambda. That's like driving in Salt Lake City (well maybe more like 0.88bar).

Interestingly the chart goes up to 2+ bar, presumably to account for exhaust backpressure, maybe in case it's mounted pre-turbo? Though I don't think it can withstand pre-turbo temperatures. I assume post turbo in an adequate exhaust that pressure is close to ambient? I really don't want to have to install a post-turbo exhaust pressure sensors...

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Tue Dec 07, 2021 4:33 am
by AndreyB
I'd say that should be a GH ticket not a forum post :)

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Tue Dec 07, 2021 4:38 am
by mck1117
ssmith wrote:
Tue Dec 07, 2021 4:31 am
Maybe this is more of a software question, but any plan to implement barometric compensation for lambda calculation?

Bosch has a nice chart that shows at 0.85bar ambient the 'lp' value is about 5% lower for the same lambda. That's like driving in Salt Lake City (well maybe more like 0.88bar).

Interestingly the chart goes up to 2+ bar, presumably to account for exhaust backpressure, maybe in case it's mounted pre-turbo? Though I don't think it can withstand pre-turbo temperatures. I assume post turbo in an adequate exhaust that pressure is close to ambient? I really don't want to have to install a post-turbo exhaust pressure sensors...
I think that refers to *differential* pressure, right? Not absolute pressure?

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Tue Dec 07, 2021 5:57 am
by ssmith
mck1117 wrote:
Tue Dec 07, 2021 4:38 am
I think that refers to *differential* pressure, right? Not absolute pressure?
It says absolute pressure of the exhaust gas. Section 3.3 of https://www.ecotrons.com/files/Bosch_LSU49_Tech_Info.pdf
Is there better PDF?

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Tue Dec 07, 2021 6:05 am
by AndreyB
ssmith wrote:
Tue Dec 07, 2021 5:57 am
Is there better PDF?
our collection at https://github.com/rusefi/rusefi_documentation/tree/master/OEM-Docs/Bosch

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Fri Dec 17, 2021 3:09 pm
by joaodh
Today I received 5 boards, need to get the components to insert.
I'm expecting use the module as standalone without CAN, I will add a display to show the current values.
It's ok if I use the STM32F031K6T6?
I know that I will need to adapt some code, but I already have to do it to add the display.

Thanks for this great project 😀

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Fri Dec 17, 2021 3:32 pm
by AndreyB
joaodh wrote:
Thu Nov 25, 2021 7:46 pm
I'm trying to get the stm32f042k6
Please fill in "location" on your profile. Please post a "hello world" topic maybe?

I have some stm32f042k6 chips

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Fri Dec 17, 2021 4:00 pm
by JRD McLAREN
joaodh wrote:
Fri Dec 17, 2021 3:09 pm
......., I will add a display to show the current values. ....
This is good Idea for the future ...
"Standard" 0-5V output will be welcome ... in my case ...
(and "1V" output also ... LAMBDA 1 = 1Volt)
(to use "standard Voltmeter" for lambda readings)

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Sun Dec 19, 2021 4:30 pm
by joaodh
AndreyB wrote:
Fri Dec 17, 2021 3:32 pm

Please fill in "location" on your profile. Please post a "hello world" topic maybe?

I have some stm32f042k6 chips
Sorry for that, I have updated some info about me on my profile. I don't see where should I make the hello world post.

I'm asking for the STM32F031K6T6 because I can get some of these one from AliExpress, without pay a lot for the shipping.

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Sun Dec 19, 2021 5:05 pm
by AndreyB
joaodh wrote:
Sun Dec 19, 2021 4:30 pm
I don't see where should I make the hello world post.
https://rusefi.com/forum/viewforum.php?f=2

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Thu Dec 23, 2021 1:45 am
by stefanst
I am currently bench testing a Proteus Honda K-125 board. This board has a built-in WBO controller. I built an adapter harness for the O2 sensor from the JST connector to an LSU 4.9.
The board is fully connected to a Proteus via pigtails. The Proteus is powered via USB. I'm feeding 12V from a lab power supply to the WB sensor and also into the proto area on the Honda board. Without the WB sensor we're sucking approx. 85mA, with the WB it's 120mA. The red LED on the WBO controller is dim. RPM self-stim is enabled at 1200rpm. I expected to see the WB sensor heating up with the rpm signal, but it seems to be in standby.
The canReadCounter is happily counting up. canWriteOk is also counting up.

This is the tune in question: https://rusefi.com/online/view.php?msq=787

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Thu Dec 23, 2021 1:54 am
by AndreyB
stefanst wrote:
Thu Dec 23, 2021 1:45 am
The Proteus is powered via USB.
I believe it cares about proteus voltage as received via CAN. Let's give Proteus +12 volts as well?

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Thu Dec 23, 2021 4:22 am
by stefanst
I am here to report success. Turns out there were some conditions that needed to be met for the WBO module to even kick on the heater:

Under "Controller" -> "Can Bus Communication" -> "Enable rusEFI Can Broadcast" = "true" must be set
Under "Sensors" -> "EGO Sensor" -> "Enable Can Wideband" = "true" must be set

There was also an opinion voiced that the board needs to see voltage on the "vBatt ADC Input" pin. This is as yet unconfirmed.

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Mon Jan 17, 2022 7:13 am
by de1phi
can you share information on how to connect this module to the Frankenso board?

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Mon Jan 17, 2022 7:20 am
by mck1117
de1phi wrote:
Mon Jan 17, 2022 7:13 am
can you share information on how to connect this module to the Frankenso board?
Connect CANH, connect CANL, make sure there's a terminating resistor at both ends of the bus, and that's it!

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Tue Feb 22, 2022 5:00 pm
by opelpanfan
Does anyone have STM32F042K6T in stock? Need 10 units in UK :)

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Tue Feb 22, 2022 5:30 pm
by AndreyB
opelpanfan wrote:
Tue Feb 22, 2022 5:00 pm
Does anyone have STM32F042K6T in stock? Need 10 units in UK :)
https://www.shop.rusefi.com/shop/p/stm32f042k6t-lot-of-5

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Mon Mar 28, 2022 8:45 am
by Hmelik
JRD McLAREN wrote:
Fri Dec 17, 2021 4:00 pm
joaodh wrote:
Fri Dec 17, 2021 3:09 pm
......., I will add a display to show the current values. ....
This is good Idea for the future ...
"Standard" 0-5V output will be welcome ... in my case ...
(and "1V" output also ... LAMBDA 1 = 1Volt)
(to use "standard Voltmeter" for lambda readings)
I also need this ))

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Sat Apr 09, 2022 2:32 pm
by Hmelik
Hello!
I try connect to controller, after pressit set index 0.
Wats wrong I do?

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Sat Apr 09, 2022 2:40 pm
by AndreyB
Hmelik wrote:
Sat Apr 09, 2022 2:32 pm
Wats wrong I do?
You do not post picture of your controller, you do not tell state of LEDs, you did not clarify if you have flashed your controller somehow. We have to assume the worst because humans are sometimes strange.

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Sat Apr 09, 2022 2:46 pm
by Hmelik
AndreyB wrote:
Sat Apr 09, 2022 2:40 pm
You do not post picture of your controller, you do not tell state of LEDs, you did not clarify if you have flashed your controller somehow. We have to assume the worst because humans are sometimes strange.
OK My mistake

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Sun Apr 17, 2022 4:57 am
by AndreyB
Who would be the first one to try using FCM32F042? Maybe at least glance over Chinses datasheet?

But that's LQFP-48 not LQFP-32 like the official board.

https://lcsc.com/product-detail/Microcontroller-Units-MCUs-MPUs-SOCs_Flashchip-Microelectronics-FCM32F042C6T6_C2972836.html
image.png
image.png (29.31 KiB) Viewed 76284 times

Re: Wideband Controller: Fully Custom, no ASIC!

Posted: Sun Apr 17, 2022 8:03 am
by JRD McLAREN
I have some PCBs for LQFP48 ...

EDITED:
10 pieces ordered ...