Tamaren1 / Freevalve_Arduino

Codebase for the Arduino Freevalve Project- found here: www.youtube.com/c/wesleykagan
94 stars 26 forks source link

Added mapping tables for the intake/exhaust valves #3

Open ricallinson opened 3 years ago

ricallinson commented 3 years ago

Based on the last video I've added mapping tables for the intake/exhaust valves. Going to grab a Harbour Freight engine today so I can start testing.

Notes;

ricallinson commented 3 years ago

PXL_20201216_040029039 In case anyone was wondering. This why I'm so excited. Cyclekarts!

valeriu-balaban commented 3 years ago

From what I understand, you try to map the amount of valve opening (not just 0-1, open-closed) to the shaft rotation using the exhaustMap variable. If that is the case then things are more tricky since the electromagnets (or air pressure valves) have two operation modes, open and closed, and achieving partial opening would require modulation (PWM). This looks more achievable by controlling the valve with electromagnets instead of air pressure. However, I might be getting too far ahead and this might not be the intention.

I believe that just focusing on opening and closing the valve at the right time might be easier to implement and almost as efficient as being able to partially opening of the valve.

Looks like people successfully implemented pressure control using an electromagnet: https://ntrs.nasa.gov/citations/20180006153

ricallinson commented 3 years ago

@valeriu-balaban My understanding is that 0-1, binary open-close is the benefit of this approach. After watching https://www.youtube.com/watch?v=WwlNqaz9q_0 it was clear to me that the binary open/close is why it's more performant.

ricallinson commented 3 years ago

I think I've removed the need for any time related code. Using a second interrupt to detect each rotation it now has a clear and reliable check point.

whitfijs-jw commented 3 years ago

That is a good idea. Dual wheel optical cam sensors should be able to be interfaced with the crank with a little bit of work.

I've used DSM cam sensors with a trigger wheel like this in the past: https://yoshifab.com/store/high-resolution-dsm-cas-trigger-disk.html

Also I'm currently using a AEM EPM on an Alfa Romeo ITB/EFI project. It has 2 outputs: one for cam sync and one for a crank signal. I've adapted it to a bosch distributor, but it could also be adapted to work on the 212 crank for testing: https://www.aemelectronics.com/products/ignition-components/engine-position-module-epm

My adapter for the AEM EPM IMG_20200917_134443

Its been a while since I've looked over dealing with nesting/concurrent interrupts on an AVR. Just as a precaution I would set the single trigger interrupt to a a higher priority and keep it as tight as possible. As long as the single trigger tooth is offset from the N-tooth trigger wheel, it shouldn't be a problem.

AVR ISR priorities are described briefly here: https://microchipdeveloper.com/8avr:int

james-portman commented 3 years ago

Really interested in the project, just wanted to throw in an idea about the benefit of partial valve opening: there is actually a BMW engine that can run without a throttle just by altering how far the valves open (lift),

it would be interesting if partial valve opening did work with the freevalve type tech because it might remove the need for a throttle, and might actually bring similar performance benefits as ITBs, as well as potentially improving low down torque (?)

chutetearer commented 3 years ago

Could it be possible to reach a similar effect by varying how long the valves open, in place of how far the valves open? It seems easier to implement here, though variable lift and duration would clearly be ideal.

james-portman commented 3 years ago

Could it be possible to reach a similar effect by varying how long the valves open, in place of how far the valves open? It seems easier to implement here, though variable lift and duration would clearly be ideal.

Sure, I think so in general.

Being specific though, it depends how much control you get over the valve opening and closing time, I made an issue to mention about that, it seems like there will be some slowness no matter what, using pneumatics it looks like immediate 0/1 open/closed to us but in engine terms it is still quite slow to open and close the valves, depending how fast acting the solenoids and computer are. The normal solenoids would only work up to about 3000RPM max, and would be acting about as slowly as normal camshafts to open and close at that point.

There are faster solenoids but the price starts ramping up.

So if you have less control over the minimum opening and closing times, it would be good to also control how far they open