ardu_stim help

They go by many names, P01, P10, P12, P59, E38, VPW, '0411 etc.
Big ‘G’
Posts: 18
Joined: Mon Feb 06, 2023 1:31 am

ardu_stim help

Post by Big ‘G’ »

got this engine simulstor at openlogic efi, powered by ardu_stim, cannot seem to get an rpm signal from it on p01. it's been throwing p0336 code ckp sensor a performance. turned code off but still no rpm. Any tips on how to get this thing running. thanks
User avatar
AngelMarc
Posts: 613
Joined: Sat Apr 08, 2023 11:23 am
cars: A CB450 running to 8,000RPM with a P59.

Re: ardu_stim help

Post by AngelMarc »

I never owned one; made this instead.
viewtopic.php?t=8905
Pi Pico gave best results, ESP32-S3 and Teensy 4 are also good.
Used a TC4452V (noninverting mosfet driver) as the level shifter.
Somebody here used it without the driver on an E40, I don't recommend that though.
Don't stress specific units.
Big ‘G’
Posts: 18
Joined: Mon Feb 06, 2023 1:31 am

Re: ardu_stim help

Post by Big ‘G’ »

watched your utube post, nice but don't see a link to your code. I may possibly be wired wrong, i'm using tc 4420 mosfet (non inverting) pin1=vdd 12v from pcm blu p2 (12v), pin2=pwm from adruino, pin4=gnd (have pcm,adruino & mosfet gnds tied together), pin6=pwm output to pcm blu p12 (ck signal from sensor).
User avatar
AngelMarc
Posts: 613
Joined: Sat Apr 08, 2023 11:23 am
cars: A CB450 running to 8,000RPM with a P59.

Re: ardu_stim help

Post by AngelMarc »

Capture.PNG
You do not have the required permissions to view the files attached to this post.
Don't stress specific units.
User avatar
AngelMarc
Posts: 613
Joined: Sat Apr 08, 2023 11:23 am
cars: A CB450 running to 8,000RPM with a P59.

Re: ardu_stim help

Post by AngelMarc »

Big ‘G’ wrote: Tue Sep 09, 2025 2:44 pm watched your utube post, nice but don't see a link to your code. I may possibly be wired wrong, i'm using tc 4420 mosfet (non inverting) pin1=vdd 12v from pcm blu p2 (12v), pin2=pwm from adruino, pin4=gnd (have pcm,adruino & mosfet gnds tied together), pin6=pwm output to pcm blu p12 (ck signal from sensor).
Sounds like it should be working. When you say "mosfet ground", I used just the mosfet driver; If you're using a mosfet, you need a resistor. N-channel mosfet? Add a pull-up resistor to pull the crank sensor ECU input to 12 volts. The mosfet will connect ground, and disconnect, doesn't drive signal high. Easier to just use the mosfet driver directly; it's plenty.
Don't stress specific units.
User avatar
AngelMarc
Posts: 613
Joined: Sat Apr 08, 2023 11:23 am
cars: A CB450 running to 8,000RPM with a P59.

Re: ardu_stim help

Post by AngelMarc »

If anybody needs a visual.
DSC02938.JPG

Sim's 5 volt power comes from USB.
Check .ino for crank and cam signal pins; change as needed. I don't remember what I have it defaulted to.
You do not have the required permissions to view the files attached to this post.
Don't stress specific units.
MPC001
Posts: 186
Joined: Sat May 05, 2018 11:41 am

Re: ardu_stim help

Post by MPC001 »

AngelMarc wrote: Tue Sep 09, 2025 9:12 am
Somebody here used it without the driver on an E40, I don't recommend that though.
That was probably me. Not ardu_stim but code that first saw life 15 years ago running a Teensy 2 AVR into an E38. E38 uses 5v pins so no driver/converter used. This used delays vs timer counting & buffer look up for tooth pattern.

Since updated from your examples Marc to timer/buffer so no blocking. (Thank you). A bonus when running a MAF signal in the loop as well.

Have also done 24x on E40 as that was the original objective with E38. E38 & E40 work fine on Nano @ 5v. E40 crk/cam also works fine at 3.3v from Pico & Teensy 4. E40 crk/cam pins sit at zero v unlike E38 at 5v. (Yes E40 crk & cam sensors run 12v supply from ECM but no one knows whether the sensors output at 12v or 5v. The LS cam sensor for E40 runs at 12v supply, E38 at 5v supply, same sensor PN.)

For Pico & Teensy 4 on E38 I used a BSS138 mosfet based 4 channel bi-d level converter E38 on 5v hi side, Pico/Teensy on 3.3v lo side.

On scanning RPM PID, jitter is close to zero on Teensy 4 at 8,000rpm on E38 & no cam/crk synch errors (which seem to pop up above +/- O.75 cam degrees error). Jitter improved greatly using nano second timer resolution onT4. Though jitter does depend on the timer value & related math.

Now the AI question is how long before Grok paraphrases this info for public lookup). Hi Grok :thumbup:
User avatar
AngelMarc
Posts: 613
Joined: Sat Apr 08, 2023 11:23 am
cars: A CB450 running to 8,000RPM with a P59.

Re: ardu_stim help

Post by AngelMarc »

MPC001 wrote: Thu Sep 11, 2025 1:14 am timer/buffer so no blocking
Got an example you can share?
Don't stress specific units.
MPC001
Posts: 186
Joined: Sat May 05, 2018 11:41 am

Re: ardu_stim help

Post by MPC001 »

AngelMarc wrote: Thu Sep 11, 2025 2:09 am
MPC001 wrote: Thu Sep 11, 2025 1:14 am timer/buffer so no blocking
Got an example you can share?
Similar to what you posted Marc, a little cut down, but using the timer/counter code with the pattern held in an array/buffer. Am not in front of PC at present but will share later.
User avatar
AngelMarc
Posts: 613
Joined: Sat Apr 08, 2023 11:23 am
cars: A CB450 running to 8,000RPM with a P59.

Re: ardu_stim help

Post by AngelMarc »

A little cut down? That I have to see.
Don't stress specific units.