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
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