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
1 Meter of Pi
  • Challenges & Projects
  • Design Challenges
  • 1 Meter of Pi
  • More
  • Cancel
1 Meter of Pi
Blog 1 Meter Of Pi Blog #8 - ALMOST DONE!
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: hugohu
  • Date Created: 29 Dec 2020 11:15 PM Date Created
  • Views 392 views
  • Likes 3 likes
  • Comments 0 comments
Related
Recommended

1 Meter Of Pi Blog #8 - ALMOST DONE!

hugohu
hugohu
29 Dec 2020

Almost done with assembly!

 

Here:

 

image

Front view, powered off.

 

image

imageimage

 

Power structure:

 

There are two 110V AC plugs required. One is a cable extender to power pi and arduino, and one for the pump.

 

I figured it might be a good idea for manual power cut to the pump.

 

As you can see on one of the later images, the Pi is booted with the python script running.

 

Here's how you can set it up, to run the script upon boot.

 

We'll using something called crontab.

 

sudo crontab -e

 

You can use it without sudo as well, but you will not be able to run sudo-level scripts.

 

It may ask you to select a text editor. Select Nano, if prompted.

 

Now, after a file opens:

 

@reboot python3 /home/pi/myscript.py

 

This is the default case.

 

@reboot must be added so it is launched upon boot(or reboot), python3 is for interpreter, and the rest is the filename. Be sure to change to your file's actual directory.

 

I don't have perfect memory of where the file is located. Looking back at Pimoroni docs, (https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-enviro-plus )

 

It seems to be

 

/home/pi/enviroplus-python/examples/weather-and-light.py

 

I think.

 

*Disclaimer: At this time I am not accepting lawsuits, please use ls command to help guide you.*

 

Mhm, so it should be

 

@reboot python3 /home/pi/enviroplus-python/examples/weather-and-light.py

 

So what's next?

 

Lightning and ventilation.

 

I'm figuring out ventilation. I'm trying to find an old fan, and I ordered 2 fan guards that will arrive tomorrow.

 

Lightning? I was originally making a light board but I realized copper tape could not quite provide good conduction for 50 LEDs. So I'll be using a LED strip.

 

That I won in a giveaway. From somewhere.

 

*smiles*

 

USPS says it will be here by the 2nd.

 

I don't believe USPS.

 

image

 

I was going to use a buck boost but the coronavirus delays shipments domestically and internationally so I am in a *tough* situation with little parts.

 

(I was due for a part replenishment 6 months ago!)

 

*grimaces*

  • 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