2. MACHINE CONTROLLER
Controller function
To design the controller we must know the motions and actions of
press well to determine the input and output needed in controller and
write the suitable program to do this motions and actions
The motions and actions required
When press on down switch press will stop the motion in up
direction and move downwards
When press on up switch the press will stop the motion in
down direction and move upwards
When stop switch was pressed stop any motion
When the press touch the upper limit switch stop motion in
upward direction
When the press touch the lower limit switch stop motion in
downwards direction and move upward
Green Led Indicator Light on when power switch is on and off
when the Emergency Stop Switch is Pressed
Red led indicator light on when Emergency stop Switch is
Pressed
Yellow Led Indicator light on when the press move downward
According to the required motions and actions we designe and
programing the circuit whiche achive the required functions
6. CONTROLLER COMPONENT
No Qty Component Image
1 1 Electric Control panel box 30 x 40 cm
2 2 Plastic box 115, 75, 38 mm L, W, H
3 1
8 Output Relay Module
[KIT.8RELAY]
4 2 Limit Switch
5 1 Arduino UNO Circuit
6 1
Power Supply 12 VDC
[KIT.SMPS.12V.3A]
7 1 3SC8 AC contactor 35 A
8 8 Pluggable Terminal Block 2 Pin
7. 9 3 Push Button Switch
10 4 10 KΩ Resistor
11 1 Emergency Stop Switch
12 1 Machine Switch
13
3
Led Indicator 220 VAC
Red, Green and Yellow
14
1
Pkg
Wire Terminal 1 mm
15 1 Holes Prototype PCB 9x7 cm
8. 16 4 Wire Gland for limit Switches
17 2
Wire Gland for Power Cable & Motor
Cable
18 2 Wire Gland for DCV Cable
19 2 Wire Gland for Hand Box Cable
20 16 Plastic Hex Spacer with Bolts and Nuts
21 1
10 m Cable 2 Wires 3 mm for Power
and Motor
9. 22 1
3 m Cable 5 Wires 0.5 mm for Hand Box
Remote
23 1 3 m Cable 2 Wires 1 mm for DCV
24 1
6 m Cable 2 Wires 0.5 mm for Limit
Switches
25 1
5 m Wire 0.5 mm for each color “Red,
Black, Yellow and Blue”
26 1 Terminal Blocks Rail
27 4 Terminal Blocks Ends
28 30 Terminal Blocks 3 mm
10. 29 1 Plastic Cable Tray 20 x 30 cm
30
1
pkg
Cable Ties 3.5 x 150 mm
31 30
Screw Drive Bolts With Nuts and
Washers M4 x 15 10 mm
11. 8 Output Relay Module (Enabled with 3 ~ 12 Volts) [KIT.8RELAY]
Features:
1) Operating with 12VDC(300mA).
2) Open each relay with 3 ~ 12 volts ( Can be directly connected to
Microcontrollers , Arduino Boards or PC port).
3) Output of each relay can be used for current up to 7A (at 28Vdc or
at 240Vac).
4) Each relay with LED illuminate when the relay is enabled.
5) Dimensions: 100 x 52 mm
6) Easy to connect the wires through PCB screw terminal blocks
(Enlarge the photo to see it clearly).
Limit switch
Dual circuit snap-action limit switch
12. Actuator heads are adjustable in 90° increments through 360°
Actuator can be adjusted through 360° about rotary shaft on
lever types
Metal enclosure, protection to IP67
Limit Switch Actuator Roller Lever
Operating Force Max 13.34N
Contact Voltage AC Max 500V
Contact Current AC Max 10A
Contact Voltage DC Max 250V
Contact Current DC Max 10A
Contact Configuration 1NO and 1 NC
Arduino UNO Board
Microcontroller: ATmega328
Operating Voltage: 5V
Input Voltage (recommended): 7-12V
Input Voltage (limits): 6-20V
Digital I/O Pins: 14 (of which 6 provide PWM output)
Analog Input Pins: 6
DC Current per I/O Pin: 40 mA
DC Current for 3.3V Pin:50 mA
Flash Memory: 32 KB (ATmega328) of which 0.5 KB used by
bootloader
SRAM: 2 KB (ATmega328)
13. EEPROM: 1 KB (ATmega328)
Clock Speed: 16 MHz
Arduino Program
-------------------------------------------------------------------------------------------------------------
int button1Pin = 4; // pushbutton 1 pin
int button2Pin = 5; // pushbutton 2 pin
int button3Pin = 6; // pushbutton 2 pin
int button4Pin = 7; // pushbutton 2 pin
int led1Pin = 0; // LED pin
int led2Pin = 1; // LED pin
void setup()
{
// Set up the pushbutton pins to be an input:
pinMode(button1Pin, INPUT);
pinMode(button2Pin, INPUT);
pinMode(button3Pin, INPUT);
pinMode(button4Pin, INPUT);
// Set up the LED pin to be an output:
pinMode(led1Pin, OUTPUT);
pinMode(led2Pin, OUTPUT);
}
void loop()
{
int UP, DN, STOP, LM ; // variables to hold the pushbutton states
DN = digitalRead(button1Pin);
UP = digitalRead(button2Pin);
STOP = digitalRead(button3Pin);
LM = digitalRead(button4Pin);
if (DN == HIGH) {