DME/KLR data logging
Would be cool to integrate them if feasible.
@andyb - do you have a klr schematic?
I could probably create one based on the pics on the website, but always easier to reuse what’s out there.
@andyb - do you have a klr schematic?
I could probably create one based on the pics on the website, but always easier to reuse what’s out there.
1986 951 - Silicon Valley
Hi @whalenlg
Yeah. It'd be great to have a reasonable physics sim of the engine + DME and KLR simulation ultimately. I need to focus on getting the basics of the KLR working first though. I'm currently trying to figure how to simulate the ADC. I think that will occupy me for a few days yet.Would be cool to integrate them if feasible.
Sorry, no. I've just been using the info from John's KLR pages so far, and occasionally looking at my PCB photos.do you have a klr schematic?
I have a spare KLR that I use for this stuff, so if photos would be useful let me know. I only ever did enough to understand how things work, so the drawings on my site don't have component values because I didn't really care about that. I just needed to know the basic op amp configurations, and what's logically connected to what etc.
- Tom
- Site Admin
- Posts: 8923
- Joined: Fri Jun 25, 2021 2:04 pm
- Location: Silicon Valley, CA
- Has thanked: 932 times
- Been thanked: 3991 times
- Contact:
I have spare KLRs is you want to borrow one...
I did a simple ADC Verilog model - 3 address bits to select which of 8 values go in, 8 data bits, 8 clock cycle latency from address change to output validandyb wrote: Thu Feb 05, 2026 1:55 pm Hi @whalenlg
Yeah. It'd be great to have a reasonable physics sim of the engine + DME and KLR simulation ultimately. I need to focus on getting the basics of the KLR working first though. I'm currently trying to figure how to simulate the ADC. I think that will occupy me for a few days yet.Would be cool to integrate them if feasible.
Sorry, no. I've just been using the info from John's KLR pages so far, and occasionally looking at my PCB photos.do you have a klr schematic?
1986 951 - Silicon Valley
If that was addressed to me, that is a very kind offer. But I don't really need one. I've currently got the one from my car on my desk. What I really need to do is to put it back in the car, without its metal box and probe it with a 'scope like John has done. But that would involve getting cold and damp at the moment.
- Tom
- Site Admin
- Posts: 8923
- Joined: Fri Jun 25, 2021 2:04 pm
- Location: Silicon Valley, CA
- Has thanked: 932 times
- Been thanked: 3991 times
- Contact:
Well, I'm open to helping all if I can, but that was honestly directed to whalenlg since he lives down the road from meandyb wrote: Sat Feb 07, 2026 2:16 pmIf that was addressed to me, that is a very kind offer. But I don't really need one. I've currently got the one from my car on my desk. What I really need to do is to put it back in the car, without its metal box and probe it with a 'scope like John has done. But that would involve getting cold and damp at the moment.
I've implemented almost everything I can think of, but the code still doesn't seem to run correctly. I suspect the values my simulated ADC generates aren't good enough. What I've done:
Chan 0 (knock sensor noise): returns 0
Chan 1 (battery voltage): returns 200
Chan 2 (unknown): returns 0
Chan 3 (TPS supply voltage): returns 40 (I have no idea what a good number would be)
Chan 4 (MAP): returns 0 for full vacuum, 255 for 2 bar
Chan 5 (Knock sensor integrator): returns 0
Chan 6 (unknown): returns 0
Chan 7 (TPS potentiometer output): returns 0 for closed throttle and 255 for wide-open throttle
Can anyone suggest any improvements?
The code does seem to read from channel 2 and 6. I traced where channel 6 goes on my board, and it looks like it goes to ground through a 6 kOhm resistor.
Chan 0 (knock sensor noise): returns 0
Chan 1 (battery voltage): returns 200
Chan 2 (unknown): returns 0
Chan 3 (TPS supply voltage): returns 40 (I have no idea what a good number would be)
Chan 4 (MAP): returns 0 for full vacuum, 255 for 2 bar
Chan 5 (Knock sensor integrator): returns 0
Chan 6 (unknown): returns 0
Chan 7 (TPS potentiometer output): returns 0 for closed throttle and 255 for wide-open throttle
Can anyone suggest any improvements?
The code does seem to read from channel 2 and 6. I traced where channel 6 goes on my board, and it looks like it goes to ground through a 6 kOhm resistor.
That makes sense. The risk of posting rare hardware across country borders would make me nervous.Tom wrote: Sat Feb 07, 2026 2:25 pm Well, I'm open to helping all if I can, but that was honestly directed to whalenlg since he lives down the road from me![]()
