garage door transmitter circuit

Description: This wireless transmitter and receiver pair operate at 315Mhz. They can easily fit into a breadboard and work well with microcontrollers to create a very simple wireless data link. Since these are only transmitters, they will only work communicating data one-way, you would need two pairs (of different frequencies) to act as a transmitter/receiver pair. Note: These modules are indiscriminate and will receive a fair amount of noise.  Both the transmitter and receiver work at common frequencies and don’t have IDs. Therefore, a method of filtering this noise and pairing transmitter and receiver will be necessary. The example code below shows such an example for basic operation. Please refer to the example code and links below for ways to accomplish a robust wireless data link. Remote control switch, receiver module, motorcycles, automobile anti-theft products, home security products, electric doors, shutter doors, windows, remote control socket, remote control LED, remote audio remote control electric doors, garage door remote control, remote control retractable doors, remote volume gate, pan doors, remote control door opener, door closing device control system, remote control curtains, alarm host, alarm, remote control motorcycle remote control electric cars
, remote control MP3. 1. Product Model: MX-05V 2. Operating voltage: DC5V 3. Quiescent Current: 4mA 6. Size: 30 * 14 * 7mm Technical parameters of the transmitter module 1. Product Model: MX-FS-03V 2. Launch distance :20-200 meters (different voltage, different results) 3. Operating voltage :3.5-12V 4. Dimensions: 19 * 19mm 5. Operating mode: AM 6. Transfer rate: 4KB / S 7. Transmitting power: 10mW 8. Transmitting frequency: 315Mhz 9. An external antenna: 25cm ordinary multi-core or single-core line 10. Pinout from left → right: (DATA; In this example, receiver and transmitter modules are connected separately to two Arduino boards. The transmitter data pin is connected to Pin 12 of Arduino and the receiver data pin is connected to Pin 11 of Arduino. Connecting transmitter module to Arduino: See all the images on flickr Connecting receiver module to Arduino: See all the images on flickr Sketch:
The transmitter sends a string “Hello there” and the receiver receives it and displays on serial monitor. 1. Virtual wire- Arduino Library 2. Buy 315Mhz receiver and transmitter modules on www.buildcircuit.net BuildCircuit proudly recommendsEasyEDA for circuit and PCB design Schematic Drawing to PCB Production, Just Need One Toolgarage door height for 5th wheel Cheap PCB Prototype: 10 pcs 2 layers only $10, quick delivery, 100% E-testpella garage door installationWhen I was little, I used to push the garage door button from inside the garage and then run out the garage while it's closing... carefully jumping over the sensor so I don't trip the safety mechanism. solid wood doors bradford
It was easy back then and a little fun. But nowadays, not so much. There are times when I wish I had a way to close (and open) the garage door remotely and preferably with something I always have on me... my mobile phone! So this past Christmas, I looked into building something so I could use my smartphone as a garage door opener. I've read about the Arduino and Raspberry Pi platforms before that I believed would accomplish the task and, ultimately, I decided on the Raspberry Pi. The Arduino platform after some research and cost analysis would have cost more than the Raspberry Pi! That wasn't something I was expecting since the Raspberry Pi is more robust and a full-blown mini-Linux computer. The possibilities are really endless. A wifi Raspberry Pi connected to a 2-channel relay connected to my actual garage door remote allows me to open and close my garage door with just a browser on my smartphone. After only writing software for many years in web development, creating something that interacts with the real world was a special kind of excitement for me when I saw it work for the first time.
Below I'll go through the steps and the issues I ran into while working on this project. Below is a list of the parts I gathered together to get started. Prices will most likely not be same. Total cost: $63 since I had a few of the needed parts already. I followed this guide to setup the SD card with NOOBS and bootup the Pi for initial setup. Raspberry Pi Quick Start Guide Setting up the Pi is pretty easy. Just hookup the HDMI cable, usb keyboard and mouse, plug in the SD card prepared in step 2, and finally turn on the Pi by plugging in the micro-USB power supply. This should bootup NOOBS and step you through the process to install an OS. The one you want for this project is Raspbian. Complete the Raspbian setup and you should have a working Pi at the end. It's at this step that I encountered my first problem. I used the keyboard and mouse I had from my main PC rig, a Logitech G110 keyboard and a Logitech G9 mouse. After NOOBS booted up, I found I couldn't type or control the mouse.
The problem turned out to be the USB ports on the Pi doesn't provide enough power for the keyboard and mouse. You can get around this issue by using a powered USB hub. You can skip this step if you're going to leave the Pi connected with ethernet cable. In fact, I recommend skipping this step until the end to simplify things. I didn't want the Pi to be tethered by an ethernet cable so I proceeded to try and set it up with the USB wifi dongle. This turned out to be probably the hardest part of the project. I followed a bunch of guides I found but none of them worked for me. It's not that the dongle wasn't supported by Raspbian, but I couldn't get it to connect to my wireless router. After much headache and tinkering around, I finally fixed the problem. You can read about the details in my wifi setup guide.The new version of Raspbian includes a new version of a wifi manager that worked flawlessly for me and the above step wasn't necessary. Simply run the Raspbian GUI with startx then find the wifi manager icon in the upper-right corner and set it up for your wifi AP. Pretty straightforward with a GUI.
After using this setup for a few weeks, I found the Pi to be inaccessible after a period of inactivity. This turned out to be a power savings feature where the wifi component is turned off. I did the following to disable this feature: What makes the Raspberry Pi so interesting to me are the GPIO pins which allow the Pi to communicate and control other peripherals. I found this excellent guide to get a basic understanding of the GPIO. My first test with the pins was to simply connect a LED I had lying around and see if I could get it to light up. LEDs generally have 1 leg which is longer than the other. The longer leg should be the + (positive) connection. If the LED doesn't have a visible difference in the leg lengths, then you can look at the top of the LED and you should see 2 small pieces of metal. The smaller side is the + connection. Here's a good diagram. Start by connecting a jumper wire to GPIO pin 1 for the 3.3v power and another wire to the GND at pin 6.
This should light up the LED. Ok, admittedly, that's not terribly exciting. It's just a light. Next, unplug the jumper wire from pin 1 and connect it to pin 7 which is GPIO4. The LED should be unlit for now. To control the GPIO ports, there are a ton of different choices. Just google for Raspberry Pi GPIO but I started with this wonderful framework called WebIOPi. Follow the WebIOPi installation guide and run this: That should start the webiopi server on port 8000. You can then access the webiopi page in a browser at http://192.168.1.60:8000. Of course, replace 192.168.1.60 with the IP of your Pi. You should see a GPIO Header link on the main page. Click that link and you will be able to control the GPIO using a web UI which looks like the board header. Click the 'IN' box to the left of GPIO4 to toggle that to say 'OUT'. Then try clicking on the box to the right of GPIO4 with the number 7 in it. If everything's working then you should now be able to on/off the connected LED.
Toggling the LED on/off was super exciting for me. It was the first time I had built anything on a computer that could interact with the real world. The Internet of Things as they say. For better or worse, it's coming and probably sooner rather than later. Now it's time to replace the LED with the relay. Remove the LED from the jumper wires and reconnect the wires according to this drawing below. It was at this point that ran into my next problem. Every time I connected the relay and switched GPIO4 to 'OUT', the Raspberry Pi would crash and I'd have to unplug/reboot it. It took me awhile to figure out that the power supply I was using wasn't supplying enough power for everything. Apparently, powering the relay pushed it over the edge. The power supply I was using was from an old Motorola smartphone that was rated to only output 750ma. After I switched that out to another power supply I had lying around with 1850ma, I no longer had stability issues with the Pi. You can test your connections now by going back to the WebIOPi page and toggle GPIO4 on/off and you should be able to see a small light on the relay respond accordingly.
If you do, then that's a good sign. It means you are able to control the relay to open and complete a circuit. For this step, you can either run wires to the actual garage door opener button that's in your garage, or use a spare garage door remote. Since I planned on leaving the Pi indoors where I have easy access to it, I chose to hook it up to a remote. I pried open the remote casing and studied the circuit board a bit. The first thing I did was to test if I could activate the remote without actually pressing the button so I shorted these 2 points by touching them with a wire. I heard the sounds of the garage door creaking open. So, theoretically, I should be able to wire that to the relay and have the relay open/close the circuit. Boistered by this knowledge, I looked at how I could solder 2 wires to the circuit and noticed that the remote was gracious enough to leave some extra holes that runs in serial with the actual button. Then I soldered 2 wires to the remote and connected them to the left and middle connections on the relay like this below.
Now toggling GPIO4 in WebIOPi should actually open and close your actual garage door. You might notice when you're doing this that the garage door only activates when the signal from GPIO4 is off. The relay I bought, the Sainsmart 2-Channel Relay and if what I've read is correct, most other relays work like this. When the signal is ON, the relay is open which means the remote won't activate. When the signal is OFF, then the relay is closed and the circuit is complete which should activate the remote. Keep this bit of info in mind when we work with setting up the WebIOPi code later. ** UPDATE (2/17/15): Take a look at Node-GaragePi if you prefer Node.js to Python and how you can replace the battery in the garage remote. It is setup with this file structure below: Download and extract the GaragePi zip file to /home/pi/garagepi. Or you can also clone it from Github: WebIOPi by default is setup with a login and password. But I only plan on using this when I'm on my local wifi network so I opted to remove the password protection completely.