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 Project basics are up(aka part 4 of my project assembly)
  • 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: Former Member
  • Date Created: 31 Oct 2015 5:46 AM Date Created
  • Views 437 views
  • Likes 0 likes
  • Comments 0 comments
  • raspberry_pi_projects
  • pumpkinpi2015
Related
Recommended

Project basics are up(aka part 4 of my project assembly)

Former Member
Former Member
31 Oct 2015

  I added startup for all the main pieces.  On both Pis, this meant adding a line to near the bottom of /etc/rc.local. The line goes just above the exit line you see at the bottom.  Here is what I added:

  sh /root/start_watching.sh &

 

I started the shell script running in the background.  The shell script waits 30 seconds, then mounts the samba share of the other Pi.  I start this script in the background so the main console stays ready for logins, if I were to plug a keyboard and monitor in.  On the Raspberry Pi 2 B, it then runs the python script that watches for files in /public and activates the display to show virtual fog.  On the Raspberry Pi B+, I start 2 python scripts in the background.  The first of those watches the PIR and notifies the 2 B when it sees movement.  The second script watches for new files in /public and lights up the NeoPixels when it finds a new file.  I can now power both systems up and with no interaction, itall works fine.  So, I assembled the pieces in the top of a box and I'll leave it running overnight. I'd like to have the spooky audio, so my first task for Saturday is to see if I can make or get an audio cable.  I'll add pictures of the assembled system on the next blog entry.  I need another USB cable to download the pictures.  This has been a fun little project so far and it is nice to see it running.

 

I am including all those files so you can look at them

  The files are named a little differt in the attachments than how they are on disk, so I will explain.

b2_start.sh - this is /root/start_watching.sh on the Raspberry Pi 2 B

bplus_start.sh - this is /root/start_watching on the Raspberry Pi B+

pir-trigger.py - this is the python script to watch the PIR module and notify the 2B

turn_on.py - this is the python module to turn on the NeoPixel stick and where the fog machine would be activated

turn_on_fog.py - this is the script to turn on the virtual fog on the Sense Hat

  • Sign in to reply
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