So its been a long time since I have messed with any electronics. I've built a few Pis, installed raspbian, all good on that front. Got them to do what I want. but I want to expand outward and start messing with things and make some smart home stuff.
My first project is gonna be lights through openHAB, pretty much got that figured out, just gotta get the hardware and assemble it. Its amazing how long it takes to ship something across an ocean.
But this about the second project. I live in an RV, we have four vents in the roof that we have to open manually with a turning crank. Not too difficult, but I want to automate it. I ordered a rain detector, so eventually I'll have a Pi setup with that to work as a weather center and display the outside and inside temperature, maybe some other stuff, I don't know yet what I'm all going to do with that one. But the main thing is the rain detection. I want to set it up so I have a Pi that can send a signal to motors and have them spin clockwise or counterclockwise, depending on if they need to open or close.
I think I found motors that will work and they only require .28amps. I assume I can connect them to a Pi through the GPIO pins and when they have power, they spin. If its possible, I'd like to do it all with one Pi since that's cheaper and I only have to set on up.
I read through a tutorial on the GPIO, and I'm still confused. Theres 2 5v pins and one 3.3v. The motors I'm looking at run at 1.5v to 12v. I assume they spin faster with more voltage, but the description page is a bit vague. I also assume that if the voltage is going one way it turns CW, the other way its CCW. I'm not positive though.
Is it possible to reverse the voltage over the pins to the motors? Or would I have to have one Pi that sends the power and have a second that is connected in reverse to spin them the other way? And is it possible to send that many amps to all four motors at once? Total amperage would be just a hair over 1amp. If I do need to use two Pis, on CW, one CCW, I'd have to figure out some way to prevent power from going back into the other Pi too, since the wires would be on the same contacts. I think a diode at the pins would this, but like I said, its been awhiel. And am I getting in over my head and trying to do something that isn't doable?