Devices & Components
Arduino Uno Rev3
Pneumatic cylinder
Relay Module (Generic)
Motor Driver/Controller, H-Bridge
Darlington High Power Transistor
Spherical container on spindle, including a device to pick fruit object; originally a illumination lamp
Belt pulley 60 teeth + pulley 20 teeth
Stepper Motor, Mini Step
Project description
Code
https://create.arduino.cc/editor/NassauLv/2af44846-7a96-4bd6-94a8-97b2f3a4190c/preview
c_cpp
The code provides the control of 2 stepper motors (stepper1 for the carrousel and stepper2 for the fruit supply container), the control of the pneumatic valve and also the solonoid magnets which provide a one after one supply of the fruit objects. The code include the homing of the carrousel to assure the correct position of the plunger for the stoning action.
1ttps://create.arduino.cc/editor/NassauLv/2af44846-7a96-4bd6-94a8-97b2f3a4190c/previe
untitled
c_cpp
1 2// read the state of the switch value: 3// check if switch is pressed: 4 5 6 { 7 if (digitalRead(home_switch)==HIGH) 8 { 9 digitalWrite(GLED, 10 HIGH); 11 digitalWrite(RLED, LOW); 12 digitalWrite(RELAY, LOW); 13 14 15 delay(20); 16 } 17 18 else if (digitalRead(home_switch)==LOW); 19 20 digitalWrite(RLED, HIGH); 21 digitalWrite(GLED, LOW); 22 digitalWrite(RELAY, 23 HIGH); 24 25//Set basket turn 1/2 rotation: 26 stepper2.moveTo (-300); 27//Rotate 28 with set speed and acceleration: 29 stepper2.runToPosition(); 30 delay(20); 31 32 33//Activate solenoid: 34 digitalWrite(solenoidPin, HIGH); 35 36 delay(200); 37 digitalWrite(solenoidPin, LOW); 38 delay(20); 39 40 41//Set current position = 0: 42 stepper1.setCurrentPosition(0); 43 44 stepper2.setCurrentPosition(0); 45 46 delay(20); 47 } 48 49 } 50
https://create.arduino.cc/editor/NassauLv/2af44846-7a96-4bd6-94a8-97b2f3a4190c/preview
c_cpp
The code provides the control of 2 stepper motors (stepper1 for the carrousel and stepper2 for the fruit supply container), the control of the pneumatic valve and also the solonoid magnets which provide a one after one supply of the fruit objects. The code include the homing of the carrousel to assure the correct position of the plunger for the stoning action.
1ttps://create.arduino.cc/editor/NassauLv/2af44846-7a96-4bd6-94a8-97b2f3a4190c/previe
untitled
c_cpp
1 2// read the state of the switch value: 3// check if switch is pressed: 4 5 { 6 if (digitalRead(home_switch)==HIGH) 7 { 8 digitalWrite(GLED, HIGH); 9 digitalWrite(RLED, LOW); 10 digitalWrite(RELAY, LOW); 11 12 delay(20); 13 } 14 15 else if (digitalRead(home_switch)==LOW); 16 digitalWrite(RLED, HIGH); 17 digitalWrite(GLED, LOW); 18 digitalWrite(RELAY, HIGH); 19 20//Set basket turn 1/2 rotation: 21 stepper2.moveTo (-300); 22//Rotate with set speed and acceleration: 23 stepper2.runToPosition(); 24 delay(20); 25 26//Activate solenoid: 27 digitalWrite(solenoidPin, HIGH); 28 delay(200); 29 digitalWrite(solenoidPin, LOW); 30 delay(20); 31 32//Set current position = 0: 33 stepper1.setCurrentPosition(0); 34 stepper2.setCurrentPosition(0); 35 36 delay(20); 37 } 38 } 39
Downloadable files
Control unit
All connections from Arduino Uno to components such as steppers, drivers, relays, homing-switch and pneumatic valves as well as solenoids controlling fruit supply
Control unit

Control unit
All connections from Arduino Uno to components such as steppers, drivers, relays, homing-switch and pneumatic valves as well as solenoids controlling fruit supply
Control unit

Documentation
ontpitter_1-2_bb-3_mI4gOfQHFc.jpg
ontpitter_1-2_bb-3_mI4gOfQHFc.jpg

Plunger & Escapement
Plunger for stoning, escapement to control fruit supply to carrousel
Plunger & Escapement

Plunger & Escapement
Plunger for stoning, escapement to control fruit supply to carrousel
Plunger & Escapement

ontpitter_1-2_bb-3_mI4gOfQHFc.jpg
ontpitter_1-2_bb-3_mI4gOfQHFc.jpg

Comments
Only logged in users can leave comments