Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circuit Diagram #1

Closed
kamranshahidbutt opened this issue Dec 8, 2016 · 65 comments
Closed

Circuit Diagram #1

kamranshahidbutt opened this issue Dec 8, 2016 · 65 comments

Comments

@kamranshahidbutt
Copy link

Dear can you please share the circuit diagram how's we need to connect the circuit.

@aster94
Copy link

aster94 commented Dec 8, 2016 via email

@kamranshahidbutt
Copy link
Author

Dear i am looking for Schematics

@HerrRiebmann
Copy link
Owner

HerrRiebmann commented Dec 9, 2016

Hi, it is quite easy to wire up.
Connect Rx to Rx, Tx to Tx and VCC to 5V Output from Arduino. VCC, Gnd and K-Line to the Bike. A PullUp-resistor is needed between power supply (VCC) and K-Line!

It´s an old one I found, but maybe it helps:
http://fs5.directupload.net/images/161209/axzt2a7a.jpg
Scematic
EDIT: It seems that I forgot the PullUp-Resistor (510Ohm) between K-Line and VCC.

Anything else can be found here:
https://github.com/HerrRiebmann/KDS2Bluetooth/blob/master/Documentation/Readme.md

@Gui13
Copy link

Gui13 commented Jan 14, 2017

FWIW I have reproduced this schematic but had to reverse RX and TX for the bluetooth:

  • HC06 RX connected to D10 and TX connected to D11

Otherwise the connection wouldn't work.

I still couldn't have the device speak with my bike (Versys 650). I could connect to it though.

@HerrRiebmann the pull up is needed between VCC (5V) or VIN (12V)?

@Gui13
Copy link

Gui13 commented Jan 14, 2017

Another guy on an American forum has posted what looks like a good version of the circuit:

Circuit.png

The capacitor is 10nf and the resistor is 510 Ohms.

@HerrRiebmann
Copy link
Owner

Yes, that is the right one!
I think you don´t need to connect the 5V to the L9637D. But it does not matter.
Rx to Rx and Tx to Tx. Normally it has to be twisted, but the L96...-label considered this already.

@HerrRiebmann
Copy link
Owner

Updated the Readme on the Dokumentation-Section:
L9631DSchematic

@Snecer
Copy link

Snecer commented Feb 6, 2018

I am newbie and have a question about your new schematic.

I dont understand the "left" side of the shematic, is my schematic below ok?

shema1

@diaslemuel
Copy link

Hey has anyone tried using a ELM327 instead?? Looking for a easy way

@HerrRiebmann
Copy link
Owner

If it easily would be possible just to connect a ELM327 (or a cheap china clone), do you think we all would spend so much time and work into that? ;)

Theoretically this might be possible. But you have to reconfigure the initial process, manually. Then change the timings, baud, SID´s, header, format and more. This is possible, but needs to be done via bluetooth somehow. Then you still do not have matching PIDs, nor the calculations will fit.
Whatever device you might connect then, will possibly reset these settings. If not, it will expect OBD II compatible values and ID´s. These cannot be configured on the ELM327.

Long story short: Might be possible, but needs some research and testing. And you cannot use any stock device to receive the data. You have to develop this yourself.

@diaslemuel
Copy link

I do understand that your project was a task and i did get all the stuff to do it before i read another forum.

I just asked as some on the zx-10r forum managed to get that done and hence asked

FYI - The Links

https://www.zx-10r.net/forum/f23/clearing-ecu-codes-obdii-scanner-349538.html

https://www.zx-10r.net/forum/f23/obdii-zx10r-bluedriver-320554.html

@HerrRiebmann
Copy link
Owner

This won´t work for any bike without EURO 4 homogenisation (Which started 2017-01-01).
I guess, that the 2016 ZX10R was changed to OBD II protocol already.

As you can see in the video from the second link, the PID´s are pretty standard (0x0C for RPM). All Kawasaki´s (Bikes, Jetski, ATV, ect.) between 2007-2017 use 0x09.
Also clearing the trouble codes would use SID 0x04 in OBD II, but 0x14 in KDS.

It seems, that the bikes now, really support OBD II, and you just need a plug/cable to make an ELM327 work. That was announced by law, but I never got any further information about this (And if this is only be done in Europe) until yet :)
Personally I´vent tried that due to the fact, I do not own a bike from 2017.

I got all the stuff here to create a plug for a few cents, without cutting any cable. Maybe I´ll contact my dealer :D

@Snecer
Copy link

Snecer commented Nov 6, 2018

ZX10R is another story, that works for Gen5+ = 2016 models+

https://ftecu.com/shop/kds-to-obdii-adapter-harnsess/

@diaslemuel
Copy link

The dealers here are not helpful. and I rely on the internet where it becomes even more confusing

@Snecer
Copy link

Snecer commented Nov 6, 2018

5a996fdf25bab_vezjekds2bluetooth png 6b0f0ca450dc4fe2ac2ae76aef345c7c
versyskds2btjpg thumb jpg c33844e35c07d0ccfd7dcbefcf64319a

another improved working diagram

@diaslemuel
Copy link

how do i identify the pins of the L9637. The IC is way to small and as far as i see there is no marking of pin no etc

@Snecer
Copy link

Snecer commented Nov 6, 2018

hpgejat

upper left is 1, one side has different edge!

20161214113604_48062

@HerrRiebmann
Copy link
Owner

HerrRiebmann commented Nov 7, 2018

The dealers here are not helpful. and I rely on the internet where it becomes even more confusing

The dealer should not do anything, I want to test it myself with a borrowed bike :)

Exactly, the most L9637D´s does not have the cut in the top. They have a flat edge on one side.
It is very helpful to buy a SOIC Board, to solder the L9637 on. As you can see underneath @Snecer ´s image.

@diaslemuel
Copy link

is these the correct resistors etc??
cart

@diaslemuel
Copy link

Do i need to update all 4 .io files to arduino??

@Snecer
Copy link

Snecer commented Dec 30, 2018

akano

yes, all 4

@diaslemuel
Copy link

I have uploaded all the 4 sketches one by one (sniffer, kline,elm327 and then ecu_reader)

Is there any other way to upload. Sry but couldnt find any tutorials online

@Snecer
Copy link

Snecer commented Jan 1, 2019

You should open all 4 sketches (see my screenshot, 4 tabs), connect the device and press button send...

@diaslemuel
Copy link

Erased the old sketch and uploaded the fresh sketch. The Torque app is connecting to the bike and shows connected to ECU but nothing happens. No rev counter and shows transmission faults. When i try to clear it the device disconnects and doesnt re-connect unless powered down and on again

@HerrRiebmann
Copy link
Owner

Try to use a Bluetooth Serial Monitor App. Then you can better see what happens!
Maybe you got the wrong Baud-Rate between the BT-Module and Arduino?
Try to use an example sketch, where you can send Data between Serial Monitor an BT-Module.

@diaslemuel
Copy link

I am using the same code from Github. is it because i didnt use the 20K and 10K ??

@HerrRiebmann
Copy link
Owner

I think so, you have to pullup the dataline, to straighten the signal.

@diaslemuel
Copy link

I have added the 20k and 10k as well as per the diagram above but doesnt seem to still read the ECU.

Should i try this instead of the american one shared by snecer??

Fyi - My motorcycle is a ninja 300 non abs
687474703a2f2f6673352e64697265637475706c6f61642e6e65742f696d616765732f3136313230392f61787a74326137612e6a7067

@Snecer
Copy link

Snecer commented Mar 3, 2019

versys 3d
versys pcb

mine diagram is working

versyskds2btjpg

@diaslemuel
Copy link

@HerrRiebmann I am facing the same issue when I attempted to design the PCB. I dont have a clue how to do it.

@Snecer - can you share the pcb image or design so i get one printed for me. Due credit will be given.

My attempt at trying to get the DIY board is nowhere hence a PCB with all things assembled may help

@diaslemuel
Copy link

@Snecer Can you help

@Snecer
Copy link

Snecer commented Apr 13, 2019

PCB was friend's design, will try to find the file.
another simple shema...

Konektor-zadaj
shemax
vezjex
WP_20180302_010
Uploading WP_20180302_011.jpg…

@Snecer
Copy link

Snecer commented Apr 13, 2019

https://youtu.be/XFqLPIQ9M2Y

HW works ok, but it seems that SW is not optimized, i also couldn't find a string for speed, must be different as for z750. Thats not a big issue, because gps has that data.

@diaslemuel
Copy link

@Snecer Please do let me know if you find it. TY in advance

@diaslemuel
Copy link

Any Update??

@Snecer
Copy link

Snecer commented May 19, 2019

No. Find someone who can draw a PCB.

@Snecer
Copy link

Snecer commented Aug 14, 2019

@Snecer did you get the board made?

I've found someone, who will draw the PCB.

@diaslemuel
Copy link

@Snecer that would be great. How do i contact

@IAmOrion
Copy link

IAmOrion commented Aug 31, 2019

I've made this so far using Fritzing - does it look right? I want to make sure I've not missed anything or connected wrong? Once confirmed I will share Gerber Files to use with JLCPCB or what ever PCB company you want

PS: JP1 and JP2 is a solder bridge - in case someone uses a chip with same layout but RX and TX are switched. So you choose which if "RX" is actually RX or TX, and the same to "TX" of the chip (L9637D)

Yellow tracks are on the top layer of the board, orange tracks are on the bottom layer.

If someone can confirm and let me know the wattage of resistors, I can improve the design with SMD 1206 resistors. Also capacitor spec - atm the design uses 5mm diameter polarised alu caps

I'm hoping to be able to use this with my BMW Z4 with K-Line

Screenshot 2019-08-31 at 01 32 59

I have made my own PCB about 10 times now for different projects so I am used to using Fritzing to design PCBs

@Snecer
Copy link

Snecer commented Aug 31, 2019

excellent, will ask my friend, he is also working on pcb
Untitled png 361cb7a2a400f548dc9aae12c9c2c446

@IAmOrion
Copy link

excellent, will ask my friend, he is also working on pcb

Thanks - that looks much better than mine!
I obviously don't know the voltage rating for the caps or resistors though hence using Through Hole for first version - if someone can let me know the capacitor voltage requirements and the resistor power requirements I can alter my design also :)

I have Eagle too - although for simplicity I use Fritzing. Will your friend be willing to share his .brd and .sch files?

@Snecer
Copy link

Snecer commented Aug 31, 2019

excellent, will ask my friend, he is also working on pcb

Thanks - that looks much better than mine!
I obviously don't know the voltage rating for the caps or resistors though hence using Through Hole for first version - if someone can let me know the capacitor voltage requirements and the resistor power requirements I can alter my design also :)

I have Eagle too - although for simplicity I use Fritzing. Will your friend be willing to share his .brd and .sch files?

Here some .brd files (alpha version).
https://www100.zippyshare.com/v/V8Iv6KWb/file.html

@IAmOrion
Copy link

Here some .brd files (alpha version).
https://www100.zippyshare.com/v/V8Iv6KWb/file.html

Awesome, thanks. I was hoping they would contain the values of the resistors etc but it doesn't ha. Sods law! It shows package details, but the value field has been left blank on all of them.

@diaslemuel
Copy link

Hey @IAmOrion @Snecer @HerrRiebmann Has there been any update. Cause I have shelved this DIY cause i dont know where i am going wrong. Probably I have got some diodes/resistors or wiring wrong i dont know. Unfortunately i dont have any friend who can help. Hence was looking forward to the board

@IAmOrion
Copy link

Hey @IAmOrion @Snecer @HerrRiebmann Has there been any update. Cause I have shelved this DIY cause i dont know where i am going wrong. Probably I have got some diodes/resistors or wiring wrong i dont know. Unfortunately i dont have any friend who can help. Hence was looking forward to the board

I changed my design as I managed to get a load of TH3122.4 chips off of AliExpress (Although I've yet to test them but others have reported they work as expected)
For my particular usage, I don't need bluetooth BUT if you did, I highly recommend using the Keywish Nano BLE - which is an Arduino Nano with built in Bluetooth

I'm too much of a PCB Design novice for Eagle or EasyEDA - but you're welcome to my Gerbers to get them produced.

Screenshot 2019-09-15 at 12 45 00

JLCPCB will make 5 boards for $2 - shipping will obv depend on your location. I paid just over £9 GBP to have 30 boards made and posted to the UK economy recorded postage

Screenshot 2019-09-15 at 12 47 30

Screenshot 2019-09-15 at 12 48 44

Screenshot 2019-09-15 at 12 48 51

Still waiting for them to arrive :)

Gerbers:
BMW K Line v4 (Resler Variant TH3122).zip

For what it's worth, I MAY revisit this using the L9637D but I couldn't find enough info of the circuit required - I mean, I found dozens of circuits, but they never showed the capacitor values and I don't know enough to work out what I would need and I couldn't get anyone to reply to me so I stopped working on it.

This as far as I got with the L9637D (I can't remember is this is complete or not)

Screenshot 2019-09-15 at 12 55 56

Gerbers:
BMW K Line.zip

Fritzing:
BMW K Line.fzz.zip

@diaslemuel
Copy link

Ive got the L9637D chip. Sourcing these tiny bits in India is a task altogether. None of the sites have all parts.

@Mattbatt84
Copy link

So I have built this and connect tot he Bluetooth via Torque light. Could somebody let me know what connector and color wire I connect to on a 2011 Versys 650? I have power ground and have have traced back from my ECU for both the self diag terminal and the Kawasaki Self diag terminal. Is it the 6 pin connector or 4 pin? Cheers

@Snecer
Copy link

Snecer commented Jul 3, 2021 via email

@Mattbatt84
Copy link

Is anyone using the Torque lite Android app? I have successfully connected to Bluetooth but seem to get any further than that. Does the app connect instantly or do you need to wait?

@Snecer
Copy link

Snecer commented Jul 5, 2021

Is anyone using the Torque lite Android app? I have successfully connected to Bluetooth but seem to get any further than that. Does the app connect instantly or do you need to wait?

I am using Torque Pro.
https://youtu.be/O3VYY08cjY0

@HerrRiebmann
Copy link
Owner

Yes, I also use Torque lite, Car Scan and RaceChrono.
And my Garmin Virb XE, off course. Works fine, with the latest code from here.

Just did a completely rewrote of my code. Now with Suzuki & Kawasaki combined, much more performance and error-logging.
Plenty of settings to use the data raw, from storage, gear calculation, obd2 conform, and so on.
I want to release a lot of it, but I think I can´t publish everything.

So I will create a new repository with at least all the features from this one, but more relyable.
Stay tuned for new videos and a new repository in the next time. I´ll let you know here :)

@Roughd1433
Copy link

@HerrRiebmann Great news. I currently have two bikes in the works and plan on building my own dashboards for each one. So a Suzuki port of the software is wonderful. Thank you for all your hard work. I might be able to bend metal to my will....code not so much :)

@Mattbatt84
Copy link

After a lot of thinking my wiring was the issue I have used the emulator to check and all wiring and components are good the issue is the KLine coming from the bike. I even traced the kline back the to ecu based on the manual. Torque lite jut does not pick up that the bike is connected. I have a 2011 versys 650. Has anyone else had similar problems and found a solution?

@HerrRiebmann
Copy link
Owner

@Roughd1433 you can see how it works on my Suzuki. Its much better then on Kawasaki, since I introduced a data storage.
It holds everything which comes at once and transferes the values amazingly fast one by one.
Kawasaki just gives you a single value, so you are limited to ~6 or 7 values per second.
https://www.youtube.com/watch?v=RrPropqd4N4

@Mattbatt84 oh, that reminds me of releasing the latest version of the emulator, as well!
The emulator works directly by serial. So there is no L9637D involved, which might is broken or in the wrong direction?!
I created another Arduino with the L9637D, so I can test with the emulator the same way. But you will need another powersource for the second arduino.
Checking the K-Line otherwise than with this device, is tough! You´d need an oscilloscope and something which triggers the K-Line. Or drive to a workshop, where they just clear your diagnostic codes, or something. This would proove the K-Line is right!
The Versys 650 should be similar to the ER650 or nowadays the Ninja 650. I can try the test that out. But I already know, the plug is slightly different.

@Mattbatt84
Copy link

@HerrRiebmann You were right it was the L9637D. I must have popped it prototyping a new board. I am going to purchase a few more a well as a MC33199 and have a crack at using that as it has a transmission Baud rate up to 200kBaud. See if makes a difference. Will also publish the EASYEDA files once done so people can order from PCBway or JLPCB as there pick and place services will do all the little 0806 bits as the I will be adding TX RX leds to the kline chip to diagnose nonsense like I have been having.

@Mattbatt84
Copy link

This project is getting expensive. £30 for the boards £30 Parts £30 in broken prototypes. All to see error codes hahahahha.
kline

@HerrRiebmann
Copy link
Owner

Wow! That is really expensive!
I think I paid about 160€ for 20 assembled boards. Just without the HC-06 module and without wiring and plugs.
Did you tried https://jlcpcb.com ?

But don´t ask me about all my prototypes, parts and unassembled boards... I guess this could leave the three-digits ;)
That´s the definition of "hobby"!

But all in all, that board-design really looks good! Quite compact!

@Mattbatt84
Copy link

I looked at jlpcp but they were quoting £135 for 5 boards pre assembled and 25% of the parts were not available. I went with boards only and parts I do not have from ebay. The costly bits were the ATMEGA32U4-MU £8 and L9637D £5. But I am also being impatient and paying premium for parts that are next day shipping soooooooo. If I was willing to wait I think I would be looking at £40 for 5 assembled boards.
Compact for a reason. I am going to pot them into encloses. Take full advantage of the ATMEGA and most parts 0603 footprint. Will also see if I can heat sink the whole board as the linear voltage regulator has not been heat efficient at all

@padilia
Copy link

padilia commented Oct 5, 2022

@Snecer link has expired, could you please share again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants