Hello,
I have a project I am working on. I was hoping someone could look over my notes & tell me if this is possiple & which chip would be best.
If that chip is available as an 'easy to use' development board - great. If not - then I'll 'bread-board' it & experiment.
If possiple - I would prefer the PIC chip to use direct USB communications - as that makes things easy for power & comms.
I am trying to build a homemade dyno. The two inputs are engine RPM & Dyno drum rpm. These can be conditioned so that each 'event' is represented as 0 or 5+ volt signals. I have these signals working.
For engine RPM - absolute min is 2 events per second (4 cycle engine, 1 event per cycle = 480 RPM). Absolute max is 500 events per second (2 cycle 'screamer' racing engine = 30,000 RPM).
For dyno RPM - absolute min is 0. Absolute max is 83.33 events per second (single event per rpm - max 5,000 rpm).
I wish to time when these events occur as accurately as possible (within reason). I was hoping to run a timer to 1 million of a second. Faster would be better if available.
Here's how I imagined it might work...
1) Start the timer at 1Mhz
2) Every time there is an engine event - it triggers the PIC to send the timer count to the PC - with an identifier for engine rpm - like the value E200000
3) Every time there is a dyno drum event - it triggers the PIC to send the timer count to the PC - with an identifier for dyno drum rpm - like D300000
4) When the timer hits it's upper limit - reset it to 0 & send a message to the PC saying 0. That way - it would know when the timer is reset each time & it gives me a 0 reference relevant to the other readings.
Does this sound realistic to achive with a PIC chip?
Thanks
Paul
I have a project I am working on. I was hoping someone could look over my notes & tell me if this is possiple & which chip would be best.
If that chip is available as an 'easy to use' development board - great. If not - then I'll 'bread-board' it & experiment.
If possiple - I would prefer the PIC chip to use direct USB communications - as that makes things easy for power & comms.
I am trying to build a homemade dyno. The two inputs are engine RPM & Dyno drum rpm. These can be conditioned so that each 'event' is represented as 0 or 5+ volt signals. I have these signals working.
For engine RPM - absolute min is 2 events per second (4 cycle engine, 1 event per cycle = 480 RPM). Absolute max is 500 events per second (2 cycle 'screamer' racing engine = 30,000 RPM).
For dyno RPM - absolute min is 0. Absolute max is 83.33 events per second (single event per rpm - max 5,000 rpm).
I wish to time when these events occur as accurately as possible (within reason). I was hoping to run a timer to 1 million of a second. Faster would be better if available.
Here's how I imagined it might work...
1) Start the timer at 1Mhz
2) Every time there is an engine event - it triggers the PIC to send the timer count to the PC - with an identifier for engine rpm - like the value E200000
3) Every time there is a dyno drum event - it triggers the PIC to send the timer count to the PC - with an identifier for dyno drum rpm - like D300000
4) When the timer hits it's upper limit - reset it to 0 & send a message to the PC saying 0. That way - it would know when the timer is reset each time & it gives me a 0 reference relevant to the other readings.
Does this sound realistic to achive with a PIC chip?
Thanks
Paul