Jerry-Hat-Trick
- Joined Aug 31, 2022
- 826
I’d use a small processor module like a Seeeduino XIAO to produce the PWM pulses to turn the drive transistor on. A BJT should be fine.
Because the on time is brief you can overdrive the LED(s) above their specified current without shortening their lifetime significantly.
Use a 4 digit 7 segment display module to show RPM, DIP switch to select frequency ranges, pot to adjust frequency.
Use the micros() function to check frequency, a variable loop size and/or delaymicroseconds() function to control frequency.
The XIAO is pretty fast and you only need to update the display maybe three times a second so if the update takes too long you can skip a cycle or more and you won’t notice it so long as it uses micros() to synchronize with where it left off
Because the on time is brief you can overdrive the LED(s) above their specified current without shortening their lifetime significantly.
Use a 4 digit 7 segment display module to show RPM, DIP switch to select frequency ranges, pot to adjust frequency.
Use the micros() function to check frequency, a variable loop size and/or delaymicroseconds() function to control frequency.
The XIAO is pretty fast and you only need to update the display maybe three times a second so if the update takes too long you can skip a cycle or more and you won’t notice it so long as it uses micros() to synchronize with where it left off