Automatic tubing cutter using Raspberry Pi
This machine automatically cuts tubing down to a certain length. It's controlled by a Raspberry Pi microcomputer, the size and quantity required are input into the machine using a USB numpad, the machine then cuts the tubing to the required length.
The cutter is a pair of strong scissors driven by a windscreen wiper motor. The wire is fed through the scissors using a stepper motor.
Below is the first part I made, the scissors attached to a piece of 9 mm MDF.
This is the wire feeding mechanism. It's two rubber wheels, one of which is spring loaded. The rubber wheels are sandwiched between two pieces of steel taken from an old PC case. The rubber wheels came out of a printer.
I used an old windscreen wiper motor to drive the cutter. This motor is perfect as it already goes back and forth, via a mechanical linkage inside. This means that I don't need a H-Bridge to drive it, just a relay. It also has limit switches built in, these are fed into the RPi, so that the program knows where the cutter is (approximately).
The windscreen wiper motor fixed into place. The arm on the motor has a bolt with ball bearings on the end, this fits into the scissor handles.
Another shot of the stepper and windscreen motor.
This shows extra support for the motor :
Front of the machine, showing how the motor meets with the scissors.
On top of the machined there are the following
- USB Numpad for input of values.
- Green Reset button (should have made it red.... never mind).
- LED 1 indicates the program is waiting for length to be input.
- LED 2 indicates the program is waiting for quantity to be input.
- Big green toggle switch for on off.
The control circuit and Raspberry Pi :
The motor is driven from a large automotive relay, the relay is drive by a darlington transistor.
The stepper motor is also driven from 4 darling transistors.
I wanted the raspberry pi to run off the same power supply as the machine, but I couldn't get it to word, as the powersupply I have is too weak. As soon as the motor turns on the voltage drops right down. I may try and fix this with some large capacitors, but for now I'm running the RPi on a separate power supply.
I used some python code to control everything (could definitely be improved, but it works)
To get the program to autorun I modified the rc.local file to run my python script at start up. I also had to make the python script executable.
Raspberry Pi is a trademark of the Raspberry Pi Foundation