Doorbell with the Edison and email

This is a doorbell project with the Intel Edison. This can also be wired into the actual doorbell circuit in your house, and later adding a option to email you when someone rings the doorbell. This instructable assumes that you have a Edison with the Grove platform. We used Ubilinux on the Edison. The C code is included with this instructable and may be used freely, but a understanding of C would help.

Required parts:

  • Intel Edison on the Arduino with Ubilinux
  • Grove shield for the Edison
  • Grove Buzer
  • Grove Switch
  • Optional: length of Cat5 cable or any cable that has 3 or more wires in it
  • Optional: SPDT relay

    Files

  • pins.h
  • mail.h
  • doorbell.c

    Step 1: Setup the Edison

    Doorbell with the Edison and email
    Doorbell with the Edison and email

    Assemble Edison with the Grove board. Ubilinux was used with the MRAA library installed. Its unknown if it would work with other distributions. The Edison was accessed through SSH.

  • The buzzer was placed on D5
  • The switch is placed on D8

    Optionally a relay may be wired in place of the switch, where the center is tied to the data pin, and the poles are tied to VCC and Ground.

    Sendmail needs to be installed. This works with Ubilinux, but not the original yacto.

    apt-get install sendmail

    Step 2: Code

    Copy the doorbell.c, pins.h, and mail.h files on to the Edison. The pins.h file is our implementation of the GPIO IO addressing. The mail.h file for sending mail messages, and must be edited with your email that you would like to receive your notice.

    compile this with:

    g++ -lmraa doorbell.c -o doorbell

    The "-lmraa" links the MRAA library so compiler can find the correct library.

    Doorbell with the Edison and email
    doorbell.c745 bytes
    Doorbell with the Edison and email
    pins.h2 KB
    Doorbell with the Edison and email
    mail.h841 bytes

    Step 3: Running the program

    Once the code is compiled (shouldn't take too long, its less then 300 lines), then the program can be ran with:

    ./doorbell

    Once running, press the switch. The buzzer will pulse, and the LED with flash. You will receive a email, once per press.

  •  
     

    Tag cloud

    make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel