Thread: Cheap Idea for a DRO
Hybrid View
-
11-05-2010 #1
Thanks Bill,
I think I may have managed to grab the demo VB DRO last night. I installed it and had to go and find/install the required inpout32.dll. After that its seemed to open just fine, but of course I have no multiplexed input to test it yet. The version I installed as far as I could work out could only open two scales (X and Y). Is that a limitation or me being stupid?
I will certainly make up the PIC board just to see that it all functions correctly with my Lidl/Aldi 150 mm callipers seeing I have most of the parts.
One question I have is whether there is a practical maximum cable length between the reader and the PIC board. There is some posts that suggest that EMC/noise issues exist at this interface and running single ended clock and data over long wires is not ideal for low pick-up. With all 4 channels on one board there will have to be a compromise about the best location of the board relative to the machine scale positions.
You may have a point about the long T/Comb PCB and bar if you say you can pick up 600 mm callipers for £70. My mill X axis is 18" travel so one of these would be just fine. It just seems wrong to buy the whole thing just for the PCB and maybe the bar when the readers can be purchased complete for <£4 as recent posts suggest.
-
11-05-2010 #2I installed it and had to go and find/install the required inpout32.dll.
The version I installed as far as I could work out could only open two scales (X and Y). Is that a limitation or me being stupid?
Each PIC has the same code, on power up each one detects the status of its pin5, then assigns itself as X,Y,Z or W. When the PIC detects a scale it informs the VB app, which then adds a display panel)
One question I have is whether there is a practical maximum cable length between the reader and the PIC board.
[edit] found a 600mm scale on ebay:
http://cgi.ebay.co.uk/Mill-Lathe-Hor...item439ddc49a7
-
The Following User Says Thank You to BillTodd For This Useful Post:
-
11-05-2010 #3
-
13-05-2010 #4
It was not a problem, it was easy to find and install
No not your fault :) I added the 'demo' option while testing the ADJ function, so I've only added X&Y to the menu. It will happily display four (or more) scales.
Each PIC has the same code, on power up each one detects the status of its pin5, then assigns itself as X,Y,Z or W. When the PIC detects a scale it informs the VB app, which then adds a display panel)
I managed to load the project and ASMs and do a successful 'Make' with all of the Include files as well. I just needed to change the location for the files as I don't have a D:\ drive. - it all looks good so far
I use 1.5-2m screened cables (soldered to the scale). It would be wise to route them away from strong noise sources.
Thanks Bill.
-
14-05-2010 #5
Hi Bill,
I have managed to program 4 off 12F675 PICS but for a quick demo breadboard can I just install 1 or 2 Vernier PICs into the RS232 interface driver rather than all 4. If so do I need to install X then Y then Z etc in that order. I'm getting to understand your assembly code but i've not quite figured out the TxSyn operation yet on GP4 in relation to channel time slots.
Cheers, John
-
16-05-2010 #6
I have build a prototype board to test a single channel although the board is built to a level to take 3 of the PICs with expansion for the 4th.
On test with one PIC installed and connected up to a caliper I am getting something and it recognises the correct channel but the displayed valued is very eratic and not representative of the vernier positional movements. I'll need to get the scope out to see why it is so all over the place. Perhaps I have a noise issue with my set-up. The power supplies look quite stable with a DMM but without scoping it there could be some nasty spikes around... I'm getting there slowly.lol
I tried to add a few pics but I'm not sure if it worked
-
16-05-2010 #7
-
17-05-2010 #8
ISTR you can fit one or more PICs as required.
I'm getting to understand your assembly code
From memory, the Txsyn timing is a simple grab a slot when ready affair with a different delay based on chip position to help prevent collisions.
(i.e. if Txsyn = hi, delay X.Y,Z or W recheck Txsyn if hi, pull txsyn low and transmit)
Is the vernier being switched into fast mode correctly? Different makes/types of scale have different clk/data line switching sequences so some don't work with out mod'ing the code
Are you powering the scales from the interface or the on-board cell? (I replaced the cells with a ~1uF SM cap) What voltage are you ghetting across the PSU red-led?
The serial port is running at 115,200 baud, so screening and good earthing is advisable. And, it derives its -Ve from the PC so, just check that's working OK.
-
17-05-2010 #9
I tried this as you can see in the photo as it sort of worked so I assumed the design does not require all PICs in place
Is the vernier being switched into fast mode correctly? Different makes/types of scale have different clk/data line switching sequences so some don't work with out mod'ing the code
Are you powering the scales from the interface or the on-board cell? (I replaced the cells with a ~1uF SM cap) What voltage are you ghetting across the PSU red-led?
The serial port is running at 115,200 baud, so screening and good earthing is advisable. And, it derives its -Ve from the PC so, just check that's working OK.
Thanks for all your help. John
-
19-05-2010 #10
Here is an update to things but to make it easy I have attached a word doc with embedded pics. It describes some scope measurements of the signals on the interface board. I hope it is readable.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Website idea.
By qwertyjon in forum General ComputingReplies: 8Last Post: 05-04-2014, 03:29 PM -
Here's an idea hacking a Kress 1050 FME
By m.marino in forum Kress Milling MotorsReplies: 3Last Post: 16-01-2013, 01:05 AM -
Why they don't want to accept my idea?
By hoezap in forum Tool & Tooling TechnologyReplies: 5Last Post: 14-07-2012, 01:15 AM -
business idea?
By homer93 in forum Marketplace DiscussionReplies: 7Last Post: 01-06-2012, 12:56 PM -
BUILD LOG: Mel's Odd Idea
By mel_earp in forum DIY Router Build LogsReplies: 3Last Post: 19-03-2010, 11:54 AM
Bookmarks