![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| PIC Programing / Design Discuss programing of PIC chips here and design of electronics using PIC chips. |
![]() |
| LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| PIC based DRO Continued from Welcome thread
![]()
The layout of the main form is designed to match my homebrew PC's touchswitches that are arranged down the left and right sides of the display I spent sometime getting every thing to talk to each other neatly, so for instance, you can plug an extra vernier/scale into the adapter block and it just pops up on the screen. As to using the PICs with quadrature encoder, I'm sure the little 8 pinners I've used lack the necessary hardware (you'd need a couple of fast counters to ensure no pulses were lost). The ones to use would be the dsPIC devices like the 30F4012 (?) which have the quadrature hardware inside. Last edited by BillTodd; 08-11-2008 at 05:10 PM. |
|
#2
| |||
| |||
| Could you post more metails on the project. I have been playing in various pics of the past year and would like to get a little more advanced in reading other pulses. |
|
#3
| |||
| |||
|
What pulses are you trying to read? |
|
#4
| |||
| |||
| I am trying to do a better job in understanding teh analog and digital side of the processing. I have played with temp sensors and other simple items for input. I have not worked with any encoders at all. This is where I am lacking examples and expereience. |
|
#5
| |||
| |||
| I'm not actually reading encoders. I'm decoding the digital data outputs of those cheap Chinese digital calipers (see :examples here). To keep my circuit simple, I'm using the PICs onboard comparitor and reference to convert the low level (~1.5v) signal to one that the PIC can read. This circuit is of a single device reader powered by the serial port. ![]() The LEDs (D1,2,3) limit the voltage to about 1.2v when the PIC drives the scale's inputs. |
| Sponsored Links |
|
#6
| |||
| |||
| As to using the PICs with quadrature encoder, I'm sure the little 8 pinners I've used lack the necessary hardware (you'd need a couple of fast counters to ensure no pulses were lost). The ones to use would be the dsPIC devices like the 30F4012 (?) which have the quadrature hardware inside.[/QUOTE] Hi Bill. It all looks impressive. You have certainly done a good job. I wish I had your talents. Unfortunately I am just a Trial and error learner at both electronics and Cnc`ing If i had one wish it would be that there was a way to verify my steppers with an encoder in Mach 3. A task too difficult for me with my limited experience. Marz |
|
#7
| |||
| |||
|
|
#8
| |||
| |||
| The usual method is to mark the motor's starting position accurately, then run a torture test (i.e. a test that runs the motor at various speeds back and forth until finally return ing to the start point), then check the motor has returned to the start postition correctly. Yer Bill. I have done all that. I set up a dial indicator on both axis and then ran a g code program with rapid moves for a 1/2 hr. I tuned the motors for 10% under the max revs before it misses pulses. Its just sometimes if I push the toolbit too hard it misses a few steps. I know thats my fault, but it would be nice if it could correct itself. If only I had the money to run servos.... Marz |
|
#9
| |||
| |||
What sort of input does Mach3 need? |
|
#10
| |||
| |||
| Marz |
| Sponsored Links |
|
#11
| |||
| |||
| I'm brewing up much the same but with a home made computer board reading scales and stepping motors. The step timer interrupt compares "where I am" with "where I want to be" and steps accordingly. The "where I am" can change at any moment should a report be received from any of the 3 scale interrupts. (I read them with hardware because any lag will only serve to confuse it). At the end of an x,y,z stepping sequence it works out the error on all 3 axes. Should any be outside tolerance it doesn't update the "where I want to be" to a new position. This means I get remedial steps to put it back on course. Questions are, wil it do more remedial steps than moving steps, and, how tight can I put the tolerance ![]() I only have to mount the scales and I can find out |
|
#12
| |||
| |||
Although,the missed steps may not be able to be corrected until the cause has been removed. i.e. if it drops steps because of excess speed v load, will there be time to correct them before the next motion without increasing the frequency of the pulses thus exacerbating the speed v load problem? (Well worth trying though ) |
![]() |
| Currently Active Users Viewing This Thread: 2 (1 members and 1 guests) | |
| komatias |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Is water based | CNCadmin | Safety Zone | 44 | 10-15-2010 03:27 PM |
| Need help with CNC UK based | ciscoe | Europe Club House | 1 | 07-21-2008 07:03 AM |
| Convert to PC based | Arcticfox46 | CNC Wood Router Project Log | 4 | 08-10-2007 09:05 AM |
| Used CMM based DIY router? | biomed_eng | DIY-CNC Router Table Machines | 1 | 10-16-2006 09:52 PM |
| dos based cnc software | flyingmike | Computers and Networking | 14 | 11-25-2005 02:29 PM |