![]() |
Re: Speed Sensor
Quote:
|
Re: Speed Sensor
Quote:
-Kevin |
Re: Speed Sensor
Quote:
For example, in the interrupt service routine for EasyC you connect the A channel to pins 1-6. When the interrupt on the A channel happens, the code reads the B channel to decide whether to count up or down. It doesn't matter if the B channel is actually connected to an encoder - it only sets the count direction. If you decide to use EasyC it has built-in encoders that only look at a single input. Brad |
Re: Speed Sensor
Quote:
-Kevin |
Re: Speed Sensor
Quote:
Quote:
|
Re: Speed Sensor
This maybe a little of topic but can a PIC output a analog value directly?
It would make life a lot simpler. |
Re: Speed Sensor
You can use onboard PWMs or software/timer generated PWMs to create a make shift ADC. Simply feed the output to a small capacitor connected to an analog input with a resister between the capacitor and the analog input that leads to ground.
Take a look at this: http://www.piclist.com/techref/sceni...pwm/pwm_vp.htm |
Re: Speed Sensor
Just use a DAC. big deal.
DACs arnt very hard to make, you could even just take a reference esign from TI or AD |
| All times are GMT -5. The time now is 17:37. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi