Showing posts with label hardware. Show all posts
Showing posts with label hardware. Show all posts

May 1, 2005

USB 3D Arm Input Device


Olin has a class called Principles of Engineering where students work in teams the entire semester creating their own "mechatronic" project. When I took the class the focus was on making a USB device. Mark Cavolowsky, Zac Borden and I created a 3D input device. They did the main mechanical design, while I did the PIC assembly programming and the host computer software for interpreting data from the arm.

We intended it to be a drawing device, but the potentiometer resolution wasn't that good. Occasionally I still use it to interact with 3D objects.

The project website can be found here.

December 18, 2004

Inverted Pendulum


This is a project from a math and physics course my first semester in college. We were asked to model a second-order system. My group chose to model an inverted pendulum on a cart. After deriving and validating the equations of motion, we decided to implement a control system to keep the pendulum balanced.


After the class was over, I spent a weekend building a real version out of Legos to test our control system. It turned out that the 'best' parameters were not as good as the model predicted, but it did predict failure regions accurately.

This video shows working system. The pendulum itself has very little friction, both in the joint, and on the track. I used a potentiometer to sense angle, and I calculated angular velocity by having the pendulum back-drive a motor.

The control system was created in Simulink. The control circuit involved op-amps in negative feedback. The computer controlled the circuit using the very annoying Simulink Real-Time target and a flaky PCMCIA data acquisition card from Measurement Computing.