NEED HELP. FOR OUR DISHWASHING MACHINE

okay so umm our group need to make a cleaning theme project and we proceed with a dishwasher. The hardware is all done but we don't know how to do the circuit and the coding as we all comes from a non-robotic course during high school. okay so um in this project we also used colour sensor tcs3200 as if we don't use it we can't proceed with the project.

The components we have:

Arduino Uno R3 x2
TCS3200 x4
Water pump 12V DC 6W R385
70 RPM motor x2 (for the lead screw to move the brush)
Servo motor tower pro MG995 x2
L298N motor driver
Green LED
Red LED

so the procedure that we plan is:

  1. Push the button to start.
  2. The water pump will start pumping water for about 25 seconds
  3. After the first 10 seconds, our servo motor will turn the plate 180 degrees.
  4. after 25 seconds servo motor will turn the plate again 180 degrees.
  5. The brush at lead screw will go forwards then backwards.
  6. Servo motor will turn our plate again facing downwards.
  7. The brush at lead screw will go forward then backwards
  8. The water pump will start pumping water for about 25 seconds
  9. After the first 12 seconds, the servo motor will turn the plate 180 degrees.

AT TCS3200

  1. Push the button to start.
  2. The colour sensor will scan the plate
  3. If all is within the range, the GREEN LED will light up
  4. If it's not in the range, RED LED will light up.

Any ideas for the circuit and coding are much appreciated. We have no clue cause when we do like what we have already searched on the internet but it still didn't work T^T. The due date is coming up so any ideas are welcomed.

@zill_winter

Moved your topic to it's current location as it is more suitable.

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

First, learn to control all of your outputs separately. Select a drive technique for each - choose relays, FETs, etc. Work up a little sketch for each type and make it do something. Make it respond to your intended sensors. Useful bits and pieces of code and concepts in IDE -> file/examples/digital.


Investigate state machines using the switch/case construct.