SlideShare une entreprise Scribd logo
1  sur  32
Télécharger pour lire hors ligne
@EvilDeece
LinuxCNC For Fun & Profit
(now with deadly lasers)
Alastair D’Silva
@EvilDeece
LCA 2016
@EvilDeece
Water Cooling
@EvilDeece
Buy one now
for only $540!
@EvilDeece
Original control board
@EvilDeece
Parallel Port breakout board
@EvilDeece
Motor control
@EvilDeece
FlexPCB interface
@EvilDeece
End stops
@EvilDeece
G0 X0 Y0
(fire laser)
G0 X100 Y0
(fire laser)
G0 X100 Y100
(fire laser)
G0 X0 Y100
(fire laser)
Measure and update the millkins config with the skew
Calibration
a b
c
cos(ϴ/2) = ((b/2)2
+ c2
- (a/2)2
) /
bc
ϴ
@EvilDeece
Interfacing the laser
PSU
@EvilDeece
Configure Pulse Per Inch (PPI) mode
@EvilDeece
Demo
@EvilDeece
Problems
@EvilDeece
Invert laser control so it is off while the computer is
booting
Raster Scans
Coolant Temperature/Flow & Lid interlocks
Add Replicape support to MachineKit & move to
Beaglebone Black
Webcam Monitoring
Jog controls
Future
@EvilDeece
Slide 3 http://www.ebay.com.au/itm/CO2-LASER-ENGRAVER-
CUTTER-ENGRAVING-CUTTING-MACHINE-CARVING-40W-
LASER-PRINTER-/321808036566
Slide 5 www.ebay.com.au/itm/5-axis-CNC-Breakout-Board-
with-optical-coupler-For-Stepper-Motor-Driver-
MACH3-/172045790779
Slide 6 http://www.aliexpress.com/item/M542-Leadshine-256-
Microstep-driver-2-phase-4-2A-DC18-48V-fit-57-86-motor-
for/32341077087.html
Slide 11 http://www.buildlog.net/blog/2011/12/getting-more-
power-and-cutting-accuracy-out-of-your-home-built-laser-
system/
Credits
@EvilDeece
Twitter @EvilDeece
Email alastair@d-silva.org
Questions?
Background:
Currently an open source developer with IBM's
Ozlabs, this talk does is not endorsed by IBM and
does not reflect their opinions
One of the co-founders of MHV
Hobby business “Crankybot” making science based
jewllery
Preparing for christmas markets, building lots of
stock. Water cooling failed.
This is why – the adapter connecting the hose was
hot-glued in, and the water got warm enough (after
a day of operation) to soften the hotglue and the
adapter popped out.
Cooling of the tube failed, and the tube current
dropped from 12mA to 0.
Needed a replacement in a hurry, found a similar
replacement shipped from Sydney for $540.
We tried the software it came with (CorelLaser +
pirated Coreldraw). Rastered well, but there was no
power control of the laser through software, so we
could not vector engrave.
Decided to go back to LinuxCNC which we were
running on the original machine.
LinuxCNC is a framework, with a couple of typical
applications that are used, but is completely
extensible.
Can drive simple 2-3 axis machines, lathes, 5 axis,
multidimensional robots. Can drive steppers,
servos, DC motors + position feedback.
First thin to do is get the machine talking to the PC.
LinuxCNC can't use USB for the realtime
components, so the parallel port is the typical
method for cheap machines.
Can also use FPGA boards for faster step rates, or
use MachineKit on the Beaglebone Black to
leverage the PRU microcontrollers for much higher
step rates.
Limiting factor on the step when bit-bashing steppers
is the latency jitter from realtime linux. Some tricks
to reduce it, such as tying interrupt handling to 1
core and running applications on another.
Once you have data flowing out, need to get it into a
motor.
Microstepping controller synthesizes virtual steps by
moving the motor between it's physical steps.
Increases resolution, but trades off torque and
linearity. We use it to get smoother curves.
Take step and direction pulses, and increment the
stepper motor position accordingly. To correlate it
correctly, you need to know how many steps per
unit distance is required. First approximation by
looking at the belt pitch, motor gear teeth, and
microsteps per revolution.
Problem: X motor & end-stop interfaced via flex-pcb.
Fabricate an interface on protoboard using 28 gauge
wire-wrap wire soldered directly to the flexpcb.
Tell the machine when an axis is at the limit of travel.
Commonly a microswitch or photointerruptor.
Next we calibrate the motion of the machine.
Manually cut 2 points 100mm apart, then measure
the distance and update the config to correct for the
error.
Next, cut 4 points on the corners of a square, use a
bit of trig to calculate the skew of the machine, and
use the “millkins” kinematics module to correct the
skew. This maps the logical coordinates that the g-
code refers to, to physical positions on the machine
axes.
The computer needs to be able to fire the laser.
There are 2 lines on the PSU to do this, one is ative
high and one is active low.
Used an SMD optocoupler with a pullup resistor to
drive the active-low line to ground when the line
from the parallel port goes high.
Motion requires acceleration, which means that you
have varying speeds. On a laser, this means that if
the laser power is held constant, you end op with
varying power per unit area, with more power
delivered at the start/end of cuts when the head is
under acceleration.
Use a plugin to configure PPI mode, where the user
nominates power per area (as pulses per mm),
rather than raw constant power to the laser.
@EvilDeece
Demo
Big problem: some parallel outputs come up high,
which leaves the laser on until LinuxCNC is started
and takes control.
Laser parked over a hole in the bottom of the
machine, burnt a hole through the table and set it
on fire.
Fix the laser state on powerup!
Test raster scanl
Add interlocks for coolant temperature & flow, safety
interlock on the lid
Add support for Replicate to Machinekit so I can use
the TMC2100 stepper controllers for quieter/faster
operation
Webcam monitoring
Jog controls
@EvilDeece
Slide 3 http://www.ebay.com.au/itm/CO2-LASER-ENGRAVER-
CUTTER-ENGRAVING-CUTTING-MACHINE-CARVING-40W-
LASER-PRINTER-/321808036566
Slide 5 www.ebay.com.au/itm/5-axis-CNC-Breakout-Board-
with-optical-coupler-For-Stepper-Motor-Driver-
MACH3-/172045790779
Slide 6 http://www.aliexpress.com/item/M542-Leadshine-256-
Microstep-driver-2-phase-4-2A-DC18-48V-fit-57-86-motor-
for/32341077087.html
Slide 11 http://www.buildlog.net/blog/2011/12/getting-more-
power-and-cutting-accuracy-out-of-your-home-built-laser-
system/
Credits
@EvilDeece
Twitter @EvilDeece
Email alastair@d-silva.org
Questions?

Contenu connexe

Tendances

Overview of LPC214x MCUs
Overview of LPC214x MCUsOverview of LPC214x MCUs
Overview of LPC214x MCUsPremier Farnell
 
2 introduction to arm architecture
2 introduction to arm architecture2 introduction to arm architecture
2 introduction to arm architecturesatish1jisatishji
 
Q4.11: ARM Architecture
Q4.11: ARM ArchitectureQ4.11: ARM Architecture
Q4.11: ARM ArchitectureLinaro
 
C211824
C211824C211824
C211824irjes
 
ARM 7 Detailed instruction set
ARM 7 Detailed instruction setARM 7 Detailed instruction set
ARM 7 Detailed instruction setP.r. Dinesh
 
Fpga(field programmable gate array)
Fpga(field programmable gate array) Fpga(field programmable gate array)
Fpga(field programmable gate array) Iffat Anjum
 
VHDL Practical Exam Guide
VHDL Practical Exam GuideVHDL Practical Exam Guide
VHDL Practical Exam GuideEslam Mohammed
 
RISC-V 30907 summit 2020 joint picocom_mentor
RISC-V 30907 summit 2020 joint picocom_mentorRISC-V 30907 summit 2020 joint picocom_mentor
RISC-V 30907 summit 2020 joint picocom_mentorRISC-V International
 
Embedded System Programming on ARM Cortex M3 and M4 Course
Embedded System Programming on ARM Cortex M3 and M4 CourseEmbedded System Programming on ARM Cortex M3 and M4 Course
Embedded System Programming on ARM Cortex M3 and M4 CourseFastBit Embedded Brain Academy
 
Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginnersPraveen Chary
 
Micro lec note2
Micro lec note2Micro lec note2
Micro lec note2KHATANA360
 
Introduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family MicrocontrollersIntroduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family MicrocontrollersPremier Farnell
 
Mastering Microcontroller : TIMERS, PWM, CAN, RTC,LOW POWER
Mastering Microcontroller : TIMERS, PWM, CAN, RTC,LOW POWERMastering Microcontroller : TIMERS, PWM, CAN, RTC,LOW POWER
Mastering Microcontroller : TIMERS, PWM, CAN, RTC,LOW POWERFastBit Embedded Brain Academy
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 MicrocontrollerAvijeet Negel
 

Tendances (20)

Overview of LPC214x MCUs
Overview of LPC214x MCUsOverview of LPC214x MCUs
Overview of LPC214x MCUs
 
2 introduction to arm architecture
2 introduction to arm architecture2 introduction to arm architecture
2 introduction to arm architecture
 
Q4.11: ARM Architecture
Q4.11: ARM ArchitectureQ4.11: ARM Architecture
Q4.11: ARM Architecture
 
C211824
C211824C211824
C211824
 
Micro lec note2 (1)
Micro lec note2 (1)Micro lec note2 (1)
Micro lec note2 (1)
 
Micro lec note2
Micro lec note2Micro lec note2
Micro lec note2
 
ARM 7 Detailed instruction set
ARM 7 Detailed instruction setARM 7 Detailed instruction set
ARM 7 Detailed instruction set
 
Fpga(field programmable gate array)
Fpga(field programmable gate array) Fpga(field programmable gate array)
Fpga(field programmable gate array)
 
VHDL Practical Exam Guide
VHDL Practical Exam GuideVHDL Practical Exam Guide
VHDL Practical Exam Guide
 
Microcontroller part 2
Microcontroller part 2Microcontroller part 2
Microcontroller part 2
 
RISC-V 30907 summit 2020 joint picocom_mentor
RISC-V 30907 summit 2020 joint picocom_mentorRISC-V 30907 summit 2020 joint picocom_mentor
RISC-V 30907 summit 2020 joint picocom_mentor
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
Embedded System Programming on ARM Cortex M3 and M4 Course
Embedded System Programming on ARM Cortex M3 and M4 CourseEmbedded System Programming on ARM Cortex M3 and M4 Course
Embedded System Programming on ARM Cortex M3 and M4 Course
 
Pic microcontrollers for_beginners
Pic microcontrollers for_beginnersPic microcontrollers for_beginners
Pic microcontrollers for_beginners
 
Micro lec note2
Micro lec note2Micro lec note2
Micro lec note2
 
Introduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family MicrocontrollersIntroduction to Stellaris Family Microcontrollers
Introduction to Stellaris Family Microcontrollers
 
Lecture8
Lecture8Lecture8
Lecture8
 
1 Day Arm 2007
1 Day Arm 20071 Day Arm 2007
1 Day Arm 2007
 
Mastering Microcontroller : TIMERS, PWM, CAN, RTC,LOW POWER
Mastering Microcontroller : TIMERS, PWM, CAN, RTC,LOW POWERMastering Microcontroller : TIMERS, PWM, CAN, RTC,LOW POWER
Mastering Microcontroller : TIMERS, PWM, CAN, RTC,LOW POWER
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 

En vedette

La revolución de la eAdministración
La revolución de la eAdministraciónLa revolución de la eAdministración
La revolución de la eAdministraciónAntoni
 
Tuloksellista vlogimarkkinointia: Case Explorius
Tuloksellista vlogimarkkinointia: Case ExploriusTuloksellista vlogimarkkinointia: Case Explorius
Tuloksellista vlogimarkkinointia: Case ExploriusAikakausmedia
 
A macular pathology and oct update for optometrists
A macular pathology and oct update for optometristsA macular pathology and oct update for optometrists
A macular pathology and oct update for optometristsTheEyeExpert
 
Revista deportistas n41
Revista  deportistas n41Revista  deportistas n41
Revista deportistas n41Silvana Mendez
 
Ppt eka seks bebas
Ppt eka seks bebasPpt eka seks bebas
Ppt eka seks bebaseka71
 
Erfolg Ausgabe Nr. 12 2015
Erfolg Ausgabe Nr. 12 2015Erfolg Ausgabe Nr. 12 2015
Erfolg Ausgabe Nr. 12 2015Roland Rupp
 

En vedette (12)

Stefan Gradman DM2E Kickoff 20120301
Stefan Gradman DM2E Kickoff 20120301Stefan Gradman DM2E Kickoff 20120301
Stefan Gradman DM2E Kickoff 20120301
 
PráCtica 2
PráCtica 2PráCtica 2
PráCtica 2
 
La revolución de la eAdministración
La revolución de la eAdministraciónLa revolución de la eAdministración
La revolución de la eAdministración
 
RADIOS EN FM
RADIOS EN FMRADIOS EN FM
RADIOS EN FM
 
Tuloksellista vlogimarkkinointia: Case Explorius
Tuloksellista vlogimarkkinointia: Case ExploriusTuloksellista vlogimarkkinointia: Case Explorius
Tuloksellista vlogimarkkinointia: Case Explorius
 
Ecos de Sociedad
Ecos de SociedadEcos de Sociedad
Ecos de Sociedad
 
A macular pathology and oct update for optometrists
A macular pathology and oct update for optometristsA macular pathology and oct update for optometrists
A macular pathology and oct update for optometrists
 
Etr mohamad shukry_b._maksah_05
Etr mohamad shukry_b._maksah_05Etr mohamad shukry_b._maksah_05
Etr mohamad shukry_b._maksah_05
 
Revista deportistas n41
Revista  deportistas n41Revista  deportistas n41
Revista deportistas n41
 
Ppt eka seks bebas
Ppt eka seks bebasPpt eka seks bebas
Ppt eka seks bebas
 
Presentacion Stu2
Presentacion Stu2Presentacion Stu2
Presentacion Stu2
 
Erfolg Ausgabe Nr. 12 2015
Erfolg Ausgabe Nr. 12 2015Erfolg Ausgabe Nr. 12 2015
Erfolg Ausgabe Nr. 12 2015
 

Similaire à LinuxCNC for Fun & Profit

Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Kael Kristjanson
 
Mini CNC Plotter and Laser Engraver
Mini CNC Plotter and Laser EngraverMini CNC Plotter and Laser Engraver
Mini CNC Plotter and Laser Engraverijtsrd
 
Opensource Rapidfire X360 Project2
Opensource Rapidfire X360 Project2Opensource Rapidfire X360 Project2
Opensource Rapidfire X360 Project2guestf6f4e8
 
Optimizing the graphics pipeline with compute
Optimizing the graphics pipeline with computeOptimizing the graphics pipeline with compute
Optimizing the graphics pipeline with computeWuBinbo
 
summer training report (2)
summer training report (2)summer training report (2)
summer training report (2)Kavya Gupta
 
Embedded System for begners and good for seminar
 Embedded System for begners and good for seminar Embedded System for begners and good for seminar
Embedded System for begners and good for seminarSwaraj Nayak
 
Folza_paper_mechatronics
Folza_paper_mechatronicsFolza_paper_mechatronics
Folza_paper_mechatronicsAlex Folz
 
Power Over Fiber_PCBProject
Power Over Fiber_PCBProjectPower Over Fiber_PCBProject
Power Over Fiber_PCBProjectInbar Kinarty
 
Team2_Final_Project_Documentation
Team2_Final_Project_DocumentationTeam2_Final_Project_Documentation
Team2_Final_Project_DocumentationTristan Roberts
 
QuickSilver Controls QCI-DS032 QCI-N2-MX
QuickSilver Controls QCI-DS032 QCI-N2-MXQuickSilver Controls QCI-DS032 QCI-N2-MX
QuickSilver Controls QCI-DS032 QCI-N2-MXElectromate
 
An_Introduction_to_Microcontrollers.pptx
An_Introduction_to_Microcontrollers.pptxAn_Introduction_to_Microcontrollers.pptx
An_Introduction_to_Microcontrollers.pptxStefan Oprea
 
REPORT texto braillefinal
REPORT texto braillefinalREPORT texto braillefinal
REPORT texto braillefinalASWATHI K
 
Solution on Handheld Signal Generator
Solution on Handheld Signal Generator Solution on Handheld Signal Generator
Solution on Handheld Signal Generator Premier Farnell
 
IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...
IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...
IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...IRJET Journal
 
CNC machine using PCB layout with wireless communication
CNC machine using PCB layout with wireless communicationCNC machine using PCB layout with wireless communication
CNC machine using PCB layout with wireless communicationVenkatkumar78
 
Autonomous Terrain Mapping Using COTS Hardware
Autonomous Terrain Mapping Using COTS HardwareAutonomous Terrain Mapping Using COTS Hardware
Autonomous Terrain Mapping Using COTS HardwareJames Anderson
 
Solar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUISolar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUIIRJET Journal
 

Similaire à LinuxCNC for Fun & Profit (20)

Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Robotics Report final.compressed (1)
Robotics Report final.compressed (1)
 
Mini CNC Plotter and Laser Engraver
Mini CNC Plotter and Laser EngraverMini CNC Plotter and Laser Engraver
Mini CNC Plotter and Laser Engraver
 
Dp32725728
Dp32725728Dp32725728
Dp32725728
 
Opensource Rapidfire X360 Project2
Opensource Rapidfire X360 Project2Opensource Rapidfire X360 Project2
Opensource Rapidfire X360 Project2
 
Control position for servo motor
Control position for servo motorControl position for servo motor
Control position for servo motor
 
Optimizing the graphics pipeline with compute
Optimizing the graphics pipeline with computeOptimizing the graphics pipeline with compute
Optimizing the graphics pipeline with compute
 
summer training report (2)
summer training report (2)summer training report (2)
summer training report (2)
 
Embedded System for begners and good for seminar
 Embedded System for begners and good for seminar Embedded System for begners and good for seminar
Embedded System for begners and good for seminar
 
Folza_paper_mechatronics
Folza_paper_mechatronicsFolza_paper_mechatronics
Folza_paper_mechatronics
 
Power Over Fiber_PCBProject
Power Over Fiber_PCBProjectPower Over Fiber_PCBProject
Power Over Fiber_PCBProject
 
Team2_Final_Project_Documentation
Team2_Final_Project_DocumentationTeam2_Final_Project_Documentation
Team2_Final_Project_Documentation
 
QuickSilver Controls QCI-DS032 QCI-N2-MX
QuickSilver Controls QCI-DS032 QCI-N2-MXQuickSilver Controls QCI-DS032 QCI-N2-MX
QuickSilver Controls QCI-DS032 QCI-N2-MX
 
An_Introduction_to_Microcontrollers.pptx
An_Introduction_to_Microcontrollers.pptxAn_Introduction_to_Microcontrollers.pptx
An_Introduction_to_Microcontrollers.pptx
 
REPORT texto braillefinal
REPORT texto braillefinalREPORT texto braillefinal
REPORT texto braillefinal
 
Solution on Handheld Signal Generator
Solution on Handheld Signal Generator Solution on Handheld Signal Generator
Solution on Handheld Signal Generator
 
IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...
IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...
IRJET- Autonomous Adjustable Pesticide Spraying Device for Agricultural Appli...
 
CNC machine using PCB layout with wireless communication
CNC machine using PCB layout with wireless communicationCNC machine using PCB layout with wireless communication
CNC machine using PCB layout with wireless communication
 
Autonomous Terrain Mapping Using COTS Hardware
Autonomous Terrain Mapping Using COTS HardwareAutonomous Terrain Mapping Using COTS Hardware
Autonomous Terrain Mapping Using COTS Hardware
 
Mini CNC PROJECT
Mini CNC PROJECTMini CNC PROJECT
Mini CNC PROJECT
 
Solar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUISolar Based Robotic Arm using Matlab GUI
Solar Based Robotic Arm using Matlab GUI
 

Dernier

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 

Dernier (20)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 

LinuxCNC for Fun & Profit

  • 1. @EvilDeece LinuxCNC For Fun & Profit (now with deadly lasers) Alastair D’Silva @EvilDeece LCA 2016
  • 9. @EvilDeece G0 X0 Y0 (fire laser) G0 X100 Y0 (fire laser) G0 X100 Y100 (fire laser) G0 X0 Y100 (fire laser) Measure and update the millkins config with the skew Calibration a b c cos(ϴ/2) = ((b/2)2 + c2 - (a/2)2 ) / bc ϴ
  • 14. @EvilDeece Invert laser control so it is off while the computer is booting Raster Scans Coolant Temperature/Flow & Lid interlocks Add Replicape support to MachineKit & move to Beaglebone Black Webcam Monitoring Jog controls Future
  • 15. @EvilDeece Slide 3 http://www.ebay.com.au/itm/CO2-LASER-ENGRAVER- CUTTER-ENGRAVING-CUTTING-MACHINE-CARVING-40W- LASER-PRINTER-/321808036566 Slide 5 www.ebay.com.au/itm/5-axis-CNC-Breakout-Board- with-optical-coupler-For-Stepper-Motor-Driver- MACH3-/172045790779 Slide 6 http://www.aliexpress.com/item/M542-Leadshine-256- Microstep-driver-2-phase-4-2A-DC18-48V-fit-57-86-motor- for/32341077087.html Slide 11 http://www.buildlog.net/blog/2011/12/getting-more- power-and-cutting-accuracy-out-of-your-home-built-laser- system/ Credits
  • 17. Background: Currently an open source developer with IBM's Ozlabs, this talk does is not endorsed by IBM and does not reflect their opinions One of the co-founders of MHV Hobby business “Crankybot” making science based jewllery Preparing for christmas markets, building lots of stock. Water cooling failed.
  • 18. This is why – the adapter connecting the hose was hot-glued in, and the water got warm enough (after a day of operation) to soften the hotglue and the adapter popped out. Cooling of the tube failed, and the tube current dropped from 12mA to 0.
  • 19. Needed a replacement in a hurry, found a similar replacement shipped from Sydney for $540.
  • 20. We tried the software it came with (CorelLaser + pirated Coreldraw). Rastered well, but there was no power control of the laser through software, so we could not vector engrave. Decided to go back to LinuxCNC which we were running on the original machine. LinuxCNC is a framework, with a couple of typical applications that are used, but is completely extensible. Can drive simple 2-3 axis machines, lathes, 5 axis, multidimensional robots. Can drive steppers, servos, DC motors + position feedback.
  • 21. First thin to do is get the machine talking to the PC. LinuxCNC can't use USB for the realtime components, so the parallel port is the typical method for cheap machines. Can also use FPGA boards for faster step rates, or use MachineKit on the Beaglebone Black to leverage the PRU microcontrollers for much higher step rates. Limiting factor on the step when bit-bashing steppers is the latency jitter from realtime linux. Some tricks to reduce it, such as tying interrupt handling to 1 core and running applications on another.
  • 22. Once you have data flowing out, need to get it into a motor. Microstepping controller synthesizes virtual steps by moving the motor between it's physical steps. Increases resolution, but trades off torque and linearity. We use it to get smoother curves. Take step and direction pulses, and increment the stepper motor position accordingly. To correlate it correctly, you need to know how many steps per unit distance is required. First approximation by looking at the belt pitch, motor gear teeth, and microsteps per revolution. Problem: X motor & end-stop interfaced via flex-pcb.
  • 23. Fabricate an interface on protoboard using 28 gauge wire-wrap wire soldered directly to the flexpcb.
  • 24. Tell the machine when an axis is at the limit of travel. Commonly a microswitch or photointerruptor.
  • 25. Next we calibrate the motion of the machine. Manually cut 2 points 100mm apart, then measure the distance and update the config to correct for the error. Next, cut 4 points on the corners of a square, use a bit of trig to calculate the skew of the machine, and use the “millkins” kinematics module to correct the skew. This maps the logical coordinates that the g- code refers to, to physical positions on the machine axes.
  • 26. The computer needs to be able to fire the laser. There are 2 lines on the PSU to do this, one is ative high and one is active low. Used an SMD optocoupler with a pullup resistor to drive the active-low line to ground when the line from the parallel port goes high.
  • 27. Motion requires acceleration, which means that you have varying speeds. On a laser, this means that if the laser power is held constant, you end op with varying power per unit area, with more power delivered at the start/end of cuts when the head is under acceleration. Use a plugin to configure PPI mode, where the user nominates power per area (as pulses per mm), rather than raw constant power to the laser.
  • 29. Big problem: some parallel outputs come up high, which leaves the laser on until LinuxCNC is started and takes control. Laser parked over a hole in the bottom of the machine, burnt a hole through the table and set it on fire.
  • 30. Fix the laser state on powerup! Test raster scanl Add interlocks for coolant temperature & flow, safety interlock on the lid Add support for Replicate to Machinekit so I can use the TMC2100 stepper controllers for quieter/faster operation Webcam monitoring Jog controls
  • 31. @EvilDeece Slide 3 http://www.ebay.com.au/itm/CO2-LASER-ENGRAVER- CUTTER-ENGRAVING-CUTTING-MACHINE-CARVING-40W- LASER-PRINTER-/321808036566 Slide 5 www.ebay.com.au/itm/5-axis-CNC-Breakout-Board- with-optical-coupler-For-Stepper-Motor-Driver- MACH3-/172045790779 Slide 6 http://www.aliexpress.com/item/M542-Leadshine-256- Microstep-driver-2-phase-4-2A-DC18-48V-fit-57-86-motor- for/32341077087.html Slide 11 http://www.buildlog.net/blog/2011/12/getting-more- power-and-cutting-accuracy-out-of-your-home-built-laser- system/ Credits