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

Hardware inside and outside of the ECU
mck1117
running engine in first post
running engine in first post
Posts: 227
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish
Soldering skill: yes
Coding skill?: yes

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

Post by mck1117 » Thu Jun 27, 2019 1:36 am

Also, the resistor in the connector is something like 30-300 ohms, laser calibrated in the factory. It requires both the resistor in the connector, and the 61.9 on the board to operate.

Реконструктор
Posts: 11
Joined: Mon May 13, 2019 11:22 am
Soldering skill: yes
Coding skill?: yes

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

Post by Реконструктор » Thu Jun 27, 2019 9:01 am

Thank you very much, guys! :)

JRD McLAREN
contributor
contributor
Posts: 118
Joined: Mon Mar 04, 2019 10:19 pm
Soldering skill: yes
Coding skill?: yes
Contact:

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

Post by JRD McLAREN » Tue Jul 02, 2019 2:36 pm

..What's wrong with this board...
.. it lost SPI comunication, when +12V for heater is connected ...
:roll: :roll:

Edited: .. on frankenstein ...

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

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

Post by kb1gtt » Tue Jul 02, 2019 9:26 pm

????
Welcome to the friendlier side of internet crazy :)

JRD McLAREN
contributor
contributor
Posts: 118
Joined: Mon Mar 04, 2019 10:19 pm
Soldering skill: yes
Coding skill?: yes
Contact:

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

Post by JRD McLAREN » Tue Jul 02, 2019 9:30 pm

..I will post more details tomorrow..

JRD McLAREN
contributor
contributor
Posts: 118
Joined: Mon Mar 04, 2019 10:19 pm
Soldering skill: yes
Coding skill?: yes
Contact:

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

Post by JRD McLAREN » Fri Jul 05, 2019 6:36 pm

Ok ... let's move ...

This is my current testing setup ...
DSCN4860.JPG
DSCN4860.JPG (1.91 MiB) Viewed 457 times
Orange, Brown, Red and yellow wires are for SPI
Single Green is for heater ..
Blue and (another) Green is power supply for CJ125 Board
Grey and Black are UR and UA outputs.

Single White connected to power board is for heater +12V

When no LSU is connected CJ125 get response to console ( cj125_calibrate )
When no +12V power supply for LSU, we got response from CJ125

Code: Select all

2019-07-05 20_28: EngineState: confirmation_cj125_calibrate:15
2019-07-05 20_28: EngineState: cj125: Check ident=0x60 diag=0x3F init1=0x89 init2=0x10
2019-07-05 20_28: EngineState: cj125: Starting calibration...
2019-07-05 20_28: EngineState: confirmation_cj125_calibrate:15
2019-07-05 20_28: EngineState: cj125: Cannot start calibration. Please restart the board and make sure that your sensor is not heating
...... or ....
2019-07-05 20_34: EngineState: confirmation_cj125_calibrate:15
2019-07-05 20_34: EngineState: cj125: Check ident=0x60 diag=0x3F init1=0x89 init2=0x10
2019-07-05 20_34: EngineState: cj125: Starting calibration...
2019-07-05 20_34: EngineState: cj125: Done! Saving calibration data (7338 1219).

When all is connected, have no successfully response.

Code: Select all

2019-07-05 20_30: EngineState: confirmation_cj125_calibrate:15
2019-07-05 20_30: EngineState: cj125: Check ident=0xF8 diag=0xFF init1=0xFF init2=0xFF
2019-07-05 20_30: EngineState: cj125: Error! Wrong ident! Cannot communicate with CJ125!
2019-07-05 20_30: EngineState: cj125: Error! Cannot set init registers! Cannot communicate with CJ125!
2019-07-05 20_30: EngineState: cj125: Starting calibration...
2019-07-05 20_30: EngineState: cj125: Calibration error (init1=0xFF)! Failed!
It does not matter, if I have STM Discovery + CJ125 only ..
or if I have connected Frankenstein board also ...

.. Just for record ...

JRD McLAREN
contributor
contributor
Posts: 118
Joined: Mon Mar 04, 2019 10:19 pm
Soldering skill: yes
Coding skill?: yes
Contact:

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

Post by JRD McLAREN » Fri Jul 05, 2019 6:37 pm

...I will try to connect SPI as andrejka have it on the prometheus board ... :roll:

Pet007
Posts: 2
Joined: Fri Jul 05, 2019 6:16 pm
Soldering skill: yes
Coding skill?: yes

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

Post by Pet007 » Fri Jul 05, 2019 6:44 pm

Hi Guys, (zdravim JRD McLarena do Blavy ;)
please, how are you calculating Lambda from IP current ? I am absolutely confused from CJ125 PDF and LSU4.x technical sheets.
For ex. when you take table from page 7 of 4.9 technical sheet (lambda-value vs IP curent) and comapre it with this equation (code taken from Arduino lambda shield project), there are two different results of lambda :( So where is the thrue ? Thanks for any hints.

Code: Select all

LAMBDA_IP = 1000 * (CJ125_UA -1.5) / (61.9 * 17); /* V=17 * or V=8 -result in [mA]
k = 0.2095/2.54;     // 20.95 % O2 ~ 2.54mA of IP
LAMBDA_O2 = Lambda_IP * k;    
LAMBDA_VALUE = (LAMBDA_O2 / 3 + 1) / (1 - 4.77 * LAMBDA_O2); //Calculate Lambda value acc. to BOSCH LSU 4.9 Technical Product Information Y 258 E00 015e.
PS. (and what about rich area V=8 compared with V=17 - lean area - whean I want to measure from aprox. 10.0 AFR with good accuracy)

PS:JRDMcLAREN: Ted sem na tebe zrovna vzpominal, delal sem ecu na atmo C20XE v Kadetu pro kluky z Teplic, nabrzdilo se 200PS....chteli ale 250PS na vackach 276/276 a Dbilas sani (tzn. este bez 4-klapky)
EDIT: add missing Lambda_O2 equation
Last edited by Pet007 on Sat Jul 06, 2019 5:16 am, edited 3 times in total.

JRD McLAREN
contributor
contributor
Posts: 118
Joined: Mon Mar 04, 2019 10:19 pm
Soldering skill: yes
Coding skill?: yes
Contact:

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

Post by JRD McLAREN » Fri Jul 05, 2019 9:24 pm

Ahoj ...

Look at this: https://github.com/rusefi/rusefi/blob/m ... _lsu49.pdf
Screenshot_20190705_231940.png
Screenshot_20190705_231940.png (71.6 KiB) Viewed 445 times
Ja tomu celemu chapem tak, ze chipaku bosch povies, ktory "amplifer factor" chces pouzit...
a on potom na zaklade toho "upravi" vystupny signal ... teda nastavujes si tym "rozlisenie" ...
PS:JRDMcLAREN: Ted sem na tebe zrovna vzpominal, delal sem ecu na atmo C20XE v Kadetu pro kluky z Teplic, nabrzdilo se 200PS....chteli ale 250PS na vackach 276/276 a Dbilas sani (tzn. este bez 4-klapky)
..bez upravenej hlavy mozu na dalsie kone rovno zabudnut ... :mrgreen:

EDITED:
sorry for language ...

Pet007
Posts: 2
Joined: Fri Jul 05, 2019 6:16 pm
Soldering skill: yes
Coding skill?: yes

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

Post by Pet007 » Sat Jul 06, 2019 6:22 am

Thanks, ohh I've missed the last page of 4.9 technical sheet. So, there is an equation:

Code: Select all

 Vcj125 = Ua [V] = 1.5 +(61.9/1000*v)*Ip[mA] - where v= 8 (for reach area or 17 for lambda > 1)
 Ip[mA] =  (Ua[V] - 1.5) * (1000/(61.9*v))
and then use linear aprox. from IP vs Lambda table (attached) ?
lsu4.9_bosch_table_lambda.png
lsu4.9_bosch_table_lambda.png (8.29 KiB) Viewed 423 times
Anyway, proto version of my CJ125WBO controler in 14p7 style (and case - due damaged original PCB) with PICMCU and MAX7219 LED driver:
Attachments
cj125PICv1_proto.jpg
cj125PICv1_proto.jpg (73.54 KiB) Viewed 423 times

960
contributor
contributor
Posts: 285
Joined: Mon Dec 10, 2018 1:22 am
Soldering skill: yes
Coding skill?: yes

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

Post by 960 » Tue Jul 09, 2019 10:40 pm

Are there any gauge in TS to show AFR from CJ125, or how do you do that?

I have a CJ125 up and running, but no way to show it at a gauge.

Btw, I spotted this today while making a tuningfile for a Ford Focus.
It has a lot of CJ125 settings.

ols_32on32_x0UjFkZUgJ.png
ols_32on32_x0UjFkZUgJ.png (437.08 KiB) Viewed 377 times

mck1117
running engine in first post
running engine in first post
Posts: 227
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish
Soldering skill: yes
Coding skill?: yes

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

Post by mck1117 » Wed Jul 10, 2019 5:53 am

If you have the cj125 enabled, the normal AFR gauge will show the measured AFR.

960
contributor
contributor
Posts: 285
Joined: Mon Dec 10, 2018 1:22 am
Soldering skill: yes
Coding skill?: yes

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

Post by 960 » Wed Jul 10, 2019 1:44 pm

Ok, didnt know. Haven't had any reaction at that gauge yet.

I'll have another look.

mck1117
running engine in first post
running engine in first post
Posts: 227
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish
Soldering skill: yes
Coding skill?: yes

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

Post by mck1117 » Thu Jul 11, 2019 6:03 am

In that case, it probably isn't working properly. Can you set the debug mode to CJ125, and share a datalog?

960
contributor
contributor
Posts: 285
Joined: Mon Dec 10, 2018 1:22 am
Soldering skill: yes
Coding skill?: yes

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

Post by 960 » Fri Jul 19, 2019 6:11 pm

I can do that next time I test it in car.

This is the gauges showing something at bench(No sensor connected).
javaw_DbRXHfQ8RF.png
javaw_DbRXHfQ8RF.png (550.11 KiB) Viewed 267 times

960
contributor
contributor
Posts: 285
Joined: Mon Dec 10, 2018 1:22 am
Soldering skill: yes
Coding skill?: yes

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

Post by 960 » Sun Jul 21, 2019 4:22 am

This manual has some interesting CJ125 info:

https://www.bosch-motorsport.com/media/ ... _turbo.pdf

From page 97-

Ahmad
Posts: 3
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran
Soldering skill: yes
Coding skill?: yes

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

Post by Ahmad » Mon Aug 12, 2019 11:54 pm

Hi friends,
Has anyone worked with L9780 ic for AFR measurement?
Any suggestion?

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

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

Post by kb1gtt » Tue Aug 13, 2019 9:40 am

I have not, and I don't think anyone here has. It seems to be an interesting chip, very similar to the CJ125. What attracts you tho this instead of the CJ125? My 30 second review of the datasheet seems to indicate very similar features. Are there differences that of of interest?

Below is a picture of the block diagram for the L9780 as well as a link to the datasheet.
L9780_Block_Diagram.png
L9780_Block_Diagram.png (70.69 KiB) Viewed 139 times
https://datasheet.octopart.com/L9780-ST ... 533507.pdf
Welcome to the friendlier side of internet crazy :)

Ahmad
Posts: 3
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran
Soldering skill: yes
Coding skill?: yes

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

Post by Ahmad » Tue Aug 13, 2019 2:17 pm

I make a Lambda display with CJ125 three years ago.
In my new project (ECU for 8 Cylinder lean-burn Generator) I dont like retry intuition secrets of Bosch! :geek:
Also, L9780 has internal ADC and is newer than CJ125.

mck1117
running engine in first post
running engine in first post
Posts: 227
Joined: Mon Jan 30, 2017 2:05 am
Location: Seattle-ish
Soldering skill: yes
Coding skill?: yes

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

Post by mck1117 » Tue Aug 13, 2019 8:33 pm

Internal ADC is interesting - it's also not bosch, so documentation is far easier to find, and it's far easier to actually buy one (Mouser has them in stock). And they're cheaper: $6.55 in single quantities.

JRD McLAREN
contributor
contributor
Posts: 118
Joined: Mon Mar 04, 2019 10:19 pm
Soldering skill: yes
Coding skill?: yes
Contact:

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

Post by JRD McLAREN » Sat Aug 17, 2019 10:48 am

960 wrote:
Fri Jul 19, 2019 6:11 pm
I can do that next time I test it in car.

This is the gauges showing something at bench(No sensor connected).
You have any progress .. ??

Post Reply