Laser Cutter Adventure

Some time ago we (Ipswich Makerspace) found a local business which had a laser cutter and was happy to do cutting for us. This was pretty handy for last years (2014) PiWars where we started with a stock platform which Keith redesigned and enhanced to create TractorBot 2014. Fast forward to a couple of months ago when we were going through the same process with TractorBot 2015 when disaster struck. The main board on the laser cutter went down and the repair cost was eye-watering. Being the true souls of repair, re-use, re-cycle we are (read desperate) we investigated fixing it ourselves. On balance we could probably have got it back up and running but the commercial risk was just too great for them. We were in a bind, right up to the moment someone said “We could get a cheap Chinese cutter!”. It must have been Phil that said it because shortly after he posted that a ‘mystery’ crate was on the way.

This is the story of Phil’s Laser Cutter Adventure told mostly in his own words. There was some initial amusement as we cast knowing engineering eyes over it, for example the aquarium pump ‘cooling system’. Or the clever ‘hole in the bottom’ ventilation. The software raised a few eyebrows too. But with a bit of effort, quite a bit of effort really, Phil was able to wrestle this cheap gadget into a hi-tech manufacturing tool. Let’s hope it lasts until we’ve cut all the bits for PiWars.

Laser Cutter Adventure – Part 1

IMG_20151013_180556789The cutter is now sited in the garage on an old table, which has some handy drawers in the front. The first job was removal of the current engraving frame (before and after images). Note the 3D printed laser pointer holder and air assist nozzle, not sure if I will use these yet as I have found some more on thingiverse.com which might prove better.

Also note the hole in the bottom of the case!!! (Visions of laser cutting the desk, ed.)

The air duct at the back could do with being trimmed down as well.

Laser Cutter Adventure – Part 2

TractorBot 2014 base for comparison

TractorBot 2014 base for comparison

So I wasn’t going to fit the new honeycomb bed tonight but I did and managed to re-use the original screws. I can still remove some of the surround but that will require some (heavy) metal work and I am not sure I have any tools up to the task.

I think this probably will be ok for starters and I also have enough honeycomb lattice to make a new table that is as big as the cutter’s maximum reach, as per this: http://www.thingiverse.com/thing:273050

Laser Cutter Adventure – Part 3

So the cutter is now sited in the garage and awaiting its chiller, I thought I would have a look at installing the software and getting up to speed. The K40 comes with either Moshi Draw or Laser Draw (a plug-in for Corel as well as a standalone app). After hearing bad things about Moshi Draw I specifically brought a cutter that said it came with Corel, knowing Andy (the man with the broken cutter, ed.) used it I thought this might be best.

The install of Corel and Laser Draw went fine on a Windows 8 laptop, although I did enable windows XP SP3 compatibility for both. Laser Draw has a hardware dongle which seems petty since you can’t really use it without the cutter.

Unlike Andy’s cutter the K40 is does not appear to Windows as a printer and needs the Laser Draw plug-in to generate engraving, marking or cutting tasks. This video from BJ’s Wood Working was very handy:

Laser Cutter Adventure – Part 4

Its Alive!

Dear Laser, where have you put the text. Ah, OK, thx, bye.

Dear Laser, where have you put the text. Ah, OK, thx, bye.

Some tweaking required! After a small amount of time playing with the cutter making name tags for Amy (Phil’s daugher and our team’s PiWars mascot, ed.) and Heffalump, I have discovered that the origin for cutting and engraving are different so some more work required to sort out what’s going on.

 

Also the original TractorBot design PDF’s don’t load into Corel. However, DXF files do so we should stick with DXF for the moment.

Laser Cutter Adventure – Part 5

Luggage Tag examples showing offset between cutter and engraving, these were printed after my first attempt at compensation!

IMG_20151018_152045332

Laser Cutter Adventure – Part 6

This image shows the 3D printed drag chain and red dot holder for the cutter. Just waiting for some hook up wire. Andy brought round a very nice compressor for my air assist, so the drag chain will hold both air line and the power for the red dot laser diode.

IMG_20151020_203325

Ed: there was a stir in the Force when we all saw this. The 3D printer was making components for the laser cutter. It felt like some kind of line had been crossed and we were suddenly in a whole new landscape of possibility. I won’t lie, there was an actual few seconds of silent awe in the makerspace.

Laser Cutter Adventure – Part 7

This morning I have been trying out different materials, power and speeds. I can cut the perspex at 5mm/s and 75% power and the engraving works quite well. Although the negative image of the snow leopard has some random blotches on it which I am not sure where they came from. Heffalump was engraved at 10, 20 and 30% power at 360mm/s ( the last on hardboard and perspex ).

Gift tags anyone?

Gift tags anyone?

The perspex cuts easier than ply 5mm/s and about 75% power. The air assist works really well on the hardboard not a flame to be seen!! Perspex engraves without any visible burn. The cut is ok as long as you remove the top protective layer but leave the bottom one on.

Laser Cutter Adventure – Part 8

In this last set of images the body parts for a BaseBot have been cut out of all black acrylic. Amy instantly dubbed it Kiwi. It’s very impressive how fast a project like this can go from a download to a physical object wandering round the kitchen avoiding bumping into wall, cupboards etc. As a simple bot it’s been invaluable as a test bed for different facets of TractorBot anatomy and physiology. This one has a temporary Arduino clone in it while the Pi is in another TractorBot prototype. Thanks to the team at BaseBot and we’re all looking forward to seeing them at PiWars.

IMG_20151115_130052IMG_20151115_153548

.

IMG_20151115_170749IMG_20151122_164401

Final Word

Ed: So there you have it, from disaster to triumph in one small blog. I’m sure we can cut a deal on the film rights if you’re interested. It has been a remarkable journey though, and Phil has been very dedicated and creative fettling his new machine. The 3D printed parts seem like an essential upgrade and the combo of laser and printer has allowed the team (Keith, Phil and Jon) to produce a very professional looking bot in my (Steve’s) opinion.

If you’re thinking of acquiring one of these machines then please be careful. Lasers are dangerous in a life-changing way and we’re suspicious of the value of the coloured plastic insert in this laser’s lid. It may, or may not, offer any protection from the scattered laser beam, and scattered laser light will damage your eyesight very effectively.

We have a robot

Just a quick post, last night was quite a moment for us. This week Keith and Phil have been working on the laser cut files and they have now been put together and we actually have a robot. TractorBot 2015 has left the virtual world and now actually exists in reality.

The almost completed robot

Also going on this week, Jon has been working with the Hall Effect sensors and has created a library so the Pi can read the sensors via an Arduino Pro Mini clone. Along with this he has also been working on some PID (proportional, integral, derivative) code to allow TractorBot to drive in a straight line along with navigating the three point turn course. Jon just needs to tune it now so that it works with the competition bot seen above.

Phil has been fine tuning the line following code, but once again this really needs to be tuned on the competition robot.

Things that still need to happen. The robot has not moved yet, we are awaiting delivery of a couple of PCB’s, one to mount the line follow sensors and the second is the main interface board which hooks everything together. Hopefully these will be arriving today and maybe tonight TractorBot will move!

Keith also needs to convert the trial skittles ball launcher to fit the new robot and get the bits laser cut by Phil, the wire holder for the Pi Noon challenge needs to be designed and 3D printed, as do the wheel hub magnet mounts. Lots to do, now where is that Red Bull!

PCB’s

It’s been a while since the that post, largely due to getting the robot prepared. We still do not have a competition robot, we have a number of prototypes testing the code and various sensors, but the competition robot is still very virtual.

Last years interface board

Last years interface board

The last week or so we have been working on PCB designs. Last year Keith made custom motor driver and interface boards on strip board, they worked very well but meant lots of late nights soldering. This year we were hoping to be more efficient and get purpose made PCB’s.

Line follower mounting PCB

Line follower mounting PCB

The first of which was a very simple board to interface the line follow sensors. We have five sensors each with three wires, they quickly become tangled and hard to debug if things stop working. So we have designed a PCB that the five 4Tronix line follow sensors fit to. Keith will remove the angled header pins and replace with straight header pins so they can be soldered back to back with the new PCB. The PCB will have mounting holes so the other end of the sensor can be fixed with a screw fixing. The board has tabs to allow it to slot into the laser cut chassis.  On top of the board will be a pin header plug to allow us to run a common 5v, common ground and 5 signal cables to the Pi, reducing the amount of loose wires considerably.

Line sensor PCB mounted to chassis

Line sensor PCB mounted to chassis

The board was designed in Ki-Cad and sent out for pricing, we went to the usual suspects RagWorm and OSH Park, they were very similar prices, but for the OSH Park price you get three boards, so essentially three times cheaper (if you need three boards). The killer though was the lead time, at least two weeks or more. Keith had a hunt around a bit further and came across Mitch Electronics, the service they offered was a bit more limited, the drill size range offered was smaller and the track widths and clearance had to be larger but there was a document explaining it all.  The level of service was also more customisable, for example it is possible to select which sides of the board you want solder mask and silk screen, the only caviate being if you wank silk screen (the printed text and component outlines) you could not put it on top of solder mask. The price was also equivalent to Rag Worm and OSH Park, the clincher though was the lead time, about five working days. So the order was sent off, there were a few issues with the files Keith produced but Robin at MitchElectronics was very helpful and quickly sorted them out.

HAT style interface board

HAT style interface board

The first board is now ordered along with a second HAT style interface board which will mount directly to the top of the Pi.

If all goes well we are expecting the line follower board at any time and the interface board early next week.

So next, probably most importantly is to make a physical robot. Over the next week Keith will be sending the laser cut and 3D print files to Phil so the robot can start to be assembled. Since this is already built in a 3D model environment it should not take too long, just a few tweaks here and there.

The main task is to convert the skittles ball launcher from 2D and get it in the 3D model so that a good fit can be ensured, oh, the trigger mechanism also needs to be designed. We still have three months to go, don’t we…

Jon is also working on the wheel encoder system, which this year we have decided to use Hall effect sensors and magnets, more on this in a later blog post.

Red light - Warning, laser enabled!

Red light – Warning, laser enabled!

Phil has also been working on the code and this was submitted for code review, although there are still some tweaks to be made. Phil also incorporated the laser guidance system in to the code.

So it’s coming together and being tested on various prototypes, but it’s still a worry we don’t have a competition robot yet.

Now where did I put that time machine…

Code and 3D models

A lot has happened since the last blog post, but we still do not have much to show for it.

Jon has bee refining the proximity code along with his library for the VL6180 sensor. TractorBot now gradually reduces speed as an object is approached. Hopefully this will enable us to get extremely close. I’m still wondering how this be scored on the day, last year measuring the distances involved torches and calipers. Maybe this year feeler gauges would be useful.

Phil, has been doing a general tidy up to the code and refining it where necessary. We now have a different control system called “Tank Mode”, this allows us to use the two sticks on the Wii Classic controller to control the left and right motors individually in a skid steer manner.

Keith has been producing fancy virtual images of what TractotBot 2015 might look like.

Fancy virtual model

Fancy virtual model

Chassis 7 - Small wheelsWhilst this looks very nice and has allowed Keith to design the robot in 3D ensuring all the parts fit together nicely, he was getting worried out how to make the virtual model a real one. It was simple to produce the STL files for the 3D printer but what was unclear was how to extract the data for the laser cut element. Anyhow, Keith plowed on, after all, the images did look very good.

The wheels described in the last post have now been refined and Phil dutifully printed them out. The quick time lapse below condenses the 13 hour print job into a few quick seconds.

First laser cut elements

First laser cut elements

A couple of days ago though, it all came together, Keith discovered how to extract DXF files for the laser cut elements, they were sent off to Phil for checking and he was able to use them with his laser cutter setup. So now the 3D model can become reality. Producing 3D images can be invaluable for understanding how something goes together and for getting an understanding on how something will work prior to actually building it. But now we have the possibility of 3D printing and laser cutting the elements directly from 3D model the whole build process becomes much more simplified. Last year the battery was held in place with a hair band and some blutack, this year however we have custom laser cut and 3D printed parts.

The tool being used is AutoDesk Fusion 360, it is free for makers and tinkers and is quite easy to pick up and has some very good build in tutorials. It has software for OSX and Windows and there is an online collaboration element called A360 which enables team members to view and rotate the model and provide comments.

Over the next week or so, Keith will be finalising the design and sending the files to Phil for printing and cutting. Hopefully soon we shall have an actual TractorBot to test and complete the code refinements.

Wheels and 3D printers

Lots has happened this week, but time is rapidly running out!

Last week we got TractorBot up and running with a hacked together chassis and did a comparison with last years entry. Something that became clear was the size, the new motors and large wheels made TractorBot 2015 wider than a sheet of A3 paper, thus too big to enter. There were a couple of options

  1. Revert to smaller motors
  2. Get smaller wheels
  3. Mount the motors closer together
  4. Modify the wheels to the offset was reduced

We really like the motors, they are not as fast as we hoped but are very powerful, therefore option 1 was out. The next three options however were all something we could work on.

First we tried out the smaller wheels, the ones we tried were from Rapid. With luck they had the same size hexagonal hub so they fitted straight onto the 3D printed hub converters we had made for the larger wheels. The wheels were quickly fitted and went for a test drive.

Apart from looking very strange, TractorBot was obviously a bit slower due to the smaller wheel diameter, but this has added advantages. It made the bot much more controllable and very precises. We feel this will make for a very good platform for the precision events such as three point turn and the proximity challenge.

The next option was to mount the wheels closer together, this is an easy win and will be incorporated into the next chassis design, more on this in a later post.

The final option would take a bit of effort but would help a lot in reducing the width of the bot. The current rims for the large wheels are designed in such a way that the whole wheel is offset to the outside of the hub fixing point. If the hub fixing point could be moved into the wheel then the wheel would start to overlap the motor shaft and create a smaller offset and thus a narrower bot.

Since Phil had a 3D printer, Keith went off to design a new wheel, so out came the vernier gauge, off came the tyres from the original wheel and Keith duplicated the current wheel design into AutoDesk Fusion 360, this is free for makers and tinkerers and has some very nice features. The motors and hub adapter has already been modeled so Keith could put the three items together to make sure it all fitted together nicely.

Wheels 3D printingEverything looked like it was going to work so the STL file was created and sent off to Phil for printing. The printer was set running, it was a mammoth job and the software predicted that two wheels would take eight hours. The print button was pressed late one evening and left to run over night. Morning came and this was the result, just over half way through. It was lunch time buy the time they had finished.

Keith learned quite a bit about how to produce a 3D printable optimised model, if we get time we will blog about this separately. But for now, the wheel basically works and gives the desired effect.

In summary, we now have a plan for making TractorBot fit within the size categorie for PiWars. Whilst doing so we have discovered we can 3D print our own wheels to our own specification and make them fit the tyres we already had. We also discovered that the robot was much more precise with smaller wheels. As such we now have the option to switch and change wheels to suit the task in hand. So now we need to carry on with the chassis design and start with the electronics. So much to do and so little time to do it.

Introducing Jon Leach, team member

Jon started out with computers when a family friend gave him an old MS-DOS machine in the early nineties. From there a string of different types of hardware, including many home built machines, quickly showed that Jon was destined for a career in computing.

Jon LeachStarting with web site development using HTML and CSS Jon quickly progressed onto JavaScript, PHP and then Java. It was around this time that Jon began studying electronics at school and that sparked an interest in computer control and automation of real world objects.

In 2004 Jon started a course studying Computer science at the University of Southampton. This introduced him to a whole host of new technology included object oriented development, linux and c/c++.

In 2008 Jon moved to Ipswich and started a job at BT in Ipswich as a software engineer working at the one small part of BT that actually works on the phone network. Currently he works developing SIP soft switches for large corporate customers.

Despite his day to day focus on software Jon has continued his interest in hardware and electronics. Home automation is a particular focus of his spare time but also robotics, 3D printing and multi rotor aircraft.

Jon is the Ipswich Makerspace webmaster, has been involved in organising the first Ipswich Raspberry Jam and gives talks at several local tech groups.

Joining the tractor bot team for this year Jon is focusing on adding additional sensors to further tune to robots performance in the various challenges.

TractorBot prototype lives

Last week Keith was scrabbling around in his shed to find a piece of hardboard to mount motors, motor drivers and Pi etc. Well it turns out he found some, so he knocked together a quick TractorBot prototype, the results can be seen below.

The next thing to do was to download the latest Raspbain Jessie image and flash it to a new SD card. Keith had trouble with unzipping the download, but a quick check on the Raspberry Pi website showed that if the file was unzipped with The Unarchiver for Mac it would unzip fine, and it did. So after a quick dd command the SD card was flashed and the Pi was up and running.

Keith then pulled the BitBucket repository to the Pi, installed the dependencies and fired up TractorBot.

TractorBot 2015 prototype first test from Keith Ellis on Vimeo.

Ooops, it didn’t work. It turned out that the motor driver earth was not connected to the Pi earth, once another jumper wire was installed it all worked as expected. So Keith tidied it up a bit, fixed all the components down and ran a side by side comparison against last years robot.

TractorBot 2014 meets TractorBot 2015 from Keith Ellis on Vimeo.

So now we know the motors and motor drivers work the next few weeks will be designing a proper chassis, this time hopefully it will be small enough to fit into the A3 category.

Introducing Keith Ellis, team member

Keith Ellis was at school in the age of the Sinclair ZX81 and the ZX Spectrum. He remembers getting home from school in the afternoon and setting up his dads ZX81 on a table, plugging it into the kitchen black and white TV and typing in lines of code from magazines onto the absolutely awful “touch” keyboard. He was lucky enough that his dad had also purchased 16K RAM expansion pack which upgraded it from the standard massive 1 Kilo Byte of RAM. The only issue being if you pressed the “touch” keys too hard the ram pack moved, the computer crashed and code had to be retyped from the beginning.

From this point on he was always drawn to computers, moving from the ZX81, through various versions of the ZX Spectrum, Atari ST (he remembers a day trip to Selfridges in Oxford Street with his dad to get hands on before buying), then onto Intel and AMD 386 PC’s.

When it came to choosing his GCSE subjects Keith chose Electronics as one of them, he enjoyed this lots and remembers getting the teacher to order all sorts of components to play about with, over and above the official syllabus.

Keith Ellis

Keith is the old(er) one

However on leaving school Keith decided to take a BTec in Construction and later completed a BEng (Hons) in Civil Engineering and years later has now completed many successful projects including Portcullis House in London opposite Westminster Tower (Big Ben) and more recently London Gateway Port in Essex.

Over the years Keith had kept his interest in computers, although more as a user rather than a developer, he tried several times to self teach himself programming, buying several books on programming in C, although he made progress there was never any real reason or need to develop anything so it fell onto the back burner. Later the iPhone was announced, Keith applied for a developer account, downloaded the tools and bought more books on Objective-C, but once again, there was no real need, so it fell to the back burner again.

Then in April 2013 Keith ordered his first Raspberry Pi, at first he was not sure what to do with it, it was initially set it up as a media server using RaspBMC which was good, but he wanted to do more. After a bit of Googling, around November 2013, Keith decided he would build a Raspberry Pi robot. He wanted to build it from scratch and get back into electronics, so rather than buy a motor controller add on board, he bought a bread board, motor controller chip (L293D) and some wires and started messing about with LED’s, motors and Python. At last he had a project to get his teeth into and at last could progress his coding (and electronics) skills.

PiBot

PiBot just keeps growing

The robot is still work in progress, it now boasts a L293 motor driver, Nokia 5110 display, IR proximity sensors, MCP23008 I2C IO expander, buttons and an I2C gyro and accelerometer and bluetooth interface for Wii controller. Progress was halted on this project towards the end of last year to work on TractorBot, the Ipswich Makerspace entry for PiWars 2014. He does still continue to learn and tinker with the original robot and the LCD menu system is now operational.

Keith is very much looking forward to this years PiWars, last year was such a blast and the community spirit surrounding the event was amazing.

TractorBot 2015 is born

Last week we got lots of lovely kit from which TractorBot 2015 will be built. This week we started to put it together, albeit in a bit of a temporary way.

A few things need to be done, the big one is to run the motors up with wheels on so we can measure the stall current, this will then tell us the current the motor driver needs to handle. We have two motor drivers each handle 2 amps per channel, the drivers have two channels each so that gives us a total of 8 amps capacity. Keith is hoping that just one of the motor drivers will do, but until the test is complete we just don’t know.

Hub adapter

3D render of hub

To test the stall current of the motors the wheels need to be attached, it is very difficult to stop a motor turning by holding the shaft. The only problem here is the the wheels we have came with a hub attachment for a 3mm diameter motor shaft, the motors however have a 6mm diameter shaft.

Keith quickly drew up a new hub attachment in AutoDesk Fusion 360 and Phil printed them out. The first version worked okay, good enough for prototyping anyway, so Keith attached them to the wheels ready for testing.

The new 3D printed hub attached to the wheel with the old one for comparison.

The new 3D printed hub attached to the wheel with the old one for comparison.

Motor with hub adapter fitted

Motor with hub adapter fitted

The new hub also fits the motor like a glove, maybe a bit too well (read, Keith cannot remove it). Now the wheels are attached to the motors, Keith will dig around in his shed to find a sheet of hardboard to use as a chassis plate. The motors will be fitted and then proper testing can commence.

One or two of these motor drivers will be required

One or two of these motor drivers will be required

Further tasks required are as follows:

  • Confirm the stall current for the motors, thus determine the number of motor driver to use
  • Fit batteries, Raspberry Pi and motor drivers to the chassis plate
  • Run some basic code, probably in Python, to check the robot moves and confirm how fast it is
  • If robot is too slow running at 7.2v, try at 14.4v
  • Design proper chassis plate

etc, etc………

So much to do.

Swag

Well, we had a lovely surprise last night at the Makerspace. In the preceding week we had put a wish list together of kit for TractorBot and last night Rapid Electronics came good and a swag bag full of lovely kit was delivered.

We have Raspberry Pi’s, cases, wire, connectors, cobblers, magnets, motor drivers, motors and wheels(on back order). We are very lucky and grateful to Rapid for their generous sponsorship.

Rapid Swag

After struggling to choose the motors we were very keen to give them ago, so out came the soldering iron and soldered on a couple of wires to one of the motors. We had high expectations as we pushed the wires directly into the 7.2v battery terminals. But as the 50:1 ratio motor started to turn our excitement quickly turned to disappointment, it was slow, very slow. So this year we may well be running TractorBot at 15 volts to get a bit of extra speed.

It turns out those generic yellow robot motors are not actually that bad.