SALES INQUIRIES: 1 (888) 767-9864

Arduino with 1Sheeld and 4 Relay Board for Shop Door Opener and Light Toggle :: Customer Project

Using wireless technologies with Arduino has never been easier.  Especially with hardware and software provided by 1Sheeld.  A customer of our training course, Ted Thisius, had put together this neat project using 1Sheeld and we wanted to share it with you.

He has connected his shops garage door and his shop lights, with an Arduino UNO, a 1Sheeld, and a 4 relay shield so that via an app on his phone, he can remotely open and close his shop door and toggle his shop lights – it’s pretty cool!

How does your project work?

It works well!  The 1Sheeld App can be loaded on any smartphone/tablet.  I used it to control my shop door opener and lights.

The 1sheeld comes with a bunch of different app interfaces, I used the one called “GamePad”.

1sheeld app open on iphone, with helper text describing each button function


Essentially, what you do is connect the buttons on the app, with the inputs on the 1sheeld that is connected to an Arduino.

So I just mapped out the different buttons to my use case.

  • The upper buttons are used for the door opener.
    • Up and down buttons start UP or Down motion.
    • Either side key STOPS motion.
  • The lower colored buttons are used for the lights.

Then I used different Arduino pins to control the relays on a relay shield – these are what do the actual grunt work:

  • Arduino pin 10 for relay 1 (toggle light contactor)
  • Arduino pin 11 for relay 2 is used to STOP the door
  • Arduino pin 12 for relay 3 is for the DOWN pulse
  • Arduino pin 13 for relay 4 is for the UP pulse

1sheeld, iPhone, Arduino, Relay Shield, and 9 volt battery on desk. Hookup wire connects 1sheeld to relay shield

Any of the blue, green, orange or red buttons will toggle the shop lights to the opposite condition.

The Arduino sketch defines pins 11-13 as OUTPUTs which are physically connected to relays 2-4.  The relays are active LOW. So the sketch sets 11 as LOW and 12 & 13 HIGH as this is the “normal state”. (This is the usual state of the relays. UP and DOWN not active but STOP completes its loop.)

The Arduino sketch checks for the following conditions:

  • If the left button (really UP) has been pushed and if so activates 13 HIGH which stays HIGH for 1 second until normal starting conditions are returned when loop starts over.
  • If the right button (really DOWN) has been pushed and if so activates 12 HIGH which stays High for 1 second until normal starting conditions are returned when loop starts over.
  • If either of the side buttons (really left or right) have been pushed. If either has been pushed, the output goes HIGH which allows the relay to relax and break the STOP circuit for 1 second so that the relay stops the opener.
  • If any of the colored buttons have been pushed and if so changes the output state to the opposite. Thus any of the colored buttons can change the lights from On to OFF or OFF to On.

What type of Arduino board, Arduino clone, or Arduino compatible board does your project use?

I used an Arduino UNO but most other variants should work fine.

What Arduino shields did you use?

The shield is called 1Sheeld. I also used a 4 Relay Shield.

How do you power your project?

12V DC Power Supply

What was your biggest struggle as you worked through this project?

Learning how the original door opener control box worked so the Arduino controlled relays could work with it.

Did the project end up as you expected?

Yes, it works well. Any Smartphone with Bluetooth can control the door and lights. This is cheaper and more convenient than a dedicated system with lots of remote fobs and batteries.

Looking back on this project, what can you say you have learned about programming and/or electronics through the creation process?

I learned how 3 button door opener control boxes work as well as 3-way switches for lights.

The Arduino sketch was a modification of the example sketch provided by 1Sheeld.

About Ted:

older gentleman with thumb upTed is a retired math teacher, Ag electronic technician, and almost retired grain farmer (Ted’s a busy guy!)

He has been into electronics for over 40 years and did some Fortran programming in college about 50 years ago.  We’re lucky at PEA to have him as a customer –  thanks for submitting this cool project Ted!

1 Comment

  1. Avatar Tony Verduga on June 26, 2019 at 8:06 pm

    Ted is an inspiring guy. He’s a fellow member of a great Facebook group. His posts and comments are encouraging as well as challenging. Well done Sir.

Leave a Comment