Hello Guest it is April 27, 2024, 12:25:02 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - khalid

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »
181
Hi Ray...You are a genius ..This is what i want to do...I thought it is not possible with Mach3 because of my ignorance to the knowledge of encoders... I was thinking to control the X/Y carriage with Mach3 and the spindle i.e. Motor with Arduino Microcontroller...
But now i dropped my idea to control the spindle with Arduino,its a bit complicated..Now i want to control the whole system with Mach3 alone..Ray CAN YOu help me in this HOW CAN I DO IT IN MACH3..Kindly give me some step by step method/Hints so that i can do this..Please
Following is my thread on Arduino Forum
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1260432183/0#3

But i was stuck into that problem and my mind is not working :( I am at the totally dead point and YOU came in the form of LIGHT RAY..thanks
I was also thinking on the same and i made some pseudocode for Arduino



Consider we have two potentiometer at both carriage X and Y.
consider both Pots divided into 0~5V ( corresponding PWM 0~255) we can map..

To get the value of Hyp. of triangle the pseudocode..


//Initialization of variables

hyp=0
Old_PWM_A=0
New_PWM_A=0
Old_PWM_B=0
New_PWM_B=0
Constant_RPM_Wheel= 5  //lets suppose this is initial rough value
//This value will later fine tuned, but for the time now consider the  //sewing machine Paddle is pressed at this when 'hyp=0' or there is //no movement in carriage.

/* When the Machine carriage will start movement (manual or Computer controlled) we will convert the Previous New_PWM values into Old_PWM values */

New_PWM_A= Some value we will get when Pot. change value
Old_PWM_A= previously stored New_PWM_value at A
New_PWM_B=Some value we will get when Pot. change value
Old_PWM_B= previously stored New_PWM_value at B

Now calculating the value of 'hyp' variable and put some DELAY
hyp= SQRT(Sqr(New_PWM_A-Old_PWM_A)+sqr(New_PWM_B-Old_PWM_B))

This hyp value will be scaled or Mapped
If this hyp!=0 then we can run another DC motor that will press the paddle foot with simple mechanism.

----------------------------------------------------------

182
KoKo..Thanks for your effective feedback..I will look into the matter in  more detail..:)

183
KoKo... To make the imagination more simple, suppose we install a stepper motor with timing belt on sewing machine hand wheel... Now suppose that One complete turn of Machine wheel gives you One Stitch... Now as the two stepper motors X/Y moves (Keeping the acceleration/deceleration in mind)How can we sync the machine wheel motor..so that the stitch length remains same..

Thanks

184
Thanks KoKo..You are right i am using Mach3 for last 7 years... I know its a great powerful controller..but can you explain please How can we Sync the sewing machine needle with the carriage..Kindly give me a hint with respect to Mach3:)

Thanks for posting and enlighten us..

185
Dear Sage and Koko:) Thanks for reply..

Sage thats a great idea, but unfortunatly we are making straight designs..Just think that we have a vector and we generated a PROFILE toolpath and made a Gcode File....This Gcode file can't work in MachTurn..We have to use MachMill..:(

Just think of that, If it is possible to get the real time FRO readings for each X and Y movement then It is possible to regulate the stitch... Consider we dry run (Simulate) the programm in Mach3 and we somehow collect the real FRO (compensating acceleration/velocity) and we some how put the real FRO between each X/Y carriage..

Simply think like that we are generating another Gcode file out of Mach3 that will include Real FRO reading in between each X/Y gcode..just like that

G01 X0 Y0
F20
G01 X1 Y2
F23

...
...
..
 etc

If I get the above code from the simulation run of Mach3 in a text file..I then can formulate and make a sketch for ARDUINO programmer to seperatly control the spindle of sewing machine ( Wheel) to get the equal length of stitch.

This FRO reading can then be Parse and calculated for regulating the length of stitch...

Regards

186
Hi to all great minds:)
I want to make a low-cost Stitch Regulator for a quilting machine for my Wife... I will place the quilting machine on X and Y carriages and this will move the whole quilting machine in X/Y direction.. The X and Y carriages will be controlled by stepper motor by the computer...

Now I have search on the internet and found many cruise controller for sewing machine..The purpose of those controllers is to give the equal length of stitch at different speeds of carriages... they are using encoders at X and Y carriages that sense the motion and send the movement into the cruise controller circuit that then send command to the sewing machine to regulate the stitch..These controllers are normally plugged into the sewing machine Padle controll port..

Now the X/Y carriage can be controlled with the help of Mach3, but the problem is How to control the equal length of stitch?..

How can we control the stitch length with Mach3?..Any ideas and solutions will be highly appreciated...


You can see the professional cruise controller here

http://www.quilterscruisecontrol.com/
BUT I NEED SIMPLE LOW COST controller for this purpose..Is thier anybody who can help me in this...Just give me an idea so that i can start..

(I also have an idea to attach a AC motor to the wheel of sewing machine to get the control of stitch via arduino only...)

Thanks

PS:
Many of us can make a low-cost open source open hardware quilting machine controler an d hardware and can gift it to relatives and especially the womens...

187
General Mach Discussion / Re: Temperature Control via Mach3
« on: December 09, 2009, 09:22:59 AM »
I think do it with Arduino:)

188
Finished Screens / Re: Mach3 Aqua
« on: November 05, 2009, 10:07:17 AM »
Gerry I am going to control my DAvid Laser scanner with your this simple screen set.. Thanks for hard work:) Attached is my setup , I want it more very simple just an MDI command line but i never found more simpler than u did,,,thanks Gerry..

189
General Mach Discussion / DAVID LASER SCANNER AND MACH3
« on: November 04, 2009, 01:52:20 PM »
I want to control laser rotation with the help of Mach3...The motor will be rotated by Mach3 while DAvid laser scanner do scanning job... Kindly tell me is it possible i am getting no step loss or anything weired during the process?.. How can i reduce the resources used by Mach3..I want to get smooth control of stepper throught the scanning process...


Currently i am using VBSTEPDIR.exe that move the motor but when the DAvid application is foreground the steppe speed slow and when the VBSTEPDIR.exe program running at the top of all application the stepper moves fast..Also by using that software my step timing is uneven..
Thanks

190
General Mach Discussion / Re: SENDING COMMAND TO USB PORT
« on: November 03, 2009, 04:06:59 AM »
Thanks Hood for your support.. I seldom come in this forum and i always see you are helping us:)
I don't know how to write plug-in but if you have in mind anywhere similar in this forum can you guide me... i just want to Press the Start button along with a Command to USB port..

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »