Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Lastly hit “Save” and upload the file to the Builder Base that is connected to the IR Remote.

...

Build the App

...

There are now two ways to get to your final app. One is to simply download the app in the resource section here with instructions and comments on how to build the application you need for your project or you can download the app in your Q-Server library.

Let’s start by naming our application.

...

First we bring in four Analog In and four Text objects.

...

The Text objects will allow us to read the Analog In values that are given to the system. By that we can determine which button is which. Connect one Analog In with one Text object and name them together by the Rows we made before.

...

Save the app and map it. Simply for Row 1 choose Row 1 for the hardware and so on.

...

Hit “Save + Run” once you finished and then open the app in the dashboard.

...

As you can see we have each text interface object here with the four rows we create before and the value next to it. So if we press the first button of the red row the analog value should change.

...

The value changed. The value will be different for each button in each row and overall. So if we press the first button of the yellow row we will get a another analog value.

...

Now if you press the second button on row one, the value should be lower than 2735.

...

Now write the value down for each button and row. Our values can be seen in the following table.

BTN 1

BTN 2

BTN 3

Row 1

2729

2006

1262

Row 2

2736

2001

1260

Row 3

2729

2006

1258

Row 4

2729

2007

1259

When you have all the values go back to your apps and click on the Edit button of your app.

Delete the text objects because we have all the necessary values now. We need three Number Between objects for each row. One will be used for one button. The object will check a certain threshold since the button gives values like 2739, 2730 or 2742. Via this object we can then determine which button is pressed in the row.

...

Name the different Number Between objects and also activate the trigger for each value port so the Number Between object will be triggered when the Analog In objects sends a value.

...

For the threshold we use +- 200 for each button. So for the first set the Min value to 2500 and the Max value to 2900. Do this with all the other Number Between objects as well.

So once you distinguished each button on each row of the IR Remote we gonna test our app. For the test we will need 12 Switch interface objects and name them accordingly to their connected Number Between object.

...

Save your app and open the dashboard again. The app should still be mapped in the right way. We now see all our Switches with the corresponding button.

...

Pressing the first button of the red row should activate the first switch.

...

Now that you know how to determine each button and row you can attach other objects to the Number Between objects and then they will trigger those following objects and actions.

...

Resources

App & Firmware

View file
nameIR Remote DIY Kit App.json

View file
nameIR Remote DIY Kit Firmware.json

...