Saturday 12 December 2009

Xbox first person shooter gun!

A short lived project of mine, that i decided to do for a laugh!

Basically, the idea was to replace the potentiometers in an xbox joystick with digital potentiometers controlled by an arduino. the voltage output through the digi-pots are directly correlated to positional data extracted from a wii motion plus a Wii nunchuk. The data is extracted from both sensors, kalman filtered and output thru the digipot.

the whole gizmo is fixed on a gunshaped frame ( I used to play call of duy 4 modern warfare- so its base on a heckler-Koch G36 for us geeks out there!

I added a potentiometer to tweak the sensitivity of the device. IN the videos below you can see the device in action while playing Halo 2 on my old xbox. There was no way i was sacrificing one of my 360 controllers for this! The drawback with this prject was that the sensors could not provide me with a yaw axis, so to look left and right, i had to tilt the gun left and right, instead of sweeping around like i woould in reality!The hardware limitation meant that to be able to do that , i would need to invest in a magnetometer. In the current economic climate, that was a bit unlikely!

Anyway, here are the test videos! enjoy!

references used in this project!

http://randomhacksofboredom.blogspot.com/2009/06/wii-motion-plus-arduino-love.html
thanks!



CNC router projects

YO, I had been contemplating with the idea of owning a CNC machine for some year now. (proably since chilhood when i learnt the word CNC). Buying one is out of the question, too expensive and again, against the Ghetto engineering Ethos. Which leaves the only option to make one!

I started out with a budget of a £ 100 and intended to use an arduino as the brain for the machine.I started the build and £ 100 pounds later i ended up with something that looked like this:
The frame was built out of pine wood strips , screws and plastic cuboid thingies held it together.I used plastic, aluminium extrusions and plates, steel rods for railings and an M6 all thread rod as lead screw.

I purchased 2 stepper motors off the makerbot website , that i had just discovered! i intended to use an RC servo for the z axis, ghetto engineering frugality...

I later regreted that decision and bought another stepper when I realised that mixing servos and steppers would complicate the controlling electronic. SO that was changed! I bought some stepper controller ICs from farnell and set to design a CNC controller from scratch, which i did get to work on a breadboard stage, but i realised that i had set myself a herculean task that involved reinventing the wheel when i came to writing the source code to change g-code into actual stepper control signals, and my good senses kicked in and i started looking for a decently priced stepper controller! i found a decent 4 axis stepper controller manufactured and sold by a chap in Hungary , that was as godsend, it worked brilliantly!

So as i tested The machine with a biro as a tool and figured out how to rig a z axis meanwhile and make a cheap cutting tool..
here is the first job ever done on the machine ( there was no z axis hence the line between each letter).

Considering I had not designed this, I had merely built it on the fly, I was chuffed by the results! I built and tested a couple of rotating tools to to mount on the machine ( to cut depron foam to make rc planes and uavs)








after installing a the cutter bit!

Below are a couple of clips of the cnc machine being tested!


After a few succesful test cuts, i decided to design a monster machine with a bed of 1000mm x 1000m , big enough to place a whole sheet of 6mm depron and cut aircraft kits. I also wanted an indexing turntable to be able to explore the third dimension and cut 3d objects...






So i set of to Portugal on Holiday and spent my evenings sipping moscatel de setubal and sketching my next project. When I got back to Leeds, I sat at my pc for about a Week with my best friend Solidworks and got cracking transposing my sketches into a 3d ASSEMBLY, printed the engineering drawings for my components. I burst into a an evil Laugh full of glee when when I compiled my Bill of Materials and the cost came up to £200 pounds, this included a nice electric circular saw essencial for the precise MDF cuts required for the jobs, with G clamps bought at the pound shop - a pound for 3 G clamps. ( still using them to this day) ; Ghetto engineering indeed. I recycled the steppers and controller from the Mark 1 cnc router and got building for a fortnight.

From concept to reality...

Left, sketches made on holiday while sipping Moscatel de setubal















Back from holiday, the solidworks assembly drawn, plans for the parts draughted and printed, BOM sorted and cost finalised. OFf to screw fix and B&Q we went.... Transporting the timber in my Toyota Ago was a fun experience...Gotta love the cutting service B&Q offer, I had designed the parts in a way that i only had minimal cutting to do after the chap at the timber yard sliced my mdf sheet!



Gantry assembled! I later redesigned it and rebuilt it a bit taller for extra z- axis movement!














Y -axis carriage added, the movement is soooo smooth! hardly any friction. Bearings Recycled from hardly used Roller blades from my teenage years. Recurring theme, Ghetto Engineering baby!













Installing the gantry on the base! Scary moments! its make or break! will the alignment be true?will the axes be perpendicular??

OF course no, the axes were at 87 degress. over small Jobs, insignificant but when cutting large jobs, makes all the difference! the gantry was later rebuilt taller as mentioned above and the y axis carriage rail could pivot for adjustment after final assembly! Lesson learnt!


Testing the motion, for such a heavy gantry, i was pleasantly surprised that no much force was required to move it! using an M6 all thread rod as a leadscrew(purpose built lead screw are soooo exorbitantly priced) should provide a lot of force!!










Voila! Now i just need to Shoulder Press this beast to my Lab/office/bedroom and install the motors, lead screw, end stop optical switches, the cutting tool and finally the work surface!

SO much Fun to be had!










ouple of weeks later! motors and everything installed.Before trying a test cut with a cutting tool, I used a felt tipped pen to test out the machine after calibrating the scaling and adjusting the axes for true perpendicularness or is it perpendicularity?does it work? course it does!! Remember your 6 P's

Proper
Planning and
Preparation
Prevents
Poor
Performance

Here is the first time I tested the machine:



Note, I decided to get the machine to write SEXY , not because I think the machine is hot,Nor because I am vain, but becuase the word is short and provides a a combination of curves and angled lines perfect for testing a CNC machine, a bit like the " hello world" used in electronics when testing...
Anyway, lets mount the cutting tool and see how it goes!



Time for the first test cut using a rotary tool ( of my own design, my dremel is used too often to be sacrificed for this project!, i used a speed 480 motor from an old aircraft, we all fly brushless these days.., used a motor shaft adaptor to hold the dremel end mill bit, and joined that to the motor using a shaft linkage from a RC boat,Used an little turned aluminium thingy from a sliding door as a flywheel to gyro stabilise the business and reduce vibrations.The bearing was salvaged from a burnt out brushless motor.I know dont ask, Ghetto engineering.Everything is recycled.

Hmm, it works, lets try it for the purpose it was designed for! cutting aircraft kits! lets see the first kit cut!





Verdict: accurate beyond my wildest dreams, but A bit slow. Must gear the leadscrews to increase the working speed. Sadly I never got to modify the machine for more speed. I Am currently out of a job and job hunting. Shelling £50 quids to buy aluminium pulleys and toothed belts is a out of the question, so between applying for jobs, i decided to recycle the parts and build a smaller mark III machine. Faster but with a smaller footprint,using cheap plastic gears from hobbicraft. 65 pence per gear, bargain.

Mark 3, was built on the fly, having learnt from my mistakes and previous designs , i was able to whip up this version within 3 days recycling components from mark I and II. I still have to complete this baby, but it promises to be as accurate as mark II. Motor tests, (not fimed yet) promise super fast cutting speeds!

Watch this space!

Fropessional Engineer Nick!

uav projects - a history!

I have worked on quite a few Uav projects, both for work and my own projects, the difference being that the one for work cost a fortune and we had a super large budget! and the home made ones that are basically recycled from other parts, and adhere to my Ghetto engineering philosophy.

Here is a brief overview of the main projects i've worked on! there are more, but i havent really documented them properly!

Here we go!

Big blue flying wing designed for police search and rescue around the lochs in Strathclyde, Scotland where the weather often is not clement enough to allow the police chopper to operate.


The big blue bird ( I cannot divulge the actual name and company as I no longer work for them) carried a super sensitive infrared camera, a high quality video camera on a controllable gimbal, satellite navigation, autopilot, target camera locking, live video stream, navigation lights for night flying and the full she-bang. we were toying with the idea of adding droppable containers containing a thermal blanket/radio or transponder for missions involving stranded ramblers.


Below is a clip of this UAV's maiden flight, it is being Catapult Launched! this thing weighs nearly 15 kg!




Materials: foam,carbon fibre,fibreglass, and kevlar reinforcement

Smaller black flying wing, project started by another engineer, I joined the project midway and realised that the platform was too small to carry the gear they wanted.We attempted wing extenstions for different flight payloads, and eventually, I proposed a bigger aircraft and commenced the project discussed above. The capability of this aircraft was similar to the one above, minus the infrared and emergency drop payload and a reduced flight autonomy

materials:Moulded Foam.

Both these aircraft ran an extended trial with the strathclyde police with promising results, but then again politics and finance always get in the way of great things..

The smaller aircraft was a record setter at a famous unmanned aircraft show..



Ghetto bird! my first home build uav, much smaller budget, dropping from over 10 k to under 2 hundred! Arduino based, it uses a wii nunchuck and wii motion plus for positional data, the radio signals from an rc receiverare bypassed through the arduino which creates an artifical horizon and controls the servos to return the craft into this reference position.



This allows the craft to return to straight level flight when the control sticks are at the neutral position and the craft is disturbed by the wind or the gyroscopic effect of the prop on the light airframe. this also stabilised the aircarft during banked turn, climbs and descent by maintaining the current attidude of the aircraft and resisting and countering external disturbing forces proportionally in a closed loop system.The idea is to create a stable air platform to carry a video camera. Ghetto bird was never flown as i deemed it too risky with the horrible winter weather of the UK. All the planes are currently grounded until next summer.

materials: depron,epp expanded foam,carbon,and yes gaffer tape

This project is currently ongoing and the electronics have been moved to a flying wing of 1.5 m span,Ghetto bird 2,
More lifting power, lower wing loading. I am planning to add a live video downlink, an xbee pro transmitter to return telemetry data, and overlay this data onto my video stream.the idea is to create a virtual cockpit and fly the stabilised aircraft from a pilots perspective . airspeed/altitide pressure sensors and GPS for telemetry.A forcefeedback joystick is an being considered, but the project is on hold as i am waiting for money to come in!

Below is a video of Ghetto bird 1.5, a smaller version to test out the flight characteristics, It is being flown manually with no flight assistance




materials: depron,epp expanded foam,carbon,and yes gaffer tape

Current status : grounded, waiting for funds, better weather and work is being done on it at mo!

Watch this space!
The Fropessional Engineer!