Reply To Thread
Results 1 to 10 of 10
  1. Collapse Details
    Yet another Picaxe project - $12 Cave Eyes
    #1
    Halstaff's Avatar
    Halstaff is offline The Great Pumpkin
    Join Date
    Nov 2009
    Location
    San Diego, CA
    Posts
    512


    I wanted to post my last Picaxe project for awhile (only because I'm out of boards again and have to wait a bit before ordering more). It's 4 pairs of randomly flashing LED's that we will use in our "batroom" The bathroom is totally decorated with bats, red lights and an appropriate audio track. These eyes will be installed in a glass fronted display cabinet that has a black fabric inside. Just the LED's will poke through the fabric.



    I want to thank Fritz_42 for the code for this and also thank hpropman for all his encouragement to get me started with the Picaxe. If you haven't checked out the first installment of his book, there's a link to it on his site - http://www.freewebs.com/hpropman/

    If anyone wants the program code, I'll be happy to post it.
    A great addition to the haunt for less than $12.
    Reply With Quote
     

  2. Collapse Details
    #2
    halloween71's Avatar
    halloween71 is offline crossfit zombie
    Join Date
    Apr 2007
    Location
    Lindside west virginia
    Posts
    6,374
    Blog Entries
    19
    Your haunt is going to be the bomb this year.I can't wait to see it!!!
    Reply With Quote
     

  3. Collapse Details
    #3
    phil121's Avatar
    phil121 is offline The Great Pumpkin
    Join Date
    Oct 2009
    Location
    Newcastle Upon Tyne, England
    Posts
    373
    That's gonna look GREAT! Halstaff, the picaxe is an awesome micro controller, and soooo cheap!
    I would greatly appreciate it if you could post the code you used.
    Thanks
    Phil
    Reply With Quote
     

  4. Collapse Details
    #4
    crazy xmas's Avatar
    crazy xmas is offline The Great Pumpkin
    Join Date
    Dec 2008
    Location
    Billings,Montana, usa
    Posts
    14,532
    Totally awesome Halstaff!
    Watch where you dig... you may find yourself...
    Reply With Quote
     

  5. Collapse Details
    #5
    Halstaff's Avatar
    Halstaff is offline The Great Pumpkin
    Join Date
    Nov 2009
    Location
    San Diego, CA
    Posts
    512
    Phil,
    Here is the code I'm using for the random eyes.

    'Random flash program:

    symbol led0 = 0
    symbol led1 = 1
    symbol led2 = 2
    symbol led4 = 4

    main:
    startup:
    high led0
    high led1
    high led2
    high led4
    pause 2000
    low led0
    low led1
    low led2
    low led4

    goto flash

    flash:
    Random w0
    Random w1
    w2 = w0 / 80
    w3 = w1 / 11
    if w3 < 1000 then: high led0
    pause w2
    low led0
    elseif w3 < 2000 then: high led1
    pause w2
    low led1
    elseif w3 < 3000 then: high led2
    pause w2
    low led2
    elseif w3 < 4000 then: high led4
    pause w2
    low led4

    endif
    goto flash

    Hope you find it useful.
    Reply With Quote
     

  6. Collapse Details
    #6
    phil121's Avatar
    phil121 is offline The Great Pumpkin
    Join Date
    Oct 2009
    Location
    Newcastle Upon Tyne, England
    Posts
    373
    Thanks very much Halstaff, very kind of you to post it.
    Thanks again
    Phil
    Reply With Quote
     

  7. Collapse Details
    #7
    paulcav151's Avatar
    paulcav151 is offline The Great Pumpkin
    Join Date
    Dec 2009
    Location
    East Amherst, NY
    Posts
    174
    Can you post the wiring diagram?
    PC
    Reply With Quote
     

  8. Collapse Details
    #8
    Halstaff's Avatar
    Halstaff is offline The Great Pumpkin
    Join Date
    Nov 2009
    Location
    San Diego, CA
    Posts
    512
    Quote Originally Posted by paulcav151 View Post
    Can you post the wiring diagram?
    I used Fritz42_male's Very Low Cost (VLC) controller for this project. You can find the complete instructions here - http://www.ipprofessional.com.au/VLC...Controller.pdf
    Reply With Quote
     

  9. Collapse Details
    #9
    paulcav151's Avatar
    paulcav151 is offline The Great Pumpkin
    Join Date
    Dec 2009
    Location
    East Amherst, NY
    Posts
    174
    So are you saying the wiring is the same (via Fritz's VLC), whether you use the controller for cave eyes or motor control, and only the code needs to be changed?
    PC
    Reply With Quote
     

  10. Collapse Details
    #10
    Halstaff's Avatar
    Halstaff is offline The Great Pumpkin
    Join Date
    Nov 2009
    Location
    San Diego, CA
    Posts
    512
    Quote Originally Posted by paulcav151 View Post
    So are you saying the wiring is the same (via Fritz's VLC), whether you use the controller for cave eyes or motor control, and only the code needs to be changed?
    Exactly! The basic board design remains the same, you just connect it to different things.
    For this project I used pins 0,1,2 & 4 to each run a pair of eyes. This will run continuously so it won't have a trigger. I used the chips power supply to also run the LED's which is a 3AA battery pack. I'm switching most of my Picaxe's over to regulated 5V wall warts that I picked up for .79 each. Make sure if you use pin 0 to change over the jumper which is located next to the chip after you program it.
    If I'm not going to be using all the pins for a specific project, I may not add them to the board however if you reuse the board for another project, you may have to add them on. It's easier just to build the complete board and then it's ready to go for whatever you do. For my skeleton fish, I was really pressed for space so adding in just the pins I needed allowed it to fit inside the fish's head. You can see that thread here - Animated Pirate Skeleton Fish
    Reply With Quote
     

Reply To Thread

Bookmarks

Posting Permissions

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