Archive for ‘python’

.

Music in the Shower!

I’ve been working on this for a long time but I had some trouble geting it out of the breadboard and then iTunes changed the APIs so I’ve been trying to get it working again but for the mean time I’m leaving this video from the initial stage:

I’m using an Arduino to send the commands to the computer via bluetooth (next track, prev, play/pause, volume, random playlist). The computer is running a python script to get the commands and send the appropriate signal to iTunes, and getting the song info back to the Arduino.

The python part changed recently due to the APIs update and it doesn’t seem that I’ll be able to get it working back in the same way.

Right now I got it working again with the API changes with some workarounds with some .app’s created with AppleScript that only send the play/pause, volume, etc., one for each command, but I don’t like this approach so I’m trying to get it working as a service again.

I also want to have a good case for the board but in the mean time I only tossed the circuit inside a ziplock to avoid the water.

I hope to give an update soon.

.

Automating a Process

I work as a CNC programmer. We have five 5-axis routers with 2 work tables each at my workplace. We use them for plastic trimming and drilling. The machines aren’t the best in the market but they surely work for our purposes.

To cut the parts we place a thermoformed plastic on a holding fixture in the router. There are several parts that are similar to each with little difference like a cutout or the positions of some holes, so we may use a holding fixture for many different parts/programs.

This generates a lot of problems because sometimes the operators place the wrong fixture on the machine, or the correct fixture but the wrong program. This may cause a crash of the machine with the fixture and it can take up to 10 hours to fix it, depending on the severity of the accident and the skills of the maintenance technician who fixes it. This causes a production halt on the machine and it escalates the problem to other areas where they may need the parts that were about to be produced in order to keep working.

read more »

Tags: ,