|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Ultrasonic Range Finder
My team recently bought these ultrasonic range finders. We are having a few problems wiring and programming them.
Attched is a diagram that shows how we wired them. To program them we used: Code:
if (run_count<2){
rc_dig_out13 = 1;
} else if(run_count >= 40){
rc_dig_out13 = 0;
run_count =0;
Get_Encoder_1_persec = Get_Encoder_1_Count() - last_count;
last_count = Get_Encoder_1_Count();
//printf("Sensor: %d \r", (int)Get_Encoder_1_persec);
}
printf("Sensor: %d \r", Get_Analog_Value(rc_ana_in01));
run_count++;
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ultrasonic range sensors for Vex Robot | OneCoolDude | Programming | 1 | 01-12-2007 09:22 |
| Ultrasonic will not work with another Ultrasonic plz help | Jackel148 | Programming | 10 | 10-05-2006 15:31 |
| Using VEX range finder on the full-size FRC | CronosPrime1 | Programming | 3 | 08-02-2006 23:29 |
| Ultrasonic Range Finder | polyBot | Control System | 15 | 29-01-2006 12:46 |
| Wanted! Dew Reward for Finder! | JVN | General Forum | 11 | 16-04-2003 13:41 |