ping pong blinky

Upload: p3dr0java

Post on 04-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/30/2019 Ping Pong Blinky

    1/7

  • 7/30/2019 Ping Pong Blinky

    2/7

    http://www.instructables.com/id/Ping-Pong-Blinky/

    Author:DaShroom Da_Shroom66 Blog

    LEDS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Intro: Ping-Pong BlinkyOk, I bought the TI MSP-EXP430G2 Dev board a while ago, and it was about time I tried it out, as always, with LEDs and Ping-Pong Balls.

    It fades between the colours.

    You will need:A 2xAA batery holder, with 2 AA batteriesA 9v battery clipA small piece of copper stripboard, just large enough to cover the back of your battery holder, but not go over ita TI MSP430 launchpad (really cheap, get it from proto-pic in the UK,, about $4.50 straight from TI, pluss shipping)A Ping Pong BallA diffused Common Cathode RGB LED3 pin headersa jumpera 14 pin DIP socketa 10K resistorWire

    SolderHot GLue Sticks

    Hot Glue gunDrill with 5mm bitSoldering Iron

    Step 1:Set up your development environment + programming the chipIf you have never used this development board before, you will not have a development enviroment.

    The code was written for MSPGCC, and uploaded with MSPDebug - this is cross platform, a quick google will land you with the downloads

    The code can be easily ported to CCS or IAR, which come free from TI

    You can download the source code from my GitHub repo

    Just compile it (or use the .elf provided) and use mspdebug rf2500 to program the chip (not applicable for CCS or IAR)

    If this is your first upload, then congratulations, you have programmed your first chip :-D

    Step 2:Check you have everythingMake sure you are good to go, just a pic to check your stuff against.

    https://github.com/DaShroom/MSP_PingPong_Faderhttp://www.dashroom66.org/http://member/DaShroom/http://member/DaShroom/
  • 7/30/2019 Ping Pong Blinky

    3/7

    http://www.instructables.com/id/Ping-Pong-Blinky/

    Step 3:Drill the Ping-Pong ballHold it steady against the desk (I haven in the pic, as one hand held the camera, but I did do it, honest ), and drill a 5mm hole for the LED

    Step 4:Put the LED in the holeIt should just fit in, with little room to move, the lip should stop it falling in

  • 7/30/2019 Ping Pong Blinky

    4/7

    http://www.instructables.com/id/Ping-Pong-Blinky/

    Step 5:Glue it inTurn on your hot glue gun, and wait for it to heat up, then cover the LED in glue (leave the pins though) This will make it permanent.

    Step 6:Time to lay out the strip boardFirst we need to add the DIP socket, as seen in the picture

    Step 7:Mark it for drillingWe need to mark out where to drill it to break the trace. Otherwise the pins will short.

  • 7/30/2019 Ping Pong Blinky

    5/7

    http://www.instructables.com/id/Ping-Pong-Blinky/

    Step 8:Drill the tracesI deliberately did some too big so that you can compare, later on you will see why they are too big. Use the smaller ones as a guide.

    Step 9:Solder it inSolder the joints. You can see why the holes are too big, there is not enough room for soldering, and the joints near them are messy, going round the holes, andspreading out.

    Step 10:Populating it with more componentsAdd these components and wires. The 10K resistor keeps the chip from resetting, and the jumper acts as a power switch,

  • 7/30/2019 Ping Pong Blinky

    6/7

    http://www.instructables.com/id/Ping-Pong-Blinky/

    Step 11:Now just add the LEDNow we just place and solder the LED, making sure we get the wires the correct way round. The longest pin should be on the broken trace with the wre on it, the othethree should be on traces going to the DIP socket.

    Step 12:Add the battery holderCover the back of the battery holder with glue, and place on the stripboard. Solder the 9v clip to the wires protruding from the circuit, and clip it onto the battery holder

    Step 13:Add the chip and turn it on :-DsocketTake the MCU from the dev board and place it in the DIP socket (make sure it is the right way round, line up the notch on one of the shorter sides with that on the sockTurn it on with a jumper, and watch it glow and change colour.

  • 7/30/2019 Ping Pong Blinky

    7/7

    http://www.instructables.com/id/Ping-Pong-Blinky/

    Related Instructables

    The Board ofMany Ping-Pong

    Balls by

    DaShroom

    Mood Lamp

    with Arduino by

    ricardouvina

    Valentinelighting ping

    pong heart by

    lpxav

    Rainbowglowing ping

    pong (video) by

    jedreg

    LED Ping Pong

    Ball by

    dcmania21

    The MuchLarger Board ofMany Ping-Pong

    Balls by

    DaShroom

    Comments

    2 comments Add Comment

    ynze says: Aug 10, 2012. 2:09 PM REPa video, a video, please please a video???????????????????

    ;-)

    Y.

    DaShroom says: Aug 10, 2012. 3:19 PM REPthou asked, and it shall be given unto thee (unfortunately it will still be filmed on my phone, so look awful)

    Do you mean a video of assembly, or of the thing working ??

    http://www.instructables.com/id/Ping-Pong-Blinky/?utm_source=pdf&utm_campaign=comments#DISCUSShttp://www.instructables.com/member/DaShroom/?utm_source=pdf&utm_campaign=commentshttp://www.instructables.com/member/DaShroom/?utm_source=pdf&utm_campaign=commentshttp://www.instructables.com/id/Ping-Pong-Blinky/?utm_source=pdf&utm_campaign=comments#DISCUSShttp://www.instructables.com/member/ynze/?utm_source=pdf&utm_campaign=commentshttp://www.instructables.com/member/ynze/?utm_source=pdf&utm_campaign=commentshttp://www.instructables.com/id/Ping-Pong-Blinky/?utm_source=pdf&utm_campaign=comments#commentshttp://www.instructables.com/member/DaShroom/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/The-Much-Larger-Board-of-Many-Ping-Pong-Balls/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/The-Much-Larger-Board-of-Many-Ping-Pong-Balls/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/The-Much-Larger-Board-of-Many-Ping-Pong-Balls/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/The-Much-Larger-Board-of-Many-Ping-Pong-Balls/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/The-Much-Larger-Board-of-Many-Ping-Pong-Balls/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/dcmania21/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/LED-Ball/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/LED-Ball/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/LED-Ball/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/jedreg/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Glowing-ping-pong/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Glowing-ping-pong/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Glowing-ping-pong/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Glowing-ping-pong/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Glowing-ping-pong/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/lpxav/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Valentine-lighting-ping-pong-heart/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Valentine-lighting-ping-pong-heart/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Valentine-lighting-ping-pong-heart/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Valentine-lighting-ping-pong-heart/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/ricardouvina/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Mood-Lamp-with-Arduino/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Mood-Lamp-with-Arduino/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/Mood-Lamp-with-Arduino/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/member/DaShroom/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/The-Board-of-Many-Ping-Pong-Balls/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/The-Board-of-Many-Ping-Pong-Balls/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/The-Board-of-Many-Ping-Pong-Balls/?utm_source=pdf&utm_campaign=relatedhttp://www.instructables.com/id/The-Board-of-Many-Ping-Pong-Balls/?utm_source=pdf&utm_campaign=related