(08-15-2016, 06:08 PM)vigor Wrote: Any leads how to integrate Pine64 with a relay switch, to turn things on and off from a script ? Linux version is fine, no Android required.
I would need both wiring diagrams and software, any leads appreciated.
Looking to automate a thing in garage.
As I recall from programming on Arduino, relays are super simple just require a GPIO pin to be set to high or low and the relay responds accordingly. I think that the first question that you need to ask is how to control a GPIO pin on the Pine64. I have not done this, but I am sure that many have and so I would start by searching the forums on that.
Regarding the wiring, as I recall, it needs ground at GPIO pin and power. It is really quite simple to wire and there are many examples on the Internet.
Update:
I am not sure what language you are using, but here is a good thread talking about a Python library. http://forum.pine64.org/showthread.php?tid=723