|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: Speed Sensor
Quote:
|
|
#17
|
||||
|
||||
|
Re: Speed Sensor
Quote:
-Kevin |
|
#18
|
|||
|
|||
|
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 |
|
#19
|
||||
|
||||
|
Re: Speed Sensor
Quote:
-Kevin |
|
#20
|
|||
|
|||
|
Re: Speed Sensor
Quote:
Quote:
Last edited by Workaphobia : 13-01-2006 at 13:53. |
|
#21
|
||||
|
||||
|
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. |
|
#22
|
||||
|
||||
|
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 |
|
#23
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| air speed sensor for rc plane | Greg Needel | Technical Discussion | 19 | 07-10-2005 23:43 |
| Speed of banner sensor | Kashi Chan | Electrical | 7 | 06-03-2005 20:00 |
| PID control loops - closed loop feedback | KenWittlief | Technical Discussion | 56 | 26-04-2004 21:27 |
| Quick Optical Sensor Question | zorro | Technical Discussion | 10 | 21-01-2003 06:39 |
| What else do we want? | archiver | 2000 | 63 | 23-06-2002 23:19 |