|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Gear Tooth Code
Can someone tell me why this code wouldn't work for Gear Tooth Sensor. To me it makes sense because its connected to digital input and it only gives 0 or 1 based on the voltage (5v).
int i = 0; If (rc_dig_in01 == 1) //Gear Tooth Attached to dig_input 1 { i++; // Gear Counter printf("Gear counter=%d\r\n", i); } |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gear Tooth Sensor | Zoom | Programming | 46 | 22-01-2008 08:05 |
| 24 Tooth Gear Sprocket | daviamp | General Forum | 4 | 29-01-2007 00:04 |
| Gear Tooth Sensor | nukem | Programming | 9 | 04-02-2006 20:21 |
| Gear Tooth Sensor | Talha | Electrical | 1 | 23-01-2006 21:29 |
| LabView Gear Tooth Sensor Code | SkiRacer | LabView and Data Acquisition | 2 | 17-01-2006 03:53 |