"I've not used a Raspberry Pi before - any advice or suggestions?"

My advice is to use a micro controller instead. A Wemos D1, ESP8266 NodeMCU etc. Since this project is very specific, there's no need to have a full blown computer OS running on the device.

I spent numerous years writing software for the Raspberry Pi (RPi::WiringPi), and several years developing automation devices using Arduino and other such micro controllers. For projects that require back-end processing, the Pi is definitely the way to go, but for things such as the task you want to perform, a Pi is overkill, and there are a lot more software aspects that can break and fail.

With all that said, controlling a relay using my software is very simplistic. Have a look at the comprehensive documentation, and feel free to ask any questions that you might have. The FAQ/Tutorial page is a good place to start.

My entire vast indoor grow rooms used to be controlled using a Pi and my software, until it got too complex and I converted it over to using the Wemos D1 minis I mentioned above. They cost me $10 for five of them, and they have wifi and bluetooth built in.


In reply to Re: Controlling USB on Raspberry Pi by stevieb
in thread Controlling USB on Raspberry Pi by Bod

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.