SacArea-BayDeltaProjects / CodePractice

Testing GitHub functionality with small programs
0 stars 1 forks source link

Turn Device on/off with Relay #5

Open violetteta8 opened 6 years ago

violetteta8 commented 6 years ago

Again, this is useful for learning some functionality of the dataloggers. By using a relay in the system, (like in our actual stations), we can control a lot of functions and devices. Let's work on coming up with a way (again, there's never one way) to turn a device (or multiple, if you're feeling froggy) on and off using a relay. The device can be AC or DC powered. If it's AC, we'll need to modify an extension cord (or make a new one), but that's no problem. Devices could be fans (perhaps applicable to the current program given we are collecting temp data), other lights, charging ports, whatever you'd like. @cchabot, this is what we worked on at my house with Mushu's heat lamp, hopefully some of that stuck with you(?) if not, no worries. @aconlen, if you need some guidance on how relays work and such, no problem at all.

violetteta8 commented 6 years ago

One of you take this one. Decide amongst yourselves by roshambo-ing. If you need some guidance, let me know.

cchabot commented 6 years ago

I'll give this one a go.

aconlen commented 6 years ago

Success!