Teensy 4.1 Does Frequency Gen TPS and Gate Board functions

Earl

Teensy 4.1 Does Frequency Gen TPS and Gate Board functions
«  »
In a prior post I used an Arduino to do functions of the Frequency Generator and TPS boards.  I tried to also do Gate board but due to limitations of UNO was not able to Gate functions.  Problem was syncing signals which was of the main functions of the Gate board.  I recently purchased a Teensy 4.1 and break out holder from Amazon see pictures below.

I found the Teensy to be a huge increase in capability.  Much faster more ports, 2 CPUs, crystal clock (more stable), and many more ports.  Big thing for my test is you can set frequency of PWM ports with one command.  Also, PWM port have 2 or more pin that support by the same clock so when you set frequency on one of them you get the same frequency on the other pin.  Because of this you can set reference frequency on Frequency Board and get same frequency on Gate board.   With 2 more commands you can set TPS duty cycle and another command sets Gate duty.

I my test I set TPS frequency then use POT to change duty cycle.  For the Gate board I set duty cycle and treated it a minimum value as it is most likely not to be changed in use.   Now both the Frequency and Gate Duty could be changed using a POT but did not include that in my testing as they are easy change by changing value set in definition part of code.

Hardest part was finding the correct range to map POT input into range that I could input into duty cycle for PTS frequency duty cycle.  I used a 4-line LCD to display Frequency, and Both TPS and Gate Duty cycles.

I also used if statements to limit TPS pot output 2-98 % and another set of it statements to combine TPS Duty and Gate Duty so larger of the 2 is outputted.  This is consistent with or gate function on gate board.   

To be complete functional Teensy outputs need to be buffered.  I used same chips Frequency and duty output that were used on TPS board to protect the Teensy.  In the case of the Gate board addition items which I did not test would be needed to raise output to 10V need by VIC.

I have included more detail in PDF document below which also includes a heavily commented version of code I used.

2 Picture of board and bread board.  I like this test breakout board as the pins are clearly labeled and has screws to hold pin.  I use a teensy that has pins, so I just had to plug it to board.

Two pictures of scope show to PWM streams TPS on in yellow and Gate on bottom in blue.  One show TPS duty smaller than 50% gate duty setting and other with TPS larger than 50% which means Gate is the same size as PTS duty.

I am comfortable with setup only because I have built and tested these boards, so I understand what they do and what their output are for.

Earl




securesupplies

Re: Teensy 4.1 Does Frequency Gen TPS and Gate Board functions
« Reply #4,  »
This Alien-Level Guide on Modernizing Stanley Meyer's GMS with Teensy –   if you read every thread here for 2+ years – the ones on PLL tuning, tau decay, nano-bubbles, and battling skeptics –   PDF document called "STANLEY A MEYER VOLTROLYSIS ON DEMAND GMS TPS Arduino Coding Teensy v1 (1).pdf" 
A fully modernized replacement for Meyer's old-school TPS (Throttle Position Sensor) and GMS (Gas Management System), swapping in a Teensy 4.0 microcontroller for digital control over the VIC and WFC setups. We're talking 3 or 6 switch outputs, PLL phase lock loops, SWR tuning, exponential decay timing – all coded up for on-demand nano-bubble water fuel production.
But here's the kicker: this is NOT for beginners. The doc is 185 pages of dense, advanced most code samples and  example of where to start copy paste testing  stuff.
 It starts with an intro to Meyer's history and fundamentals, then dives into hardware builds, BOMs, Teensy pinouts, and core code sections. If you've been elbow-deep in analog circuits from the 80s like I have, you'll appreciate the upgrades – digital precision, auto-monitoring for temp/pressure/RPM, EMI management, and safety protocols. It's like taking Meyer's buggy and turning it into a Tesla (pun intended). That said, the code sections?
looks like alien language if you're not well-studied in the art.
We're talking Arduino/Teensy sketches with PWM logic, sensor integrations, and optional features that feel straight out of some extraterrestrial engineering manual.
Even after years on this forum, I had to re-read parts multiple times – it's that complex. For noobs or casual readers, it'd be overwhelming; this is for the die-hards who've built a few WFCs and fried some coils along the way.
But For some one who has worked through every thread this is a obvious  document to create to start advancing tinsy



Earl

Re: Teensy 4.1 Does Frequency Gen TPS and Gate Board functions
« Reply #6,  »
Started to read document interesting.  I expected several other analog circuits could be put on computer control or eliminated with code looks like you figured out how to do that here.  Only 50 pages in will read it all.

Earl