<div dir="auto">The breadboard is only proof out the concept.<br><br><div data-smartmail="gmail_signature">Bruce</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Mar 17, 2018, 8:23 PM Darcy Whyte, <<a href="mailto:darcy@inventorartist.com">darcy@inventorartist.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Not sure who's coming to the hack613 meetup tomorrow but I wouldn't be surprised if someone could help. I might be able to... <div><br></div><div>It's not clear what you want though. You mean making the circuit on a breadboard?</div></div><div class="gmail_extra"><br clear="all"><div><div class="m_2058217825932837214gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><div><div><br></div><div><div>--</div><div>Darcy Whyte</div><div><br></div><div>Art+ <a href="http://inventorartist.com/" target="_blank" rel="noreferrer">inventorArtist.com</a> | Makerspace <a href="http://hack613.com" target="_blank" rel="noreferrer">hack613.com</a> | Aviation <a href="http://rubber-power.com/" target="_blank" rel="noreferrer">rubber-power.com</a></div><div>Contact: <a href="mailto:darcy@inventorArtist.com" target="_blank" rel="noreferrer"><b>darcy@inventorArtist.com</b></a> | 613-563-3634 by appointment (no text)</div></div></div><div><br></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sat, Mar 17, 2018 at 3:10 PM, Bruce Harding <span dir="ltr"><<a href="mailto:bsharding@rogers.com" target="_blank" rel="noreferrer">bsharding@rogers.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br>I'm trying to get the
pinning right for a project where a PIR triggers a LED strip to turn
on. I'm having real trouble getting the pinning on the breadboard
right. If someone is willing to take a look at it I'd be grateful. Beer
or coffee on me.<br><br></div>I'm using:<br><br></div>12v 3A power supply<br></div>PIR<br></div>IRF540 Mosfet<br></div>PN2222 Transistor<br></div>1m Warm/White LED Strip<br></div>Arduino Uno<br clear="all"><div><div><div><div><div><div><div><div><br><br></div><div>Code:<br><br>//constants<br>const int ledPin = 5;<br>const int sensorPin = 4;<br>const long stayOnPeriod = 900; // length of time to stay on (in milliseconds)<br><br>//variables<br>unsigned long turnOffTime = millis(); //Start with the led turned off<br><br>void setup() {<br> pinMode(ledPin, OUTPUT);<br> pinMode(sensorPin, INPUT);<br>}<br><br>void loop() {<br> // check if the sensor is detecting then increase the time to stay on.<br> if (digitalRead(sensorPin) == HIGH)<br> {<br> turnOffTime = millis() + stayOnPeriod;<br> }<br> <br> if (turnOffTime > millis())<br> {<br> digitalWrite(ledPin, HIGH);<br> }<br> else<br> {<br> digitalWrite(ledPin, LOW);<br> }<br>}</div></div></div></div></div></div></div></div><span class="m_2058217825932837214HOEnZb"><font color="#888888"><br clear="all"><br>-- <br><div class="m_2058217825932837214m_6499928494545891683gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span>====<br>bruce<div><a href="http://faintfuzzies.ca" target="_blank" rel="noreferrer">faintfuzzies.ca</a></div></span></div></div>
</font></span></div>
<br>_______________________________________________<br>
Lab mailing list<br>
1. subscribe <a href="https://artengine.ca/mailman/listinfo/lab" rel="noreferrer noreferrer" target="_blank">https://artengine.ca/mailman/listinfo/lab</a><br>
2. then email <a href="mailto:Lab@artengine.ca" target="_blank" rel="noreferrer">Lab@artengine.ca</a> to send your message to the list<br></blockquote></div><br></div>
</blockquote></div>