Building an Inverted Pendulum System The Ups and Downs of Defying Gravity…

November 19, 2009

Mounted rack

Filed under: Hardware — Bruce Ammons @ 8:00 pm

Drilled holes in shelf and attached rack gear.  It looks pretty good.  Now I just need to find time to finish building the cart and get it all mounted on the shelf.

The first picture is the entire shelf with the rack mounted flush to the front edge.  The second picture shows a closeup where the rack gear is attached to the aluminum bar using bolts, and the aluminum bar is attached to the shelf using wood screws.

Shelf with rack attached

Shelf with rack attached

Rack Closeup

Rack Closeup

This picture gives you an idea of what the whole system will look like once the cart is completely assembled and the linear bearing is mounted to the shelf.  Of course, the second encoder will be moved to the new bracket on top of the cart once I make it.

Whole system layout

Whole system layout

November 13, 2009

Pendulum redesign

Filed under: Hardware — Bruce Ammons @ 8:00 pm

I did a few calculations, and the bearing loads on the encoder from the swinging pendulum are going to exceed the maximum loads specified for the encoder.  I don’t want to destroy the encoder, so I decided to redesign the cart.  I added a bracket on top of the cart that extends out beyond the gear.  The encoder will be mounted on this bracket, and the pendulum will be almost flush to the bracket.  This will minimize the loads on the encoder shaft.  Time for some more cutting and drilling, I guess.

Inverted Pendulum Design v2 (pdf)

Inverted Pendulum Design v2 (pdf)

Replacement encoder works

Filed under: Hardware — Bruce Ammons @ 8:00 pm

Replacement encoder arrived today.  Checked it out to make sure everything works.  A and B signals are fine.  Found out there is no Z signal, but I really don’t need it anyway.  It is interesting to look at the guts of the encoder – obviously older technology than the other encoders.  Replaced the short cable with the last piece of my ethernet cable.  This time I was a little smarter and left about two inches of the old wires and just soldered new wires to old wires, then put a heat shrink tubes over the joints.  I coiled up the extra wire inside the encoder case – it was a tight fit.  One amazing thing – the mounting holes in the new encoder are the exact same size and location as the old encoder.  I don’t have to drill any new holes in the brackets to mount it.

Here’s a couple of pictures of what the cart looks like so far.  Haven’t drilled all the holes for the bracket yet, but you can get a pretty good idea of what the final version will look like.

Cart - Top View

Cart - Top View

Cart - bottom view

Cart - Bottom View

November 11, 2009

Rack gear

Filed under: Hardware — Bruce Ammons @ 8:00 pm

A friend with the proper equipment drilled all the holes in the aluminum bar and attached it to the rack gear.  Now I just need to pick it up.

November 8, 2009

Won encoder bid

Filed under: Hardware — Bruce Ammons @ 8:00 pm

Won the bid on the new encoder on ebay.  It was a bargain at $18 including shipping.  At this point, I am going to quit trying to get the broken encoder working.  It is still a possibility but not really worth pursuing unless I need a replacement encoder.

November 6, 2009

Encoder repair #3

Filed under: Hardware — Bruce Ammons @ 8:00 pm

The LEDs came in today.  I soldered a resistor onto the positive lead of each LED so they would work properly with a 5 V power supply.  I connected each LED and tried waving it in front of the encoder sensor.  All of the LEDs managed to make the digital signal flicker, so it looks promising.  The problem is that none of them was consistent.  I couldn’t get a good steady signal on both A and B channels at the same time.  I suspect if I drilled a hole in the side of the encoder where the old LED is, I could put a new LED in the same spot and it might work.  The light would have space to spread out and go through the lens and be focused on the sensor.  Drilling through the side of the encoder would be a little risky, though.  I am leaning towards just getting a new encoder if I can get one at a reasonable price.  Most of the ones on ebay are priced higher than I am willing to pay.

November 5, 2009

sbRIO needs repair

Filed under: Hardware — Bruce Ammons @ 8:00 pm

Sigh.  Just found out that the sbRIO board from NI is not working and needs to be repaired.  That means it will be a while before I can start controlling the system.

November 4, 2009

Encoder Repair #2

Filed under: Hardware — Bruce Ammons @ 8:00 pm

Realized that the original bad encoder (#1) probably has a working LED, while the encoder I broke (#2) has everything but a working LED.  Thought maybe I could move all the working components from #2 to the case of #1.  Started by removing the retaining ring on #1, then pounding the shaft out of the bearings.  Managed to remove the shaft, then the two ball bearings supporting the shaft.  At this point, realized there was no way we could get the shaft with the glass encoder disk out of #2 and into #1 without destroying the glass, which is very thin.

Ordered several different infrared LEDs from Digikey for about $5.  Hoping one of them will work with the broken encoder.  Not sure if the light needs to go through the lens or if the LED can be close to the sensor.  This is a last ditch effort, but I really can’t lose for just $5.

« Newer PostsOlder Posts »

Powered by WordPress