|
Forum Index : Microcontroller and PC projects : Micromite IR TACHOMETER
| Author | Message | ||||
| OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 1021 |
Just going through some of the unfinished projects and came across a handheld IR TACHO that I built many years ago. I have very simple code to run this unit but I feel it can be made much more accurate and reliable. Here is the code currently: ' IR TACHOMETER PROGRAM FOR MICROMITE ' IR LED POWERED ON ' IR RECEIVER CONNECTED TO PIN 16 ' INITIALISE PINS FOR 2 LINE LCD LCD INIT 2,3,4,5,23,24 SetPin 16,FIN 'IR RECEIVER Dim Spin,I LCD 1,3,"IR TACHOMETER" LCD 2,10," RPM" Do Spin=0 For I = 1 To 10 Spin = Spin + Pin(16) Next I Print Spin/10;" Hz" LCD 2,1,Str$(Spin*6) Pause 500 LCD 2,1," " Loop Has anyone any suggestions to improve this program? OA47 |
||||
| ville56 Guru Joined: 08/06/2022 Location: AustriaPosts: 384 |
Tbh, I don't get the program logic at all... 73 de OE1HGA, Gerald |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2967 |
Multiply by 60 for RPM. The one I built uses an IR remote control receiver and the IR LED is fed with a 38kHz 50% PWM output. This gives it a much better tolerance for high ambient light and works at a greater distance due to the narrow bandwidth, high gain and excellent AGC of the IR receiver. Tested to 30,000 RPM. Edited 2026-02-01 17:08 by phil99 |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 5656 |
Hi OA47, remember... https://www.thebackshed.com/forum/ViewTopic.php?TID=16669&P=2#217359 Volhout PicomiteVGA PETSCII ROBOTS |
||||
| OA47 Guru Joined: 11/04/2012 Location: AustraliaPosts: 1021 |
Volhout, thankyou for bringing that to my attention. Obviously my static brain ram backup battery has faded and I have been down this road before. OA47 |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 5656 |
Hi OA, You simply picked up again where you left of last time. Volhout PicomiteVGA PETSCII ROBOTS |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |