car wash with arduino mega

hello my name is sotiris and i study in university automation in greece http://www.autom.teithe.gr/gr/ and i create for my project a car wash. i must make a car wash with arduino also i make scada for watch and manual button in the scada and manual with button. i would like ask, if there this project or similar project. i dont copy and paste the code in my project but i would like read this code and after i will create my new code for my project.
(sory for this language but i dont know very good english)
thank you very much.
sotiris batianis

so...without posting any of your existing code, workflow, thought process, what you want to control, use to control, etc...you want us to write your entire program for you...am I correct? Good luck on that.

PS: Also you might want to use google translate, as a lot of your post doesn't make sense.

PPS: you really think one Arduino can power an entire car wash?

Your car wash will consist of turning valves on & off to control water flow, soap, airhose, things like that?
Should be workable. You make a loop that looks for a start button, controls the valves for various amounts of time, closes everything and waits for the next start button.

"scada", that is "code", or "software" ?

CrossRoads:
Your car wash will consist of turning valves on & off to control water flow, soap, airhose, things like that?
Should be workable. You make a loop that looks for a start button, controls the valves for various amounts of time, closes everything and waits for the next start button.

"scada", that is "code", or "software" ?

Depending on the type of car wash, there are a few more things than just some valves. Some have proximity sensors for blowers or arms so that they dont hit the car, some have arms for the brushes that move in and out, conveyor belts. Maybe with an arduino mega or something he might have enough i/o ports. I still dont think anyone around here is going to just do his assignment for him though.

Lets give him a chance to flesh out the requirements some more, see where it goes. I imagine poor college student, not going to be too fancy mechanical hardware-wise.

First thank you for your answers.
my project include: 1. the car insert in the tunel, after the limit switch on and the motor of belt conveyor start, after the 2 limit switch on and the start the pump of water. after the 3 limit switch start and the 3 brushes start. also start the up/down motor and the left/right motor (in this i dont know if i put Distance Sensors, or touch switch or laser switch). after the 4 limit switch on and 3 brushes stop and the up/down motor stop also the left right motor. after the 5 sec start the pump of water and on for 10 sec. after the 5 limit switch on and start the motor air.
all the motor and pump used relay and the motor up/down and left/right used h-bridge.
all the motor is dc motor.

(sory for language but i dont know very good english)

also scada is interface arduino with c# or visual basic or processing.
also all the system must and manual with button or with interface.

Thank you very very much.!!!!

what sensor put for the up/down motor and left/right motor?

please help me, i dont find the similar project.i want copy paste the code, i would like read the code and after i will create my new program

"Sensor" would just be a switch that you would read on a digital input pin.
When whatever is moving reaches the end of its travel, it would close the switch and let the arduino know to stop moving that motor.

sotisanis:
i want copy paste the code, ...

I hope that is "won't" not "want".

The thing is, there probably is not a car wash program already written. Most of the home-brew Arduino projects are pretty specific to the job at hand. For example I have a project that detects if my garage door is open and lets me know.

What you can do is read the tutorials, and understand things like:

  • Reading a switch and making a decision
  • Turning on and off lights or LEDs
  • Operating a motor
  • Reading a variable sensor (eg. how light it is)
  • Calculating elapsed time

Then your work is to combine those examples into a whole. For example you might read 3 switches, control 2 motors, flash 4 lights, etc. That part is really up to you.

Also, out of curiosity, is this a full-sized car wash, or are we talking toy cars here?

A toy car wash may be more doable as a student. Just think about all the water that will be wasted if a full-scale car wash is to be prototyped.

There are a lot of elements in a car wash as others mentioned. Did your instructor tell you, "go, make a car wash with arduino!" or was there some phases, such as planning, etc. ? Do you have a team? At any level this seems too big of a project for one student.

the car wash is model with 210cm*80cm. in this month we create the construction. my teacher doesnt help me, because he doesnt know from arduino and microcontroler. and we must create all the project with no help for the teacher. i dont found code for car wash and i am desperate. we are two student for this project!

Look at the blink without delay code.
Basically what you will do is have a loop running, and note the time an event starts (like a switch closure) to start an action, then keep checking the time and when enough time has elapsed you stop the action.

example:
switch1_state = digitalRead(switch1); // read the switch
if (switch1_state == HIGH & switch1_timer_running = 0){ // we'll say HIGH is switch activated, LOW = not
switch1_starttime = millis(); // capture the time
switch1_timer_running = 1; // set a Flag so you know your event has started
// now do switch1 stuff; like start water running
}
else{
if (switch1_timer_running == 1){ // if the event is going, see if time to stop
switch1_elapsed_time = millis() -switch1_starttime; // see home time elapsed
if (switch1_elapsed_time >= switch1_event_duration){ // if the event ran for enough time
switch1_timer_running = 0; // clear the flag
// and stop the running water, etc.
}
}
} // tricky bit - keeping these paired up

This will allow you to have several things running at one time.
You will need to get some "microswitches" to build into your model to use as sensors.
And some relays to turn on power for aquarium pumps or something for water flow.

Hope this helps you with a basic idea to follow.

oo thank you very much. i start understand the code. but what sensor used in the left/right motor and up down motor. one idea is one column with 5 laser sensor and always read the sensors the car and for up down use previous condition library but i dont know this subject. for left/right motor a analog apostasiometer and the motor right when the meter is zero.

the one idea is create the up down motor with analog apostasiometer, but the problem is, i don't know create previews condition because in the first apostasiometer to car is ex. 5cm and the second apostasiometer is 10 cm and the third apostasiometer is 6 cm and the 4 apostasiometer is 6 cm. how know the analog apostasiometer know who is the previews condition. because the motor maybe must up or down. sory for the language but i dont know very good english.

Have you tried using Google Translate? Is apostasiometer a potentiometer? That translates as Potenziometro. Or is it something else?

You will have something back and forth along a track, or slide?
You can place your switches at the locations you want, and when the "car" reaches them switch is closed and you know where the car is.

If you want to use a multi-turn potentiometer, and put a gear on it and have it turn as the motor turns, then you could read a voltage and use the voltage to decide where you are.

sory for the language http://cgi.ebay.com/Arduino-Ultrasonic-Module-Range-Detection-Sensor-HCSR04-/180706083514?pt=LH_DefaultDomain_0&hash=item2a12ec02ba

Start with this then
http://www.arduino.cc/playground/Main/MaxSonar

I design and build car wash systems. as long as the this car wash stays in its current state and not a real product you will be fine. if you are using Sonar sensors in an actual wash you are going to run into inconsistent measuring because of humidity fluctuations and various build products. there is a couple of companies that still use sonar sensors in car washes that have inconsistencies.
just my input. in a dry location you shouldn't have issues.