Building an m-log

Friday, October 2nd, 2009 | Building Things, Electronics, m-log, Max/MSP, Processing

The m-log is a ‘build your own controller’ kit currently in development by the Owl Project. Using it you can control;  Pure Data, MAX/MSP, SuperCollider, Processing amongst other software. The idea is that you have a set of sensors provided in the kit (accelarometer, 2 potentiometers,2 switches, 2 buttons) then you choose how you want to arrange them. You can easily add your own sensors to the kit and it plays happily with most of the sensors from iCube, Infusion systems or phidgets as well as ones from you favorite electronics retailer.  I have been involved in a small way in it’s development and I recently gave a talk at an m-log building workshop where unfortunately I had to give back the m-log I had been borrowing from them. The good news was that they gave me one of the new kits they are developing. As I’m currently thinking about re-designing my on-stage set-up this could not have come at a better time.

m-log kit components

m-log kit components

The standard kit contains:

  • Pre-routed wooden body and back – mine is Laburnum
  • muio interface board
  • Accelerometer (roll & pitch) not shown in picture!
  • USB interface chip
  • Analogue input chip (4 channels)
  • Power LED
  • USB cable
  • Various Potentiometers, switches, buttons

This standard kit allows you up to 4 analogue controls (which output values between 0-254) in addition to 8 digital inputs (on or off). I wanted more analogue controllers which is acheived by simply adding an extra analogue input chip. You can connect a whole host of different sensors to the m-log including: Light dependant resistors, switches (tilt, reed, button, toggle),passive infra-red detectors, thermistors, potentiometers, bend sensor, pressure sensor…..

raw m-log housing

raw m-log housing

 The first thing I did on receiving the kit was to have a good look at the wooden body. The owl project have made a good job of selecting very pretty wood. Test fitting the interface board it’s clear that the routing is of very high precision, the USB connector sitting snugly in it’s square hole. Because trees come in all sorts of shapes and sizes the logs in the kits vary quite a bit in size and appearance.  When I handled my log-body It felt quite fat and I was not particularly into the feel of the rough bark on my hands so I decided to remove the bark and some of the wood around the sides.

I marked the extents of the routing on both ends of the log to make sure I would not remove too much material. I used small sharp plane to remove wood from the sides until it sat comfortably in my hand.

The next step was to think about what kind of sensors I wanted to put into my log and where to put them. I really like using the joystick controllers in my joy-pad so I decided to include a joystick (which i took out of a cheap USB game controller). I also wanted to have a light sensor (LDR) and a selection of knobs and buttons. I sketched out some ideas and finally came up the  following design.

I paid particular attention to the spacing of the knobs and buttons. The controller  would not be fun to use if it was a strain to reach the different controls so I took plenty of time to make sure I could reach all easily. The buttons on the side were laid out by holding the body and marking where my fingers fell naturally. I would warn against putting controls too close together because they’ll be difficult to operate (esp knobs). It’s also worth noting that if you cover your entire controller with knobs and buttons you might not be able to hold it without accidently activating some of them (actually this might be quite fun). Finally check that all the components will actually fit into the space provided in the log!!!

body with all holes drilled and counter-sinking

body with all holes drilled and counter-sinking

I marked out the positions of the holes I wanted in my log and used brad-point drills in an electric hand-drill to make the holes. Warning I would recommend you securely clamp down the body while drilling. The texture of the wood varies which can cause the drill-bit to jam and forcefully rotate the the log or worse, jump out and make a complete mess of your hand. The one inch spiral cut up the inside of my index finger really hurts! 

The top of the log is about 5mm thick so you can’t get a potentiometer to attach to it properly. You’ll need to recess the top surface a little to get the nut and washer on. I managed to find an attachment for my Dremel multi-tool which did this perfectly. After the finger incident I didn’t want to take any chances so I clamped the log down and wore safety glasses to do this part.

joystick liberated from cheap joypad

joystick liberated from cheap joypad

I made a nice leaver for my joystick out of a piece of Pine dowel. I shaped it with a chisel and sand paper before super-gluing it to the metal shaft of the joystick mechanism. Be careful with super-glue and components, if the glue runs down into the mechanism it might ruin the part.

Owl Simon showed me a neat way of making wooden switches for the m-log. You’ll need tactile switches, a hole-cutter and some extra wood to cut the buttons from.

wooden cores made by the hole cutter

wooden cores made by the hole cutter

I used a 16mm hole cutter. I assume the dimension refers to the resultant hole and not the core as mine ended up about 12mm across which ended up being perfect. I cut down the cores into shot lengths suitable for buttons and sanded away any sharp edges. The buttons will be hot glued onto the tactile switches shown below.

very tactile buttons

very tactile buttons

For the 4 button section on the front of the log Mounted the tactile switches on perf-board. The brown part of the tactile switch was a bit too long so I clipped them using wire cutters. On reflection It may have been better to drill out the buttons a little more to accept the longer tactile switches, but the buttons I made were not very deep and I didn’t want to risk drilling completely through them.

4 button set-up

4 button set-up

The perf-board will be hot-glued into position on a little wooden riser inside the log. After this is done the 4 buttons are carefully hot glued to the switches.

4 button mounting

4 button mounting

 I mounted the two side buttons in a very similar way using thin strips of perf-board and hot-glue. I didn’t manage to get a good photo of it but you can just about make them out in the photo below.

Soldering all the components together is fairly straightforward, I had Owl Steve on the end of the phone to help out as complete wiring diagrams are not finished yet. The board is logically laid out and a lot of the connections are repeated so it won’t take long to get into the flow. I used solid core wire for my first connections which was very stupid of me and caused a few problems including a lifted track on the board when I had to re-solder a mistake. Some of the traces are quite tiny so I’d recommend thin stranded wire or stranded ribbon cable (which I took from an old printer cable). The ribbon cable keeps things nice and neat too which is a bonus when you have lot’s of sensors going the the board. My problems were all easily rectified and I soon ended up with a nice rats nest of cables. I don’t have time to go into the specifics of the wiring here but have a look at the muio site for further details.

nearly everything soldered up

nearly everything soldered up....

When wiring up It’s important to keep test fitting the board into the log. This will make sure that your wires are long enough and that everything will fit when the time comes to glue the back on. I also made sure all my connections were correct by periodically plugging the board into the computer and using the muio server software to check the readings coming from the log. It’s a good idea to do this as you go along so you can catch wiring mistakes one at a time. I was wiring quite late at night and I did make a few mistakes but the board didn’t complain and kept on chugging along.

nearly done...

everything working

As you can see, there is not a lot of wasted space inside the m-log. All the components live under the board so it’s important to guard against accidental shorts. Before gluing on the back make a final test with the muio server and adjust the on-board trimmers to set the bounds of the analogue input range(s). This enables you to set the high and low boundaries of your accelerometer. 

I choose not to use the supplied back because I wanted something really thin and happened to have a nice 2mm thick piece of mahogany veneer lying about. I rough cut it to size, and glued it on with wood glue. While it was drying in the clamps I cut some more wooden cores using the hole cutter to use as knobs. When the back was dry I sanded it into the contour sides and ends. All done! 

Completed m-log

Completed m-log

I’m really pleased with my m-log, It works well and communicates as expected with the computer. The accelerometer gives nice control when rolling and pitching the m-log and I’m looking forward to making some Max/MSP patches to exploit this data. I had a few problems with some of the buttons sticking, but I think i can sort this out without too much trouble. 

I’ve started making some abstractions to help in dealing with the m-log data in Max/MSP which will be downloadable as soon as they are ready. I’ll also be making some little m-log software instruments for download soon.

Finally the kit is not available to buy yet, I don’t know when it will be or how much it will cost but if you have ideas or suggestions please leave a comment and I’ll make sure the developers read them.

Take care,

Leafcutter John.

Tags: , , , ,

3 Comments to Building an m-log

Johnny
November 5, 2009

Where’d you get the tactile switches? Awesome looking project. Would love to see it in action. The joystick truly makes it.

Leafcutter John
November 5, 2009

Just check google shopping for your country:

uk: http://www.google.co.uk/products?q=tactile+switch&hl=en&scoring=p

us: http://www.google.com/products?q=tactile+switch&hl=en&scoring=p

They are very cheap and work really well in the log!

As soon as i get chance i’ll post video of the m-log in action

best,

John.

rachel connelly
March 1, 2010

remember me-friend of John Wall? I’m in HK now running a new media gallery-I want you all to come and play….get funding and come out!!

Leave a comment

You must be logged in to post a comment.

Social Links

Join LEAFCUTTER MAILING LIST


http://soundcloud.com/leafcutterjohn

For you YOUTUBE VIDEO pleasure

Leafcutterjoh.com

Archives