garbage collecting robots using an ultrasonic sensor and a PIR sensor

Hello. I'm trying to build two garbage collecting robot that use sensors and servo motors to collect trash. I'm trying to test which sensor would better sense the trash. My question is, would it be better to have the sensors control the DC motors, servo motors, and buzzer, or just have the sensors control the buzzer to tell you when it senses the trash? Thank you very much, any help would be appreciated.

jessabu:
My question is, would it be better to have the sensors control the DC motors, servo motors, and buzzer, or just have the sensors control the buzzer to tell you when it senses the trash?

I have no idea what you mean but sensors can't control motors or servos. Sensors can only give information to some microcontroller and that microcontroller then controls the motors or servos based on the information it gets from the sensors. Sensors can't control buzzers. Sensors can feed information to a microcontroller and that microcontroller can control a buzzer based on the information it gets from the sensors.

Simple solution is good engineering :slight_smile:

First, decide what you want your sensors to detect.

Is it the presence of a garbage bin ? - a proximity or a simple push button

Remote sensing a bin ? - ultrasnic or similar