element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi Projects
  • Products
  • Raspberry Pi
  • Raspberry Pi Projects
  • More
  • Cancel
Raspberry Pi Projects
Blog Wrap it up (Sort of) : Finishing the Foginator 2000
  • Blog
  • Documents
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: pettitda
  • Date Created: 16 Nov 2015 12:15 AM Date Created
  • Views 673 views
  • Likes 2 likes
  • Comments 2 comments
  • raspberry_pi_projects
  • pumpkinpi2015
Related
Recommended

Wrap it up (Sort of) : Finishing the Foginator 2000

pettitda
pettitda
16 Nov 2015

Last time I had determined that the long ribbon cable was too long to fit into the box.  So, I ordered a GPIO header with longer pins for the sense hat and a smaller ribbon cable with a 40 pin connector on one end and a 26 pin header on the other to plug into the PermaProto board.


In order to make more room for the board and the connector stack, I removed the three screw terminal connector where I had planned to connect the wires from the Fog machine remote. 

 

image

 

Using double sided tape, I secured the PermaProto to the bottom of the enclosure.  Then I secured the AC relay to the side wall near where the Fog machine cable will enter the box.

 

image

 

Next, I installed the fog machine cable and wired up the relay board to it.  I secured the relay board to the opposite side wall of the enclosure from the AC relay with more double sided tape.

 

image

 

I installed the neopixel ring on the outside of the box and used hot glue to secure the ring in place.

 

image

 

Then I wired the neopixel wires to the three screw terminal connector.

 

image

 

Next, I drilled holes in the enclosure top and secured the Raspberry Pi to it using 4-40 machine screws and nuts.

 

image

 

You'll notice that one screw hole was a little off, so I was only able to install three of the screws.

 

image

 

I installed the new GPIO header on the sense-hat and plugged it into the Raspberry Pi, then plugged the new ribbon cable onto the pins which extended through the sense-hat board.

 

image

 

I closed everything up and tried to connect to the Pi from my laptop.  Then I realized the WiPi was not installed.  So, I had to cut a hole in the side wall of the enclosure for the WiPi to stick through. 

 

image

 

I made the hole where the fog machine cable enters the box slightly larger so that I could run the Pi power cable and the speaker cable through the same hole.

 

image

 

Now, the Foginator 2000 is assembled and ready to test.  At this point I know all of the parts work because I've tested them individually.  Since the audio amplifier board that I built is dead (the main IC is dead), I decided to use an old amplified speaker from a PC.  All in all, it looks pretty good. 

 

image

 

However when I tested it, I found that when the PWM is running there is a bunch of noise on the audio line.  I thought this might be due to the neo-pixel supply voltage being fed from the Raspberry Pi.  So, I disconnected it and ran the neo-pixel ring and the voltage translator chip off of a separate power supply.  Unfortunately, that had no effect.  Looking at the PWM signal on a oscilloscope, I noticed that there's lots of ringing on the edges.  Even with the Raspberry Pi disconnected from the rest of the box, the noise still rides on the audio when the PWM is active.  I did a little research and it looks like there's a strength setting on the GPIO outputs on the Raspberry Pi.  So, maybe if I lower the strength, that will reduce the ringing.  I will write more once I figure out how to do that.

 

Other than, that everything appears to work.  The fog machine switches on when the relay closes and puts out three seconds worth of fog.  When the PWM is not running the audio is crisp and clear and plenty loud.  The PIR sensor senses motion through the hole in the side wall just fine and when the speaker is turned off, the neo-pixel displays a rotating rainbow when the PWM is turned on.  So, I am really close to having a working system.  All I need to do is merge all of the code together and I'll be set for next Halloween ;-). 

  • Sign in to reply
  • DAB
    DAB over 10 years ago

    Did you terminate the flat cable?

     

    Those long leads tend to become antennas for high frequency.

     

    Otherwise, a great update.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • pettitda
    pettitda over 10 years ago

    I contacted Jeff Garff (the creator of the PWM/Neopixel library) regarding the audio issue and he replied with the following: "Unfortunately, audio conflicts with this library as they both use the hardware pwm, so you shouldn't use both at the same time.  It's recommended to use a USB audio device if you want to do audio with led control.  This is true for all pi variants."

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube