A world in dk(decay/denmark) » Electronics http://rotand.dk Just another pointless weblog Sat, 30 Nov 2013 21:03:48 +0000 en-US hourly 1 https://wordpress.org/?v=4.3.18 CNC for summerproject http://rotand.dk/2009/06/06/cnc-for-summerproject/ http://rotand.dk/2009/06/06/cnc-for-summerproject/#comments Sat, 06 Jun 2009 08:24:41 +0000 http://rotand.dk/blog/?p=189 I have decided to build a CNC machine in the summer vacation. As soon as I finish the last exams i’ll start building / hacking. For the moment I’m looking into building plans and cnc in general. At first I wanted to build a reprap using a kit, but my funds are limited, so it will be a three axis cnc router which hopefully will be able to act as an repstrap.

The project as it looks so far :
I ordered a set with steppers, motor-control and psu from ebay, and I’m waiting for it to arrive(The seller said 10-12 days, so maybe if I am lucky next week). It should be 1.7NM motors and a more or less “plug’n’play” set.

I intend to drive the motors using a old computer running linuxcnc. linuxcnc looks real neat, but might prove to be hard to set up.

The construction

I am looking at two set of plans at the moment

How-to-Make-a-Three-Axis-CNC-Machine-Cheaply

This was the building plan that made me decide that this was a possible task. But there are some issues with the construction I don’t like, especially that it uses belts. They are hard to find and they are not cheap.

JGRO’s plans

This is a free diy plan. it can be found here : http://www.cncroutersource.com/cnc-router-plans.html

It uses threaded rod instead of belts. And the overall construction looks simpler.

Materials

Although I do want to do “fabbing” using a extruder at first I think that there will be enough work for a couple of days getting the mechanics and electronics up and running. Just as there is a lot to learn about g-code and all sorts of 3dmodelling.

To begin with I want to cut using a dremel tool, maybe a more powerful spindle(?) to be able to cut wood – if I have enough power in the steppers.

You might ask what do you want to make / “fab” with a 3 axis cnc machine?  I can come up with a lot of different small things like “coat hanger”, “coffee filter”, “PCBs” but I guess that it just boils down to: ” I think its a very fascinating technology and want to play with it”

]]>
http://rotand.dk/2009/06/06/cnc-for-summerproject/feed/ 2
Steppers http://rotand.dk/2009/05/02/steppers/ http://rotand.dk/2009/05/02/steppers/#comments Sat, 02 May 2009 16:49:56 +0000 http://rotand.dk/blog/2009/05/02/steppers/ Just ripped apart an old scanner and printer to get the steppermotors. Unfortunatly both seems to be bipolar steppers, hence i would need a H-bridge to drive them. I only have few darlington arrays around.

It would have been fun get a quick hack up and running today.

]]>
http://rotand.dk/2009/05/02/steppers/feed/ 0
Retro insane asylum telephone http://rotand.dk/2008/03/18/retro-insane-asylum-telephone/ http://rotand.dk/2008/03/18/retro-insane-asylum-telephone/#comments Tue, 18 Mar 2008 20:15:51 +0000 http://rotand.dk/blog/2008/03/18/retro-insane-asylum-telephone/ I recently bought an oldskool rotary phone. I saw it at an auction and it looked nice, but its history was even more fascinating. In its youth it was doing service at the local insane asylum.

insane asylum

image from the museum.

From the leaflet: “Welcome as a patient to the Psychiatric Hospital”
About the Psychiatric Hospital

The highly regarded Copenhagen architect, Gotlieb Bindsboll, built the Jyske Asylum in the middle of the 19th Century. The inspiration for the building, with its crow step gables and many beautiful courtrooms, was taken from the typical Danish manor houses. Its position, with views over the Århus bay was in keeping with the contemporary view of the healing benefits of beauty. The hospital became known as a model institution for the treatment of the mentally ill, also on a European scale. The first part of the hospital was completed in 1852 and it was extended several times over the next fifty years.

kirk phone

The phone is from 1951 1955 and the “electronics” looks aged but in surprisingly good condition. My first plan for it were to gut it, and put a more modern telephone inside, so I could use it for voip. But when I saw that it were in good condition, I thought it would be a shame to kill it entirely.

So I wanted to see whether it would be possible to use it as it is.

For the voip connection i have a PAP2T linksys adaptor (pap), its quite simple to work with. Plug in power and ethernet cable and configure it with a voip service-provider. Initially I used a normal phone to make sure that i had a working setup, before trying to get the rotary phone to work. The normal phone were quite easy to setup and it “just works”.

For the rotary phone there is still some difficulties. But i have managed to get something to work, and I am working on the rest.

First of all i had to change to paps power output to maximum, else it wouldn’t ring the bells. I am still in the process of fiddling with settings for impedance and/or input gain. The problem is that the microphone volume is very low, and if I just turn the input gain up it turns up for the noise as well. It isn’t a problem for me as i have a crisp and clear sound, but apparently it’s a pain to whomever I am talking to. So something has to be done.

Then there is the dialing. A rotary phone dials by using pulse dialing, which in essence means that it disconnects/hangs up, in short intervals as a method of counting the numbers. But any modern voip-adaptor (at least a cheap one) can only function using DTMF. That’s were sending different tones means different numbers. Which basically means that it is enough to send the correct sequence of tones into the microphone in order to dial a number.

I had seen some applets for dialling they did work with the modern telephone, but the rotary phone with its microphone troubles had to get something more. I had success using “DTMF-dial” (from the ubuntu repositories), because it was possible to tweak the duration of tones and pauses.

Next step, as holding the phone to the PC-speaker every time i need to make a phone call, is not an option, were to make a midlet, that’s a mobile applet. A java program for the mobile. Using the mobile as a dialer may seem awkward, but it already holds all my contacts and the voip is a great deal cheaper. I have a midlet at the moment that is at the proof of concept stage. It can dial and I am able to take a number from my address-book dial it using DTMF. It still needs a bit of polishing, but its mostly cosmetic, maybe a list of recent calls would be a nice feature to implement.

soon to come:

  • Nice pictures of the phone, and the electronics.
  • Some software for DTMF dialing on the mobile and a bit about devolping a simple mobile application in netbeans.
]]>
http://rotand.dk/2008/03/18/retro-insane-asylum-telephone/feed/ 2
Arduino ps2 mouse http://rotand.dk/2007/11/21/arduino-ps2-mouse/ http://rotand.dk/2007/11/21/arduino-ps2-mouse/#comments Tue, 20 Nov 2007 21:34:16 +0000 http://rotand.dk/blog/2007/11/21/arduino-ps2-mouse/ arduino mouse and anoying encoder
I have been tinkering a bit with the arduino the last couple of days. Mostly small experiments with some of the junk had around, after some frustrations with a circuit for a rotary encoder, i “gave up” and tried hooking up a ps2 mouse. There are a nice tutorial at the arduino playground. It seemed complicated to interface with a mouse this way. But it proved to be so much easier than trying to build a circuit. The software coding is so much easier than the electrical circuits.

It was a matter of connecting 4 wires and uploading the code to get it running. But then i found out that there wasn’t support for the mouse-wheel, so i googled the datasheet for the IC, and started hacking. I ended up getting the mousewheel to function and getting output for the buttons. Along the way I refactored some of code, in order to better understand what was happening.

I still haven’t figured out what I should use the mouse for, but it was a fun hack.

Here is the sourcecode, if you want to try something with it : ps2mouse for arduino

I tried to make nice comments so it should be very straightforward to work with. As mentioned a haven’t made most of the code, just some additions and refactoring.

The mouse and the annoying encoder i couldn’t build a circuit for. It can be attached to a motor where there are a slotted wheel.

(21 nov updated code)

]]> http://rotand.dk/2007/11/21/arduino-ps2-mouse/feed/ 3 Arduino ambient dashboard http://rotand.dk/2007/11/10/arduino-ambient-dashboard/ http://rotand.dk/2007/11/10/arduino-ambient-dashboard/#comments Sat, 10 Nov 2007 16:57:16 +0000 http://rotand.dk/blog/2007/11/10/arduino-ambient-dashboard/ Yesterday I finally got the Arduino, I ordered from Segor Electronics. Which by the way had a good service and packed it securely.

I had a plan to create a Ambient dashboard, that is to have some analog meters that would convey some digital information. In an non obtrusive way, i think it has a very fine name, peripheral awareness.

I found it easy to code the arduino and to work with, so far that is. Using ubuntu I for some peculiar reason had to uninstall braille support, as it automatically recognizes it a braille device.

In order to communicate with the arduino it uses a usb serial connection, that is its connected to the usb port, but it behaves like a serialport. The simple way to send data to the arduino is setting up stty and then you can do stuff from bash like echo “data” >/dev/ttyUSB0 and voila it receives the data.

dashboard1 dashboard2

Here is the prototype setup in all is lousy light condition for mobile cam glory.

There are 5 different meters and they all use PWM, without any capicitors or filters, and it just works, most of the time. Its coded so that when its send a string like 23#34#23#34#34 terminated by a newline, it adjust the displays to the values.(0-254).

Now the next part is to make some kind of script to read relevant information and pass it along to the dashboard, since i use linux some information is available trough acpi as virtual files. But the hunt for easy accessible and relevant data has started, i would really like to display bandwidth usage but so far i haven’t had any luck figuring out where it resides.

]]>
http://rotand.dk/2007/11/10/arduino-ambient-dashboard/feed/ 2