Menu

Sound Activated Light Chaser

Help
Grant
2009-01-27
2013-05-30
  • Grant

    Grant - 2009-01-27

    Hi all,

    Starting on a new project here, to build a sound activated light chaser.  I've decided to use a PIC as most of the chaser circuits I've seen only switch on a single light (or multiple lights on a single line out) and work in a sequence of 1-2-3-4 repetitively.

    My intention is to have a beat sensing circuit which works with either an electret mic or via a line level input (or both, being switchable for portability) which will set a pin high on a PIC. This will in turn trigger the PIC to switch the appropriate lights on. Using the PIC, I can create multiple preset sequences for the lights. I will be using 16F630's as I have an excess of these and they have sufficient pins for what I'm hoping to do.

    I'm fairly confident I'll be able to program the sequences and I'm hoping to use the EEPROM for storing the sequences, so that I can change the sequences without changing the programming. I am assuming of course that it is possible to write to the EEPROM with my PIC programmer?

    My question is this: is it possible to randomly select which lighting sequence is outputted?

    Also, if anyone has some examples of circuits for my beat sensor these would be appreciated also.

    Thanks,

    Grant

     
    • kent_twt4

      kent_twt4 - 2009-01-27

      Just got a chip that may do all the things you want?  Try looking at the LM4970SD http://www.national.com/pf/LM/LM4970.html
      Have not had time to try it out, but should be fun.

      Tried a quick stab at the electret mic route awhile back, but no joy.  Will have to revisit down the road.

      If you have a handle on I2C then there are lots of devices to make flashing leds.  Have used a NXP PCA9635 along with the GCBasic Random function to some effect, although not with sound.  It seemed difficult for me to make a random function pleasing to the eye.

      The Pickit 2 programmer readme.txt gives the pins to hookup for programming, so presumably yes on the EEPROM programming.  http://www.electro-tech-online.com/micro-controllers/87869-pickit-2-downloading-data-onto-25lc-serial-eeprom.html

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.