thaliaaa111
Leecher
- Joined
- Apr 11, 2024
- Posts
- 1
- Reaction
- 0
- Points
- 2
how to code
If the IR and Inductive sensors was triggered, the servo will turn from 90 to 0 degrees indicating that the trash is an Aluminum can, if the IR sensor was triggered but te inductive was not, it means the trash was plastic, thus, the servo will rotate from 90 to 180 degrees.
like we use ir sensor as a secondary sensor only? for instance, when the inductive sensor detected the object the servo motor will rotate from 0 to 180. But when the inductive sensor can't detect the object, which is plastics, the ir sensor will be the one to command the servo motor to rotate from 180 to 0
If the IR and Inductive sensors was triggered, the servo will turn from 90 to 0 degrees indicating that the trash is an Aluminum can, if the IR sensor was triggered but te inductive was not, it means the trash was plastic, thus, the servo will rotate from 90 to 180 degrees.
like we use ir sensor as a secondary sensor only? for instance, when the inductive sensor detected the object the servo motor will rotate from 0 to 180. But when the inductive sensor can't detect the object, which is plastics, the ir sensor will be the one to command the servo motor to rotate from 180 to 0