Step 6: Install Into Project Box

Drill a small hole in the end of the project box so that you can run the wires out.  After that, *carefully* run the red and black wires through the hole and add the opener, wires, relay, and capacitor / resistor pack to the box.  It's a tight fit, but I was able to get it all in there snugly.  Be careful not to break any of the wires or solder joints during this step (especially easy to do if using solid-core wire).

When done, add the cover to the project box and you are ready for installation in the motorcycle.
I love this idea! However, since I am experienced at programming microcontrollers, I am going to use an AtTiny85 and a LM2937 3.3v regulator. This will allow me to adjust the button press time with code and power the remote of the same 3.3v related supply. I haven't decided if I want to use a relay for tapping the signal from the high beam though.
<p>I like the adafruit Trinket at $6.95. It can tolerate 12V battery input (plus a TVS for safety in a harsh environment) and if you went so far to barnacle two or three components on it (a cap, zener, diode, and two resistors), it could stay alive long enough to look for pulse sequence inputs.</p><p>Not sure if the on-board 3.3V regulator has enough juice to power the opener.</p>
<p>I have successfully done two versions with the Adafruit Trinket without much trouble. The first is a two-wire version that simply requires the high-beam to be on for &gt; 2 seconds, and is kind of overkill compared to the analog method.</p><p>The second uses three wires and looks for three high-beam pulses within 2 seconds. It adds the third wire and a single schottky diode.</p><p>Both units are tiny and splice easily into the H4 lamp connector, dropping into the bucket. Time to assemble, like always, depends on how nice a job you care to make of it.</p><p>Time permitting I will post an alternate instructable and the code.</p>
<p>Actually, I can code the setup() function to &quot;close&quot; an IO pin (I haven't yet checked to see if it needs to be HIGH or LOW), wait for 3 seconds, then &quot;open&quot; it. The loop() function can just sleep forever. You don't need a relay or a transistor. Just sending power to the microcontroller is the signal.</p>
<p>Hi, I realize this is 2 years old, but I noticed one of the resistors is turned opposite of the other two. Was this a mistake?</p><p>I'm not too smart with this stuff but I can follow directions :-) Just checking to see if direction matters (I thought it did).</p><p>Thanks</p>
<p>Good catch, I never noticed that before. Had I been paying better attention, I'd have wired them facing the same direction. Ultimately, however, it works either way. When you build yours, point them all the same direction and make it look cleaner than mine ;)</p>
<p>It doesn't matter which direction resistors are oriented, they are polarity independent.</p>
The circuit at http://www.the12volt.com/relays/page5.asp#ctm shows a diode between 85 and 86. Is there a reason you left it out? <br> <br>I found the same setup on a forum (not as well presented as yours) and someone there mentioned that the remote activated when they switched to the high beam on and again when they switched back to the low. IIRC, someone else replied that theirs did that too until they added the diode. <br> <br>Also, is there a reason for using 3 x 1K resistor in parallel instead of the single 1K resistor in the original circuit? And why did you use 3 x 1K instead of a 330 ohm resisistor? <br> <br>BTW: I am intending to build one of these myself tomorrow. I have a Genie opener and the remote runs on a 12V battery so I will be able to power mine from the bike. As a bonus, I think I can fit the relay &amp; other components in the space where the battery used to go so I won't need a project box. <br> <br>Thanks in advance, <br>Bob
<p>I plan to replace the 12V battery in the remote with a wired connection to the motorcycle battery (it gets cold here, and I figure the small remote battery would not last past winter). Is there a concern with wiring it directly to bike batter, or is a fuse and direct connection sufficient?</p><p>Also, would a 50 Volt 10 Amp Schottky Diode be sufficient to use here?</p>
<p>I know what you mean about cold. My sidecar outfit is my only transportation and it gets down to at least -30c here in winter. </p><p>I powered my high beam circuit from the bike but a vehicle's charging system runs at 14V, not the 12V (it has to be higher in order to charge the battery) so I put a green LED in series with the opener to compensate. I have attached the circuit I built (very similar to what is presented in this Instructable).</p><p>As I said elsewhere in these comments, I found it to be less reliable than I liked so I changed to a hard wired button. I also got a newer remote that runs on a 3V coin battery, which has lasted over a year so far.</p><p>The diode does not need to be very high spec. An ordinary 1N4001 will do and you can get 100 of them for under $1.50 on eBay.</p>
Bob, <br> <br>I'm not familiar with that particular circuit - mine was from a collection of notes I made while researching the general concept of building momentary switches from a constant feed gathered from a handful of different sources. So, could the diode be added, could you use a single resistor? Most likely - this is just how I chose to build mine. Feel free to try something different and if you find something that works better, please add it to the comments for the benefit of any others who browse this project. <br> <br>As for the remote activating when switching on and off - yes, the diode should resolve that issue. The other resolution, I found, is to simply swap the wires when attaching to the hi-beam circuit. I performed this upgrade on two bikes and on one of them, I accidentally had them backwards and this is exactly what happened. When I performed the second one (the one documented here), it works perfectly as desired. I went back and switched the wires on the first one I did and now it works great as well. <br> <br>My opener uses a 3V supply, so I did not wire it into the battery (yet). I was thinking of coming back to build a circuit to step down to 3V, but for as infrequently as I'll need to change it, I probably won't ever get around to it. If I'd have had one that used a 12V supply, I definitely would have wired it in though. <br> <br>We recently upgraded our headlights to LED and our project box no longer fit behind. As a work around, I pulled them out, wrapped them with a protective foam sheet and sealed the open end with tape. It's not as pretty as the above design, but it now fits again and still works great.
I did some experimentation and some more research. <br> <br>When voltage is applied current flows through the relay's coil and the capacitor, charging the capacitor. When the capacitor is fully charged no more current flows so the relay turns off. When the voltage is removed the capacitor discharges through the resistor so that when voltage is applied again the capacitor will charge again. <br> <br>The value of the resistor determines how fast the capacitor discharges when you turn the high beam off, and thus the the time you need to wait if you want to activate the remote again. From my experimentation, 3.3K ohms (the same as 3 x 10K in parallel)(330 ohms as I originally said was a typo) turns out to be just about optimum, allowing the circuit to be triggered again in a couple of seconds while 10K takes almost 10 seconds and if the value is reduced much below 3.3K enough current flows through it to activate the relay whether the capacitor is charging or not. <br> <br>I have a feeling that we both found this circuit at the same place (I still say your presentation is easier to follow) and the person who posted it bought the same back of 5 resistors that you did and then did the same experiment I did but with parallel combinations of 10K resistors instead of various values of single resistors. The end result is the same. <br> <br>The diode is there to protect the relay and other electronics from reverse polarity spikes which occur when the voltage is removed and the magnetic field in the relay's coil collapses. It does not have any effect on how the circuit works (I did not experience the remote activation when the high beam was switched off), but I think I will include it in my build.
Hey Sidecar Bob. I'm hoping you can help. <br>I currently have this setup using the 3x10K resistors and I find it's just not quite long enough of a press for my system. It's about 1 second or so and I've rather have around 2-3 seconds. <br>Any ideas what configuration of resistors I would need? <br>Thanks for any help you can provide
By &quot;not quite long enough of a press&quot; do you mean that the trigger duration (how long the remote is turned on) is too short?<br> <br> As I explained before, the resistor is only there to allow the capacitor to discharge when the power is removed from the circuit. Changing it will only affect how soon you can trigger the circuit a second time.<br> <br> To increase the trigger duration you need to increase the value of the capacitor (a larger value capacitor will take longer to fully charge so the relay will be turned on longer). I didn't experiment with that when I was building mine but If I wanted to make the remote stay on that long I would start by trying a 5000Mf capacitor and see if that helps.<br> <br> BTW: I found this setup to be less reliable than I would have liked. For various reasons I decided to replace the handlebar switches on my 30 year old Honda with modern Royal Enfield ones. The Enfield switches have a button to flash the high beam while passing (not required in North America and I find it easier to use the high beam switch for that anyway) so I wired that switch directly to the remote. This is even easier to use and extremely reliable.
Ah, gotcha. Thanks for the explanation. Clears up my confusion. <br>I might just end up switching this to an independent button and not worry about the capacitor/resistors anymore, if I can find a button that will mount up on the handlebars. <br>Thanks for the help :)
<p>Very cool idea. Have you see the $30 iHued cable? It turns an old absolute android phone into a world-wide internet garage door opener + it uses the camera on the phone so you can watch it open/close in real time. Pretty cool, here check out: ★<a href="http://www.ihued.com/" rel="nofollow">http://www.iHued.com</a>★</p>
<p>I cannot find this relay. Radio shack no longer carries it. Are there any other variations or relay sizes that would work? </p>
If you do a Google search for &quot;12v 10a spdt relay&quot; there are a number of options under the &quot;shopping&quot; category at the top of the results page. Looks like a lot of options on eBay for just a few bucks. If you end up buying one at an online store, please post back to this thread and help out the next guy looking for one.<br><br>Thanks!
I appreciate the info! I'm trying to find someone who does <a href="http://www.smokeysgaragedoor.com/phoenix-garage-door-repair-services.html" rel="nofollow">garage door repair in Glendale</a>. But I'm gonna see if they can do something like this. Thanks for sharing!
Thank you for sharing these instructions on how to install a garage door opener. I don't know if I need a new garage opener or a new garage itself. Do you know of a <a href="http://planooverhead.com/" rel="nofollow">garage door repair shop in richardson tx</a>? Thank you for your help!
This is an ingenious idea. I'm definitely going to use this. I run a small local <a href="http://planooverhead.com" rel="nofollow">garage door repair business in Richardson TX</a> and a few of my clients have asked me about this but I hadn't a clue how to do it. Thanks!
I really want to try this out. After I am finished with my <a href="http://www.oleandlenas.com/garage-door-repair-service.html" rel="nofollow">garage door repairs</a>, I will start building this. What a cool idea! Thanks!
That is a very interesting idea. Thanks for the article. I know that if someone wants to get really creative with their garage doors, they don't need to go any further than <a href="http://www.oleandlenas.com/garage-doors.html" rel="nofollow">garage doors in Minneapolis</a>. Thanks again for the great post.
Wow, this is quite intense. This is way more than just a simple <a href="http://www.stampededoors.com" rel="nofollow">garage door repair</a>. I have never really heard of this before. Do lots of people who have motorcycles do this? Or is this just a cool little extra thing? Thanks for sharing it though! I know my husband would just love this!
Hi bkrabach, Nice work and good instructable, congratulations.<br> <br> So, if I understood correctly, you're using the <strong>momentary</strong> hi-beam switch to activate the opener, right?<br> <br> I did the same install in my bike but, as I was using an independent button/switch in my DIY dash, I just run the switched power directly to the opener (no capacitor, resistor, relay) and a couple of wires from the opener activate contacts to said button/switch. Done.<br> <br> Your solution is great, because it avoids the use of extra switches, other than the ones already in the bike... Nice work.<br> <br> Cheers
Daedalus62 &gt; The hi-beam switch itself is momentary, but the circuit that it turns on (and that I've attached to) is a constant feed. That is what the capacitor and resistors take care of (See: http://www.the12volt.com/relays/page5.asp#ctm). <br> <br>Without that element, the remote button is constantly &quot;pushed&quot;, draining the battery on the remote non-stop whenever the hi-beam is on. <br> <br>With this solution, there is no power being supplied to the remote, it's simply closing the contact points on the button (via the relay). This way, it does not matter that the bike circuit is supplying 12-volts and the remote operates at 3-volts. <br> <br>Thanks for the feedback!
What a great idea. The simplest ones are often the best!!
I believe you hooked the resistors up in parallel and not in series. Nice instructable!
Mr. Jaderman &gt; Thank you for catching that - yes, I meant that they were wired in parallel (per the picture).

About This Instructable


106 favorites


More by bkrabach: Installing a Garage Door Opener Wired to Motorcycle Hi-Beam
Add instructable to: