Making a sturdy/permanent Arduino circuit.

So I'm using my Arduino to build a MIDI control of sorts. I have the code working well enough to build what the hardware will eventually be, and plan on updating the code as I get around to it.

Now, I want to house the Arduino permanently inside an enclosure, with all the wires leading to it preferably soldered and held firmly in place and all that.

What's the best way to go about doing that? At first I was thinking of going with something like a mini/nano for space's sake, but I'd like to be able to pop the chip out if I ever need to, so a full sized IC layout would be best. Building a whole Arduino/Hackduino on a perfboard/protoboard and wiring up everything to that, or is there something already made for this purpose?

Lastly, for it working as a standalone unit, every time I power up the Arduino, or upload a new sketch to it, it seems to send weird messages out of the MIDI/serial. Weird as in, the MIDI gear is responding to it. Does that only happen when working off the computer/reseting/uploading a new sketch, or does it do whatever it is it's doing when being powered off a separate 9v supply?

You could also use a prototype shield and omit the top pin sockets and solder your components...

For example http://www.adafruit.com/index.php?main_page=product_info&cPath=17_21&products_id=51 or http://www.adafruit.com/index.php?main_page=product_info&products_id=55

The MIDI output is wired up like this:

http://itp.nyu.edu/physcomp/Labs/MIDIOutput

I get patch/preset changes happening on the MIDI gear every time the Arduino boots up, or a new sketch is uploaded.

In looking around a bit more this Boarduino looks pretty nice: http://www.adafruit.com/index.php?main_page=product_info&cPath=19&products_id=91

Full sized USB, small footprint. I'd have to wire up a 7805 to power it off 9v, but it looks good.

I'm assuming if I add a separate power supply, that running both at the same time (plugging the USB, while it's already being powered) would likely fry something, or is the USB chip smart enough to stop taking USB power?

I did think about a protoshield, but as small as the Arduino is, the footprint is getting pretty big, not to mention all the connections are still going through headers (the whole protoboard), which can get jiggled loose.

I'm currently using a Duemillenove for the prototyping, but when it's done, it might be a Boarduino, or Hackduino, or similar small footprint/DIY setup. More than likely a Boarduino with a 7805 added for external power input and regulation.

I'll just avoid plugging in both sources at once, to keep additional circuitry down. I'd only need to use USB once in a blue moon, when loading new software into it.

I'll just avoid plugging in both sources at once, to keep additional circuitry down. I'd only need to use USB once in a blue moon, when loading new software into it.

You say that now, but I guarantee you there will come a time when you are in a rush and/or forgetful because you have something else on your mindandohwhatelsewasIthinkingaboutohdamntheregoes...my...board...!!!

Believe me, despite what you think now, Murphy will get you in the end - especially if you leave a door open for him; take the time to do it right, now.

:)

Hehe, that's probably true.

How complicated is the circuit on the Arduino that does the power switching?

How complicated is the circuit on the Arduino that does the power switching?

Just look at the schematic, it's just a voltage comparator and a FET.

For options on physical construction look at some of my projects:- http://www.thebox.myzen.co.uk/Hardware/MIDI_Footsteps.html