# Getting started with Arduino.

**URL:** <https://forum.djtechtools.com/t/getting-started-with-arduino/20279>\
**Category:** Hardware: Controllers, Mods and Gear\
**Created:** [February 24, 2011, 1:08am UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279 "2011-02-24T01:08:25Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaeldunne109](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.djtechtools.com/michaeldunne109/32/6155_2.png) [@michaeldunne109](https://forum.djtechtools.com/u/michaeldunne109)\
**Post date:** [February 24, 2011, 1:08am UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/1 "2011-02-24T01:08:25Z")

</div>

**Getting started with Arduino.**

Could someone please help me with getting started with Arduino please.

Just a point in the right direction books websites ect ect.

I have some basic programming skills based mostly around Picaxe.

Thanks

---

<div class="post-metadata">

**Author:** ![fraganator](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@fraganator](https://forum.djtechtools.com/u/fraganator)\
**Post date:** [February 24, 2011, 6:50am UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/2 "2011-02-24T06:50:48Z")

</div>

What are you looking to do with your Arduino? The best starting point would be the official Arduino Example page. I’m guessing you want to use it for MIDI control, so check out the examples on using the digital/analogue reads and writing to serial. Or this MIDI specific example.

As an example of what you could do with your Arduino, here’s my (shameless plug) MIDI controller I’ve just completed. The full source code is included.

---

<div class="post-metadata">

**Author:** ![MiL0](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.djtechtools.com/mil0/32/12337_2.png) [@MiL0](https://forum.djtechtools.com/u/MiL0)\
**Post date:** [February 24, 2011, 1:43pm UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/3 "2011-02-24T13:43:41Z")

</div>

> [@fraganator](#):
>
> As an example of what you could do with your Arduino, here’s my (shameless plug) MIDI controller I’ve just completed. The full source code is included.

That is an excellent tutorial! I’ll be borrowing your code I think… 😃

BTW - I notice you didn’t include a midi port on your interface… are you going to try incorporating the LUFA library instead? is it much work or something relatively easy to do?

---

<div class="post-metadata">

**Author:** ![fraganator](https://avatars.discourse-cdn.com/v4/letter/f/a88e57/32.png) [@fraganator](https://forum.djtechtools.com/u/fraganator)\
**Post date:** [February 24, 2011, 3:03pm UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/4 "2011-02-24T15:03:52Z")

</div>

Thanks 🙂

At the moment MIDI messages are sent over the serial port from the Arduino to the PC where another piece of software reads them. That then sends them over a virtual MIDI port to Traktor. It’s not the nicest solution, but it does work and I can’t say I’ve noticed any latency. I’d like to use the LUFA library, but that’s on hold until the next version.

---

<div class="post-metadata">

**Author:** ![MiL0](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.djtechtools.com/mil0/32/12337_2.png) [@MiL0](https://forum.djtechtools.com/u/MiL0)\
**Post date:** [February 24, 2011, 4:12pm UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/5 "2011-02-24T16:12:53Z")

</div>

ah I see…

what about just adding a midi port to the arduino? isn’t that just a socket, resistor and a a few wires? I guess you’d need to modify the code?

---

<div class="post-metadata">

**Author:** ![MiL0](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.djtechtools.com/mil0/32/12337_2.png) [@MiL0](https://forum.djtechtools.com/u/MiL0)\
**Post date:** [February 24, 2011, 9:40pm UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/6 "2011-02-24T21:40:49Z")

</div>

Also, I’m looking at your code (it’s really nicely commented btw) and trying to work out the best way to incorporate it so that it works on a Mux Shield ([http://mayhewlabs.com/products/arduino-mux-shield](http://mayhewlabs.com/products/arduino-mux-shield)).

The multiplexer Mux example code looks reasonably straightforward: [http://mayhewlabs.com/code/Mux\_Shield\_AnalogIn\_Example.pde](http://mayhewlabs.com/code/Mux_Shield_AnalogIn_Example.pde)

What would be the best way to approach this?

---

<div class="post-metadata">

**Author:** ![michaeldunne109](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.djtechtools.com/michaeldunne109/32/6155_2.png) [@michaeldunne109](https://forum.djtechtools.com/u/michaeldunne109)\
**Post date:** [February 24, 2011, 11:48pm UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/7 "2011-02-24T23:48:58Z")

</div>

> [@fraganator](#):
>
> What are you looking to do with your Arduino? The best starting point would be the official Arduino Example page. I’m guessing you want to use it for MIDI control, so check out the examples on using the digital/analogue reads and writing to serial. Or this MIDI specific example.
> 
> As an example of what you could do with your Arduino, here’s my (shameless plug) MIDI controller I’ve just completed. The full source code is included.

Shameless plug?? more like very helpful plug i want that controller.. Would you be able to tell me cost price??? (at the moment i don’t have time to read down threw it).

Thanks

---

<div class="post-metadata">

**Author:** ![bobsagat666](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@bobsagat666](https://forum.djtechtools.com/u/bobsagat666)\
**Post date:** [February 25, 2011, 1:39am UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/8 "2011-02-25T01:39:54Z")

</div>

> [@fraganator](#):
>
> What are you looking to do with your Arduino? The best starting point would be the official Arduino Example page. I’m guessing you want to use it for MIDI control, so check out the examples on using the digital/analogue reads and writing to serial. Or this MIDI specific example.
> 
> As an example of what you could do with your Arduino, here’s my (shameless plug) MIDI controller I’ve just completed. The full source code is included.

Thanks for the tut and code. I finished some pretty looooong code for my arcade/slider controller and it if I understand this code correctly, it applies a routine in the loop to all of your pins and spits out an individual MIDI note for each button? My code has the same denounce routine plus a specific midi note for EVERY button (copied 18 times in the loop). Your code looks much more elegant. Does this cause any problems with multiple presses? Thanks!

EDIT  
So I got this running for my mega (soooo much easier to simply change the pin numbers in the mappings) and I finally got one of my LED button backlights to pulse with the tempo in Traktor. Thanks for the code!

---

<div class="post-metadata">

**Author:** ![michaeldunne109](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.djtechtools.com/michaeldunne109/32/6155_2.png) [@michaeldunne109](https://forum.djtechtools.com/u/michaeldunne109)\
**Post date:** [February 25, 2011, 1:59am UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/9 "2011-02-25T01:59:31Z")

</div>

Just wondering would this allow me to start experimenting with midi and arduino with traktor??

> **[SparkFun Inventor's Kit - v4.1.2](https://www.sparkfun.com/sparkfun-inventor-s-kit-v4-1-2.html)**
>
> The SparkFun Inventor's Kit (SIK) v4.1.2 is the ultimate all-in-one Arduino starter kit that guides beginners from building their first circuit to programming a fully autonomous robot, no experience required.

I know its a long process to learn but its also part of a 4month+ long 1st year college project (degree in electronic engineering)

cheers🙂

---

<div class="post-metadata">

**Author:** ![josh\_firestorm](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.djtechtools.com/josh_firestorm/32/11798_2.png) [@josh\_firestorm](https://forum.djtechtools.com/u/josh_firestorm)\
**Post date:** [February 25, 2011, 2:35am UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/10 "2011-02-25T02:35:50Z")

</div>

> [@fraganator](#):
>
> What are you looking to do with your Arduino? The best starting point would be the official Arduino Example page. I’m guessing you want to use it for MIDI control, so check out the examples on using the digital/analogue reads and writing to serial. Or this MIDI specific example.
> 
> As an example of what you could do with your Arduino, here’s my (shameless plug) MIDI controller I’ve just completed. The full source code is included.

just got the weekly instructables newsletter in my inbox and your project is featured this week. nice work bud.

---

<div class="post-metadata">

**Author:** ![bobsagat666](https://avatars.discourse-cdn.com/v4/letter/b/6a8cbe/32.png) [@bobsagat666](https://forum.djtechtools.com/u/bobsagat666)\
**Post date:** [February 25, 2011, 5:18am UTC](https://forum.djtechtools.com/t/getting-started-with-arduino/20279/11 "2011-02-25T05:18:40Z")

</div>

> [@michaeldunne109](#):
>
> Just wondering would this allow me to start experimenting with midi and arduino with traktor??
> 
> [SparkFun Inventor's Kit - v4.1.2 | DIY Electronics Kits - SparkFun Electronics](http://www.sparkfun.com/products/10173)
> 
> I know its a long process to learn but its also part of a 4month+ long 1st year college project (degree in electronic engineering)
> 
> cheers🙂

All you really need is the Arduino, buttons, pots, encoders, any other basic sensors, LEDs, a breadboard, various resistors to get started. Then start with tutorials on this website [http://www.arduino.cc/en/Tutorial/Button](http://www.arduino.cc/en/Tutorial/Button). Additionally, the Arduino forums contain almost any question you could possible have with schematics and example code. If you have micro controller coding experience I would say you are off to a great start. Learn how to connect pots and leds and make them do what you want and then start implementing MIDI out/Traktor integration. I’ve learned a TON in just a few months and was able to build a basic functioning controller
