Register / Log in
15
July

Arduino projects.

Written by Davee. 11 comments Posted in: Electronics

Well, I’m no beginner to electronics, but this is my first microcontroller that can directly interface them! So yeah, pretty cool, never messed with AVR in my life, always used PIC for my USB controller. So I’ve been messing around a bit and I’ve done some very basic stuff working with components here and there.

Read on to see the stuff I’ve done.

First thing first was a test to get me warmed up to the equipment. I had a 7-segment display lying around and a 7-seg decoder to accompany it costing me only 4 digital pins. It also made the code a helluva lot easier, basically just reflecting the integer’s lower 4 bits to the decoder. So this was my first project.

Second was the addition of a PS1 controller to control the pulses. Like I said, i’ve had experience in electronics before so really it didn’t take look after reading a brutally-sound documentation on the controller’s protocol. I wrote a small library to interface the controller and then used that to control the 7 segment display. Pretty simple controller interface after that, X increments, O decrements and start resets the counting.

Third was a simple task using the Arduino tone library. I salvaged a speaker out of some old spy toy. Then I looked up the sheet music for the tetris theme and huzza, mix that both together and you get a lovely tune, albeit with minor mistakes within.

Forth and the latest on youtube at least is the PS1 controller synth. Not so much a synth really, but you can see the name potential, yeah? Still using the monotone Arduino tone library (not any PWM based oscillator or external oscillators yet) I added the ability to use the PS1 controller to choose the note to play. IIRC X = C, O = D, [] = E, /\ = F, UP = G, RIGHT = A and DOWN = B.

Then there was the ability to change the semi-tone. L1 changes the pitch down a semitone and R1 up a semitone. This allows the full chromatic scale to be used :D

Then you see the 7-segement display, right? That’s the current octave it is on. It should start on like 5 whichever has middle C and then you can change it to have lower octaves or higher (the lower octaves are sweet).

Press L3 and then use the right analogue stick to control the pitch according to the Y-axis. Pretty cool eh?

Follow me on twitter: @DaveeFTW
If you like what I do and you wanna buy me a beer (I am old enough now ;) ), Donate! ->
-Davee

11 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Kaylea

    You have shed a ray of susnihne into the forum. Thanks!

    Tue 6th September, 2011 at 18:43 BST
  2. cxlniz

    kmIfSf pjqjjxhgksik

    Wed 7th September, 2011 at 08:51 BST
  3. tylwbchut

    jmII5c , [url=http://orwhvunpcvsi.com/]orwhvunpcvsi[/url], [link=http://yubnkdqopzuw.com/]yubnkdqopzuw[/link], http://lbqvzrconkie.com/

    Wed 7th September, 2011 at 13:21 BST
  4. vwndza

    xSi4tw cnheqxqrekzs

    Fri 9th September, 2011 at 09:48 BST
  5. wnactdlj

    ebMyDX , [url=http://jztbvgemtnfe.com/]jztbvgemtnfe[/url], [link=http://xcrydkakawhk.com/]xcrydkakawhk[/link], http://ndnjtxojjmet.com/

    Fri 9th September, 2011 at 14:13 BST
  6. north face jackets

    thanks for let me posts

    Fri 28th October, 2011 at 03:48 BST
  7. Thomas

    Where did you learn Arduino?
    Im currently learning C programming, got any tips for me?

    Mon 5th December, 2011 at 07:34 BST
  8. north face clothing

    hese accrued in excess of Three or more,600 To the north Face Backpacks, a great deal more when compared to 300 extra few pounds of school features and layered greater than 299 long distances.

    Wed 21st December, 2011 at 02:05 BST
  9. columbia outerwear

    orning package Neighborhood Occasion The distribution of this To the north Experience School bags came about from Sunday, Sept Thirty

    Wed 21st December, 2011 at 02:07 BST
  10. columbia outlet

    Acquire Teenagers USA performed The car seats, The enhancement and also Seatbelt Well-being demos making use of the actions Chevy cars or trucks.

    Wed 21st December, 2011 at 02:13 BST
  11. hollister uk

    hollister uk sale

    Mon 9th January, 2012 at 03:28 BST

Some HTML is OK

or, reply to this post via trackback.