Well first I would do some testing to make sure you actuator does as you expect, now I can't remember which gpio you were going to use to drive the relays to you will have to add them to this little test program were indicated. import RPi.GPIO as GPIO import time fwr = ? # you need to enter the gpi...
That is also a option indeed. And if the lock has a spring you only need to close it for real. And to open it doesn't really matter how far the actuator goes back. As long it is more than 3 inch. Personally I would use a sensor to detect if it is locked or not. And not really on a time based system...
This is my current circuit build. Also it might be best for my actuator to extend completely, the original idea was to fasten a bolt into the hole at the end of the actuator but would honestly be pointless.
Quote so. It has been flagged for attention by a moderator. Duplicate thread has been deleted, duplicates are not allowed here. Hi mahjongg. Would it have not been better to merge the 2 threads or at lease just lock the older one. all the information about the hardware in use has now been lost and ...
If you have the pi connected to a relay board then you must know which gpio you intend to use to drive the relays, we would need to know much more about the operation of the actuator before we could help with the code. for example does the actuator just drive when power is applied does the actuator...
What have you tried so far? How is your linear actuator connected to the Pi? You'll need to modify this function # Send a signal to the relay def OpenGarageDoor(): try: GPIO.output(GPIO_PIN, GPIO.HIGH) time.sleep(0.5) GPIO.output(GPIO_PIN, GPIO.LOW) except: print "Error inside function OpenGarageDo...
I have the raspberry pi connected to a gpio board and a 4 channel relay. I have not set any ideal gpio pins for the actuator function. Here is a link to all the parts in using 6" linear actuator - https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.com%2Fulk%2Fitm%2F112887896341 Gpio expa...
import RPi.GPIO as GPIO import MySQLdb import datetime import time import os import smtplib from ftplib import FTP from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from email.MIMEImage import MIMEImage from contextlib import closing from twilio.rest import TwilioRes...