loading

arduino based etch a sketch laser cutter.

by:Transon     2020-09-03
The rotary encoder used in this project makes the output wave signal more accurate.
The orthogonal output is sent through two data lines, each of which carries a square wave signal, but the phase difference between the two lines is 90 degrees.
By calculating the number of pulses on either square wave, it is possible to determine how far the encoder has turned.
It is important to know the direction in which the knob turns to decide if the step should be added or removed from the total.
This is where the second data line can be used.
If you check the status of the \"B\" data line when the status of the \"a\" line changes, you can determine the direction in which the knob turns.
In the sample image, I highlighted the falling edge of the \"a\" signal.
When the knob turns clockwise, the \"B\" line increases with the drop of the \"a\" line.
The \"B\" line is low when the knob turns counter-clockwise.
In order to detect the orthogonal input super quickly, it is easy to connect the first data line to the interrupt input and set it to detect the edge of the signal.
The count can be changed every time an interrupt is triggered, by checking the second line on the standard input, you know to add and subtract from the count.
The etched sketch controller is laser cut from the laser plywood.
The frame is very simple and the two rotary encoders are placed in the corner.
The square hole prevents the encoder from turning in the housing.
The shaft of the encoder is D-shaped, so the holes on the knob are cut to match.
The knob sticks to the shaft.
Before the frame is closed with an additional laying layer, the wire extends from the encoder to the controller.
Red is made of mahogany wood dyes.
There are a total of 6 layers of material in the frame, the thickness is 18mm, and the whole frame is 100mm x 135mm.
I have attached the cut file in svg and pdf.
The files were originally created in Inkscape and saved as svg, but I found that the pdf can be much more interchanged.
The project can be used with this lasercut leetro controller for any laser cutting machine. By using 3.
81mm terminal blocks, the same as the existing controller, can insert the board into the laser cutting machine and pull it out from the laser cutting machine.
It can still be used as a function laser cutting machine and has a moment of notice.
Arduino is \"carried\" on a board with connectors for other modules on it.
All switch inputs use an internal pull-up to prevent the possibility of floating digital lines.
The rotary encoder is connected using analog input pins, but these pins are configured as digital IO.
The stepping motor drivers are all connected to the hardware PWM module on timer 1. The laser driver is connected to the hardware PWM module on timer 3. The source switching of the laser driver enable wire routing through the lid sensor and traffic is actually very simple, and most complex controls are actually handled by the hardware PWM module.
The PWM output is set at the beginning and will not change throughout the program.
Each input pulse on the rotary encoder makes it possible for the step motor output and the timer inside the code.
When the timer times out, the pulse of the stepping motor is turned off.
This turns a single pulse on the rotary encoder into a series of output pulses that drive the stepping motor several millimeters, not just one step.
The PWM of the laser driver is set at the beginning of the code.
The control is done by using a digital enable line, which just turns the laser on and off in the appropriate place.
This data line is routed through the flow sensor and the lid sensor, so it is not possible to accidentally activate the laser when doing so can be dangerous.
Turn on the laser tube when the X or Y axis moves.
Cutting can only prevent the laser from opening at rest when the shaft moves, so the possibility of fire is greatly reduced.
Custom message
Chat Online 编辑模式下无法使用
Leave Your Message inputting...
88888888888888888888888