Search This Blog

Friday, 29 July 2016

Gauges Working on DRO

I've got gauges working again on the DRO, currently two of the cheap Chinese calipers using the 24 bit data output have run on two axes of the ARM based DRO. There's a few minor PCB errors but nothing major. The switches should work soon. The only major part not working is the TFT display and that could be a code problem, or a non functional display. I've switched to an SPI TFT display, and I only had a non touchscreen version. I'm waiting for the touchscreen ones to arrive. Based on the parallel display experience, I think about 50% of these displays don't work out of the box and of the remaining 50% only half have the advertised display controller chip on them, the other half have whatever chip was hanging around when the displays were built.

Here's the ARM DRO with a channel working:






The daughter board is plugged in at the bottom left. That has a PIC 12F1822 on it that converts the data form the gauge into I2C which the main board polls in its idle loop. There's room for five more boards across the bottom of the main board.  As you can see the gauge reading is on the Z axis in this picture.

I've had two 24 bit gauges working, the third one I had wired was of the 2 x 24 bit packet format, which did work in the past but failed for some reason when I tried it. I'll make some more daughter boards and debug the problem..

The more expensive gauges I got as a trial are ironically less stable when powered off the DRO 1V5 supply so I may move to cheap Chinese gauges as they are also 0.01mm resolution and seem more tolerant to my 1V5 supply.


Sunday, 24 July 2016

Back Where I Started

With regard to the DRO PCB anyway, just this time it is using an ARM (LPC11U14 specifically) on an LCPXpresso board that I had floating round for another project.




As you can see, the code is ported over, well the OLED driving stuff anyway, and all is up and running. Just the TFT and LED displays to do, then I can attach the gauge boards and get it running. That's where it all started to go wrong with the PIC based PCB. The LPC stuff is much more solid. I've not seen the OLED problems I saw with the PIC, and it's the same code, so there was something odd going on with the PIC. The LPCXpresso board has a JTAG debugger on one end too, so the DRO has it's own debugger. That works perfectly too, I've managed to get a stack trace from it when I made  porting error, and it was easily debuggable. All in all, much better.

The only thing is that the LPCXpresso board is much more expensive than a PIC chip, but I can probably make my own target board later and take the LPCXpresso board off the DRO. Maybe. I may just leave it there, it'll make programming easier later on.

Friday, 22 July 2016

Mortice and Tenon on CNC3020 Engraver

I need to do a lot of mortice and tenon joints if I'm going to do the chair project, and they aren't fun and never look very good in pine, as it's difficult to work with. So can you do them on the CNC3020?


Well, after 3d printing a clamping plate that attaches to the 4th axis mounting bolts on the front of the 3020, it turns out you can do some very consistent nice looking tenons and matching mortices:


These are test pieces, but they are very consistent, totally interchangeable and look nice.  The clamping bracket lets me put tenons on the end of long pieces of wood, I 3d printed it and it's strong enough to hold the work.


In order to get the spindle out in front of the bed of the CNC enough to do the entire tenon, I had to make a spindle extender attachment. I did this in wood as the 3d print was 6 hours or so, I may do a 3d printed one later if I use it much.





This gives me enough extra over the end of the machine to do the work I need for the chairs. I'm a bit concerned that there may be heat build up due to the insulating properties of wood as opposed to the aluminium heatsink arrangement the spindle normally has.


Of course, this is also going to be true if I 3D print a version. I may have a think about a 3d printed cylinder in the existing heatsink and an aluminium clamp attached to it that gives similar heatsinking as the current clamp. I don't think the machining will take too long so I won't be running for extended periods of time, but it may be better anyway.

Perhaps a 3D printed version with holes for ventilation?

Lathe Centre Height Finder

I got fed up with fiddling with tool heights on the mini lathe, so I cobbled together this






It's not hugely pretty, but it works and is adjustable. I like the base, as it's a bit of metal I picked up while walking somewhere, on the off chance I could use it, and I have, excellent. The brass and base are polished, but you can't see that in this picture very well, so there's some shiny bits.
Main DRO PCB 2.0

I've decided to put the entire Lexpresso card onto the DRO main board as it saves me the hassle of laying out a processor board, and I get the debugger/programmer half of the card as well. I can lay out a processor card later if I want to. The card also has nice 0.1inch holes for mounting on a PCB, which the Arduinos don't I thought about using and Arduino Mega, but mounting it was just too difficult.

New main PCB being milled:


I'm doing two passes, the first with a 0.6mm bit and the second with a 0.2mm bit. The first pass gives me more clearance around the tracks and pads and th eseocnd does th efine isolation. This should make it a bit easier to solder without shorts like I had on the first PCB. Of course, it means two 7 hour milling sessions, not one, but it's probably worth it.

Saturday, 16 July 2016

Change of DRO Direction

 I've spent a lot of time recently trying to get the PIC16F18875 working as the main controller on the DRO. It's sort of working but there's problems. Whenever I make a simple code change (something like changing a /1000 to a /10) the code sometimes just fails to run. This would be fine, as it's probably a bug, well maybe, but as the Microchip debugger also doesn't seem to work, it's all a bit of a disaster. Looking on the web it seems this is a fairly common experience. It's a shame as I've used PICs a lot in the past and they were useful little devices. Anyway, I've decided to ditch the PIC and try something else. At the moment he plan is to use an LPC1114 ARM based device. This has the added advantage of more flash (32K), similar clock speed and lots of GPIO. Unfortunately it is a 3V3 device and that means I will have to deal with level shifting and add a regulator.  Anyway that's all OK, just a bit more complexity and if it works I can lay out a mostly 3V3 PCB with the LPC on it.

The other thing about the LPC chips is that they don't come in any DIP packages. Not that are available to buy anyway. So I have tried to mill a QFP48 footprint that is one of those used by the LPC1114. Once I used a 0.1mm cutter and a shallow depth of cut, I managed this:






It's not perfect, there's a bit of copper that hasn't been milled away. I think I may be able to sort that with either a second milling or slightly more depth. Anyway, it looks to be possible, so that's the plan.
Those pads are 0.5mm between centres, by the way.




Spindle Camera Mount

I made a quick little bracket for mounting the spdinle camera on the CNC milling machine while it is operating. I can then see what's happening without having to look at the spindle directly.


The shiny red bit is a mount off a cheap magnetic base from ebay. It works well, I may get some more. Unfortunately the base isn't very strong.

Here's a picture of some PCB milling going on:


here's a video of the same.