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
  • 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 Assembly Part 2: 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: 10 Nov 2015 4:21 AM Date Created
  • Views 464 views
  • Likes 0 likes
  • Comments 3 comments
  • raspberry_pi_projects
  • pumpkinpi2015
Related
Recommended

Assembly Part 2: Finishing the Foginator 2000

pettitda
pettitda
10 Nov 2015

I finished up my last blog post by installing the relay board on my PermaProto board.

image

 

Next, I needed to assemble the level shifter board.  I say assemble, but all that's required is to solder the single row headers to the board.

 

image

 

Here's what it looks like with the connectors added.

 

image

 

I went ahead and soldered the level shifter board on to the PermaProto.  If I were thinking ahead I wouldn't have placed it so close to the connector.  I would later find that my cable no longer fit on the board and I would need to order a different cable.  Planning in a hobby project is just as important as it is in a work project!

 

image

 

I really wanted to get the neo-pixels working with the RPi 2.  It didn't seem like it should be that hard.  So, I wired up the neo-pixel ring with wires to connect to my Raspberry Pi (through the level shifter). 

 

image

 

I downloaded the Raspberry Pi 2 branch of Jeremy Garff's rpi_ws2811 library. 


>git clone https://github.com/jgarff/rpi_ws281x.git

>git pull https://github.com/jgarff/rpi_ws281x.git rpi2


I compiled the code:


>sudo scons


Then I ran the test program


> sudo ./test


and viola!  It works!

 

image

 

Next, I began to prepare the enclosure I purchased for this project.  The provided enclosure was too small because I wanted the RPi to be inside the box.  I cut a notch in one end of the enclosure to fit the over-molded cable that was originally in the fog machine remote.  I crimped solder-less lugs on the cable's wires in order to connect up to an AC relay coil.  Then I soldered on an extra wire to go to the relay board's contacts for switching the fog machine on and off.

 

image

 

I purchased a relay with an AC coil that I could use with my fog machine (since it uses AC to light the indicator lamp). 

 

image

 

I decided to use double sided tape to mount it inside the enclosure. 


image

 

Then I added a 10k Ohm pull-up resistor to 3.3V on the PermaProto board.  This will allow me to use the relay to switch a GPIO input on the RPi.

 

image

 

Here's a schematic of what this circuit looks like (Don't try this yourself unless you have training in handling high voltages):


image

 

Next, I drilled a hole in the side of the enclosure to allow the PIR sensor to "see" the outside world.

 

image

 

I thought it would be cool if the neo-pixel ring surrounded the opening for the PIR sensor.  So, I drilled holes on each side of the opening to run the wires.

 

image

 

I tested the fit of the PermaProto in the enclosure.  Everything was looking good at this point.  You'll notice here that I added wires with solder-less lugs to connect to the AC relay contacts.

 

image

 

I like the way things are looking.

 

image

 

However, when I went to add in the RPi/Sense-Hat/cable, there just wasn't enough room. 

 

image

 

At this point I've decided to go back to the idea of using the header with extra long pins to connect the sense-hat to the raspberry pi.  I ordered the connector plus a cable which "down-grades" the 40 pin RPi 2 connector to the original 26 pins.  Hopefully, I will be able to connect this cable on top of the sense-hat to run over to the PermaProto.  So, now I'm waiting for parts, again...


  • Sign in to reply

Top Comments

  • DAB
    DAB over 10 years ago +1
    Nice update. I am curious about why you put the light ring around the PIR sensor. Does the IR output of the LED's increase detection distance? DAB
  • DAB
    DAB over 10 years ago in reply to pettitda

    You might be surprised.

    Most of these LED's have an IR component.

    Now the fog might absorb a lot of the IR content, but it would be interesting to experiment with the PIR.

     

    DAB

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

    No, I don't think so.  I would tend to think that the LEDs would decrease the effectiveness of the PIR sensor if anything.  The purpose of the LEDs was to light up the fog and make it visible at night.  Charles' original design had Neopixel strips laid out along the ground.  I didn't want to do that since the strips might get stepped on.  So, I decided to go with the Neo-pixel rings.  Placing them on the box was convenient and I found it aesthetically pleasing to have them surround the PIR sensor opening since it was roughly the same size as the ring. 

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

    Nice update.

     

    I am curious about why you put the light ring around the PIR sensor.  Does the IR output of the LED's increase detection distance?

     

    DAB

    • Cancel
    • Vote Up +1 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 © 2025 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