Need help coding ir sensor

so pretty much i need to code this ir sensor and i have a set up where i have a statement basically saying if i press a button then it will go into autonomous mode (which i need it to do) so for one idk how to really set up the ir sensor because the only sensor options i have are light sensor, gyro sensor and ultra sonic sensor. another thing is that if there is a way i can program it to trace a line for a certain period of time, do a certain task, then return to the original code?

Current program im using is easyC v6 vex, sorry if this question may be in the wrong place im pretty lost ngl

ir sensor ? Do you mean a line sensor ?

Ok, well, most here have probably never even heard of EasyC. Is this for IQ or cortex ?

2 Likes

its for cortex and it is called an IR sensor (infrared sensor for other words)

unless there is something else i can do to trace that line but that is the only sensor that is available

I don’t remember VEX selling anything advertized as an IR sensor, does it look like this ?

anyway, I’m not sure you will get any help using EasyC here in 2023. The last time that was actively used was perhaps 7 or 8 years ago.

5 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.