work in progress rusEfi own wide band controller board add-on using CJ125

Hardware inside and outside of the ECU
JRD McLAREN
contributor
contributor
Posts: 150
Joined: Mon Mar 04, 2019 10:19 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by JRD McLAREN »

..Voltages are from "my" gui, it's UR and UA voltages ...
no VCC or SPI voltages ...

Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: rusEfi own wide band controller board add-on using CJ125

Post by Ahmad »

JRD McLAREN wrote:
Thu Sep 19, 2019 12:46 pm
..Voltages are from "my" gui, it's UR and UA voltages ...
no VCC or SPI voltages ...
No doubt
but my attention is SPI voltages. if we use 3.3V SPI, we walk on the borders that can be changed by ambient temperature.

Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: rusEfi own wide band controller board add-on using CJ125

Post by Ahmad »

Where did you find the curve of temperature vs Nernst resistance or UR?

Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: rusEfi own wide band controller board add-on using CJ125

Post by Ahmad »

I found an empirical formula for temperature(not bad for starting :mrgreen: ):

T = Tcal * vUrCal / vUr

Tcal = 750 for LSU 4.2
Tcal = 780 for LSU 4.9

mck1117
running engine in first post
running engine in first post
Posts: 563
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish

Re: rusEfi own wide band controller board add-on using CJ125

Post by mck1117 »

The shape of the temperature curve doesn't actually matter. You're just trying to keep the resistance (and as a result temperature) at some constant point, so you don't really care the shape of the curve as you shouldn't ever be deviating very far. Since the function of resistance (and as a result vUr) is continuous, a small change int the temperature results in a small change in the voltage, so at some "zero width" point, it's effectively linear.

Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: rusEfi own wide band controller board add-on using CJ125

Post by Ahmad »

No doubt mck1117.
The temperature displaying results better user interface.

infinityedge
Posts: 17
Joined: Fri Dec 27, 2019 4:43 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by infinityedge »

russian wrote:
Sun Jul 03, 2016 1:43 pm
Our little board for Bosch CJ125

https://github.com/rusefi/rusefi/tree/master/hardware/CJ125_board

ibom available at https://rusefi.com/docs/ibom/
Where is the firmware code for the wideband control stashed?

User avatar
AndreyB
Site Admin
Posts: 10746
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: rusEfi own wide band controller board add-on using CJ125

Post by AndreyB »

infinityedge wrote:
Fri Dec 27, 2019 5:08 pm
Where is the firmware code for the wideband control stashed?
https://github.com/rusefi/rusefi/tree/master/firmware/hw_layer/sensors
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

infinityedge
Posts: 17
Joined: Fri Dec 27, 2019 4:43 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by infinityedge »

russian wrote:
Fri Dec 27, 2019 10:40 pm
infinityedge wrote:
Fri Dec 27, 2019 5:08 pm
Where is the firmware code for the wideband control stashed?
https://github.com/rusefi/rusefi/tree/master/firmware/hw_layer/sensors
Thank you!

User avatar
AndreyB
Site Admin
Posts: 10746
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: rusEfi own wide band controller board add-on using CJ125

Post by AndreyB »

Would anyone be available to help by adding lcsc.com part numbers into schematic component fields? This way we would be able to pre-assemble these little boards.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

JRD McLAREN
contributor
contributor
Posts: 150
Joined: Mon Mar 04, 2019 10:19 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by JRD McLAREN »

I have no problem with this...
..
but ,, in my opinion...
board need to be redesigned...
..

heater led..
bigger pads for sensor wires
2 layer board
.......

infinityedge
Posts: 17
Joined: Fri Dec 27, 2019 4:43 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by infinityedge »

JRD McLAREN wrote:
Wed Jan 08, 2020 7:53 am
I have no problem with this...
..
but ,, in my opinion...
board need to be redesigned...
..

heater led..
bigger pads for sensor wires
2 layer board
.......
Might also want to switch out the VNS14NV04 power driver for a non-obsolete part as well.

User avatar
Paul Walker
Posts: 6
Joined: Tue Jan 14, 2020 1:44 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by Paul Walker »

In regards to the topic of board redesign, why was the SOIC24 package of the CJ125 chip chosen instead of the LQFP32? Both the package sizes seem readily available on FutureElectronics and the LQFP32 is half the size of the SOIC24.

User avatar
kb1gtt
contributor
contributor
Posts: 3668
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: rusEfi own wide band controller board add-on using CJ125

Post by kb1gtt »

I believe at the time, of the original circuit design, the SOIC24 was available, but the other was not. That might have changed as time progressed. I do not recall any specific design concerns, both should be able to work just fine.
Welcome to the friendlier side of internet crazy :)

User avatar
Paul Walker
Posts: 6
Joined: Tue Jan 14, 2020 1:44 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by Paul Walker »

I'm facing some issues with the CJ125 chip. All the SPI communications yield the right results, the Lambda readings are correct (only tested in open air) but the temperature output from the chip seems stuck at ~0.86 V regardless of how hot or cold the sensor is. Tried 4 different chips but all of them behave the same, so I was wondering if it was something wrong with the LQFP32 package because everyone seems to be using the SOIC24 one.

User avatar
AndreyB
Site Admin
Posts: 10746
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: rusEfi own wide band controller board add-on using CJ125

Post by AndreyB »

@960 has a board he is not sharing with us where he has LQFP32 working according to him.
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: rusEfi own wide band controller board add-on using CJ125

Post by Ahmad »

Paul Walker wrote:
Tue Jan 14, 2020 5:33 pm
I'm facing some issues with the CJ125 chip. All the SPI communications yield the right results, the Lambda readings are correct (only tested in open air) but the temperature output from the chip seems stuck at ~0.86 V regardless of how hot or cold the sensor is. Tried 4 different chips but all of them behave the same, so I was wondering if it was something wrong with the LQFP32 package because everyone seems to be using the SOIC24 one.
I'm using LQFP32 pakage without any problem!

texasgdp754
Posts: 17
Joined: Mon Nov 18, 2019 11:48 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by texasgdp754 »

Anyone have a reliable vendor with cj125 in stock in either so24 or tqfp32?

Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: rusEfi own wide band controller board add-on using CJ125

Post by Ahmad »

You can find anything in china (www.1688.com).
But in your local store search these part numbers:
Bosch 30481
Bosch 30615

User avatar
Paul Walker
Posts: 6
Joined: Tue Jan 14, 2020 1:44 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by Paul Walker »

texasgdp754 wrote:
Thu Jan 16, 2020 12:38 am
Anyone have a reliable vendor with cj125 in stock in either so24 or tqfp32?
Future Electronics & Rutronik would be your go to in the North American Market

User avatar
Paul Walker
Posts: 6
Joined: Tue Jan 14, 2020 1:44 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by Paul Walker »

Ahmad wrote:
Wed Jan 15, 2020 9:25 pm
I'm using LQFP32 pakage without any problem!
I'm assuming your code and schematic is the same as what rusefi has on their github. Would you also by chance know the part number of the chip you ordered and where you ordered it from?

Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: rusEfi own wide band controller board add-on using CJ125

Post by Ahmad »

The part number is 30615.
In our country, we have many local chip stores, because repairing of commercial ECUs is very popular.
I ordered 30615 from one of this stores. But the gateway of these chips is chinese distributors(www.1688.com).
My schematic/Code is same as RUSEFI with some modifications.
Attachments
lambda.png
lambda.png (311.42 KiB) Viewed 9013 times

texasgdp754
Posts: 17
Joined: Mon Nov 18, 2019 11:48 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by texasgdp754 »

Future electronics shows 11 in lqfp32. Ill order there. Only place I can find elsewhere is from china auction sites. I try to avoid them when It comes to ic's.

User avatar
Paul Walker
Posts: 6
Joined: Tue Jan 14, 2020 1:44 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by Paul Walker »

texasgdp754 wrote:
Thu Jan 16, 2020 10:36 pm
Future electronics shows 11 in lqfp32. Ill order there. Only place I can find elsewhere is from china auction sites. I try to avoid them when It comes to ic's.
The part number for future would be 0272240103

User avatar
Paul Walker
Posts: 6
Joined: Tue Jan 14, 2020 1:44 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by Paul Walker »

Ahmad wrote:
Thu Jan 16, 2020 10:26 pm
The part number is 30615.
In our country, we have many local chip stores, because repairing of commercial ECUs is very popular.
I ordered 30615 from one of this stores. But the gateway of these chips is chinese distributors(www.1688.com).
My schematic/Code is same as RUSEFI with some modifications.
Thank you!!!

Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: rusEfi own wide band controller board add-on using CJ125

Post by Ahmad »

Bosch 30615 = Bosch 40103 = CJ125(LQFP-32)

texasgdp754
Posts: 17
Joined: Mon Nov 18, 2019 11:48 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by texasgdp754 »

Bench testing with nucleo stm32f767zi once cj125 boards and components arrive. Will cj125 work on any other spi port like spi4 rather than spi2?

User avatar
AndreyB
Site Admin
Posts: 10746
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: rusEfi own wide band controller board add-on using CJ125

Post by AndreyB »

texasgdp754 wrote:
Mon Jan 20, 2020 2:27 am
Bench testing with nucleo stm32f767zi once cj125 boards and components arrive. Will cj125 work on any other spi port like spi4 rather than spi2?
spi4 support not implemented in rusEfi as of today. There are reports of issues with F7 running cj125 - maybe we have issues with SPI parameters maybe user error, who knows :)
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

texasgdp754
Posts: 17
Joined: Mon Nov 18, 2019 11:48 pm

Re: rusEfi own wide band controller board add-on using CJ125

Post by texasgdp754 »

Assuming spi 1 2 and 3 are all functioning with f4 mcu?

User avatar
AndreyB
Site Admin
Posts: 10746
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City

Re: rusEfi own wide band controller board add-on using CJ125

Post by AndreyB »

A few people have seen cj125 working with rusEfi code but not me so far.

At least my 0.3 hardware talks to me with just 6 wires: GND, 5v, 4xSPI
New commands are cj125_info, cj125_restart, enable cj125verbose - diag register response is now parsed in human-readable form.

Also we have a LQFP-32 version of the module now at https://github.com/rusefi/hw_modular/tree/master/cj125_Module - not tested yet.
Attachments
cj125_restart.png
cj125_restart.png (119.83 KiB) Viewed 5106 times
rusefi_cj125_LQFP-32.jpg
rusefi_cj125_LQFP-32.jpg (715.22 KiB) Viewed 5106 times
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Post Reply