LED to music code


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: LED to music code

    When I hold back, I simply do not post. There are much better coders here than Me, my main function here is to remove spam. Perhaps if you were to detail what you are trying to do, and possibly post some code for us to work with. I am going to take a far reach here and guess anamitronics? Like the old pizza shop robots? Tell me if I am way off base here. Lots of people here DO hold back when: 1. you have not attempted or shown that you have made an effort 2.When you are on the cusp of figuring it out, as you will become skilled more quickly if you do it yourself 3. if they sense you are a student who didn't pay proper attention in class.

    Large projects can easily go sideways. Try to get each function to stand alone, as much as possible, then you can add them to main as include files much the same as "C" does or make them into sub routines.
    Last edited by Archangel; - 28th November 2014 at 06:43.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: LED to music code

    I played about with a similar project a few years back. basically I had 16 patterns stored in the PIC, and then used a low pass filter to trigger the PIC so that it stepped through each pattern to the beat of the music. It worked to a fashion, and when the speed of the chase was set right it looked quite good.

    The issue you are going to have is that you want a multi-frequency cross-over with tightly defined frequency bands which can then be fed to the PIC. To have the PIC connected to the music and then let it work out which frequencies could be done, but you would need a fast sampling loop and I don't think PBP has any direct commands for sampling the audio spectrum to place them into variables such as the example posted.

    You will also find that you will get more assistance if you are open and post up real code you have written and are having issues with. - You must remember that some of the guys here are in this professionally and whilst they don't mind helping they won't write code for you for free. But they will (and often do) help when you post full code listings and help steer you down the correct path when things are not going to plan.

Similar Threads

  1. Replies: 5
    Last Post: - 21st January 2014, 16:10
  2. Replies: 11
    Last Post: - 29th November 2013, 16:42
  3. LED 'Dot' Bargraph Issues - Newbie Code!
    By SOTASOTA in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 15th February 2013, 19:25
  4. Replies: 5
    Last Post: - 7th February 2012, 17:58
  5. Driver code for 14 segment LED display
    By Durward Searcy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th December 2004, 20:08

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts