Dear programmers ,
I wont to use an arduino uno to program a foil packing machine.
This machine has the follow actuators and sensors :
1-One digital photo sensor to detect the level of the material at the hopper .
2-One electrical motor to drive the belt witch feeds the hopper.
They have to work in manual mode and automatic mode witch is selected using two NO switches.
3-NO switch(Manual mode )
4-NO switch(Automatic mode)
5-NO switch (Start conveyor motor)
When the automatic switch is activated ==HIGH , when the photo sensor is not activated , turn the conveyor motor ON and keep it on 20 seconds after the photo sensor is turned ON .
When the switch Manual mode is activated the conveyor motor has to turn ON only when the Start conveyor Switch is turned ON
This program that i have described above has to work in an independent way from the other part of the program .
The second part of the machine and the most important is described below :
6-NO switch (automatic mode)
7-NO switch (manual mode)
8-Digital Photo sensor to detect the distance of the foil bags .
9-NO switch(Start packer)
10-NO switch (Stop packer)
11-Electric motor to move the foil
12-Solonoid Air valve to feed the bags
13-Solonoid Air valve to close and cut the bags
14-NO switch to activate the electric motor witch move the foil
15-NO switch to activate the aolonoid Air valve to close the and cut the bags
When the automatic mode Switch is turned ON == HIGH and when the start Switch is turned ON , the electric motor witch moves the foil should be turned ON and when the photo Sensor is turned ON , the electric motor witch move the foil should turn OFF and the solonoid Air Valve who feeds the bags should turned ON for 8 Sec and the solonoid Air valve who closes and cuts the bags should turned ON for 4 seconds and this program can be execute until the stop switch is turned ON.
When the manual switch is turned ON and when the NO switch is turned ON witch activates the electric motor it should stey ON until the STOP switch is activated , the same for the NO switch of the selenoid valve .