- March 8th, 2022, 9:15 am#4967947
I just finished building a ghost trap based on Sean Charlesworth's 3D printed design and EctoLabs idea of using NeoPixel jewels. I thought I would share my code for anybody to benefit from. Several changes were made such as:
-The rear LED will fade/pulse/dim from low/high/low like in the movie instead of the turning on/off/on after there capture sequence. (You will need to move the rear led to digital i/o #3 pin on the music maker board)
-Modified door closure timings (had issue with original code where on a rare occasion they would close in on each other), there were other small misc timing issues that I changed.
-Modified the smoke pump to synchronise with the door closure better, and only run during the capture sequence sound effects.
-Modified the startup sequence to play the startup sound when the bargraph LED starts it's flash sequence.
-During the opening sequence of the trap, a huge volume of white light is emitted out before settling down to the purple/strobe effect.
-During the capture sequence, I added some slight subtle colour changes (going from light yellow to purple to white)
-Added some purple sparks to the blue spark sequence.
Also, if you are suffering from a static noise sound when the trap is turned on for a few seconds before it goes away, I solved the issue by enabling +12db and +6db on the music maker board.
Also to note, if you are doing a build using NeoPixel Jewels, as mentioned by EctoLabs, connect them to digital i/o #5 pin and move the door motors to digital i/o pin #9 (right motor) and digital i/o pin #10 (left motor), and move the rear led from analog i/o pin #1 to digital i/o pin #3
code:
https://drive.google.com/drive/folders/ ... sp=sharing
-The rear LED will fade/pulse/dim from low/high/low like in the movie instead of the turning on/off/on after there capture sequence. (You will need to move the rear led to digital i/o #3 pin on the music maker board)
-Modified door closure timings (had issue with original code where on a rare occasion they would close in on each other), there were other small misc timing issues that I changed.
-Modified the smoke pump to synchronise with the door closure better, and only run during the capture sequence sound effects.
-Modified the startup sequence to play the startup sound when the bargraph LED starts it's flash sequence.
-During the opening sequence of the trap, a huge volume of white light is emitted out before settling down to the purple/strobe effect.
-During the capture sequence, I added some slight subtle colour changes (going from light yellow to purple to white)
-Added some purple sparks to the blue spark sequence.
Also, if you are suffering from a static noise sound when the trap is turned on for a few seconds before it goes away, I solved the issue by enabling +12db and +6db on the music maker board.
Also to note, if you are doing a build using NeoPixel Jewels, as mentioned by EctoLabs, connect them to digital i/o #5 pin and move the door motors to digital i/o pin #9 (right motor) and digital i/o pin #10 (left motor), and move the rear led from analog i/o pin #1 to digital i/o pin #3
code:
https://drive.google.com/drive/folders/ ... sp=sharing
Last edited by gpstar on April 13th, 2022, 2:36 am, edited 1 time in total.