Tell us about yourself!

Complete Your Profile
  • Home Security Email Alert System Using Raspberry Pi

    Made it work with Raspberry Pi Camera.Here is the code .import RPi.GPIO as GPIOimport timeimport numpy as npimport cv2from datetime import datetimeimport osimport smtplibimport picamerafrom email.MIMEMultipart import MIMEMultipartfrom email.MIMEBase import MIMEBasefrom email.MIMEText import MIMETextfrom email import Encodersgmail_user = "abc@gmail.com" #Sender email addressgmail_pwd = "12345" #Sender email passwordto = "123@gmail.com" #Receiver email addresssubject = "Security Breach"text = "There is some activity in your home."sensor = 4GPIO.setmode(GPIO.BCM)GPIO.setup(sensor, GPIO.IN, GPIO.PUD_DOWN)previous_state = Falsecurrent_state = Falsewhile True: previous_state = current_state current_state = GPIO.input(sensor...

    see more »

    Made it work with Raspberry Pi Camera.Here is the code .import RPi.GPIO as GPIOimport timeimport numpy as npimport cv2from datetime import datetimeimport osimport smtplibimport picamerafrom email.MIMEMultipart import MIMEMultipartfrom email.MIMEBase import MIMEBasefrom email.MIMEText import MIMETextfrom email import Encodersgmail_user = "abc@gmail.com" #Sender email addressgmail_pwd = "12345" #Sender email passwordto = "123@gmail.com" #Receiver email addresssubject = "Security Breach"text = "There is some activity in your home."sensor = 4GPIO.setmode(GPIO.BCM)GPIO.setup(sensor, GPIO.IN, GPIO.PUD_DOWN)previous_state = Falsecurrent_state = Falsewhile True: previous_state = current_state current_state = GPIO.input(sensor) if current_state != previous_state: new_state = "HIGH" if current_state else "LOW" print("GPIO pin %s is %s" % (sensor, new_state)) if current_state: camera = picamera.PiCamera() picname = datetime.now().strftime("%y-%m-%d-%H-%M") picname1 = camera.capture(picname+'.jpg') print "Saving Photo" print "Sending email" attach = (picname+'.jpg') msg = MIMEMultipart() msg['From'] = gmail_user msg['To'] = to msg['Subject'] = subject msg.attach(MIMEText(text)) part = MIMEBase('application', 'octet-stream') part.set_payload(open(attach, 'rb').read()) Encoders.encode_base64(part) part.add_header('Content-Disposition', 'attachment; filename="%s"' % os.path.basename(attach)) msg.attach(part) mailServer = smtplib.SMTP("smtp.gmail.com", 587) mailServer.ehlo() mailServer.starttls() mailServer.ehlo() mailServer.login(gmail_user, gmail_pwd) mailServer.sendmail(gmail_user, to, msg.as_string()) # Should be mailServer.quit(), but that crashes... mailServer.close() print "Email Sent" os.remove(attach) print "Picture removed from saved location" camera.close() time.sleep(3)

    View Instructable »
  • Home Security Email Alert System Using Raspberry Pi

    Hi, Even i am getting the same error. Did you find a solution for this ?

    View Instructable »
  • MFRC522 RFID Reader Interfaced With NodeMCU

    I have tested the code & it works. The problem was with the connection of SDA, RST. The pin configuration mentioned in the code and the circuit are different, maybe that's why it's not working for most of you all. To make this project work : Download the RFID_Access.ino from above.Upload the code. Connection of RFID TO NODEMCU. Conenct SDA(SS) to D2Connect RST(FLASH ) to D1 Hope this helps.

    View Instructable »
  • Kinect controls Arduino wired Servos using Visual Basic 2010

    Can any one send me the file KinectForWindowsSDKQuickstarts.zip my email Id bboiarjun@gmail.com

    View Instructable »