ROBOTC.net forums
http://robotc.net/forums/

Ultrasonic Sensor
http://robotc.net/forums/viewtopic.php?f=69&t=19586
Page 1 of 1

Author:  jaredkpln1 [ Mon Jan 07, 2019 12:37 pm ]
Post subject:  Ultrasonic Sensor

I am having issues with my student's ultrasonic sensor.


The robot always shows very erratic readings, even though it is not moving, or is moving very slowly. Below is a link to see what I mean.

https://youtu.be/sx78SSwGnVg

Please help.

Author:  jkandra [ Tue Jan 15, 2019 11:04 am ]
Post subject:  Re: Ultrasonic Sensor

Double-check your motors and sensors setup. Look at the pragmas created by the software. Are you sure the ultrasonic sensor is connected to that port? Is the cable plugged in securely to the sensor and the VEX brick?

Author:  jaredkpln1 [ Tue Jan 15, 2019 4:31 pm ]
Post subject:  Re: Ultrasonic Sensor

Im fairly certain everything is securely connected. This problem is occurring in my other robots as well. I am a teacher and this issue is happening with my student's robots. I am thinking it is something with the hardware since this is the only sensor that is having the issue, it just happens to be an important sensor.

Author:  jkandra [ Fri Jan 18, 2019 10:44 am ]
Post subject:  Re: Ultrasonic Sensor

Can you post the code (program) that you're using?

Author:  jaredkpln1 [ Tue Apr 09, 2019 10:09 am ]
Post subject:  Re: Ultrasonic Sensor

1. Set multiple motors (-20, leftmotor, rightmotor)
2. Waituntil Distance sensor < 100
3. Stop all motors

Author:  jkandra [ Wed Apr 10, 2019 12:18 pm ]
Post subject:  Re: Ultrasonic Sensor

Can you post the actual RobotC code? (include the pragmas)

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/