Versions Compared

Key

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

...

If your IR Remote has a different layout of the connectors you can’t use our firmware because the relation is through the button layout, its color and the position of it.

Projects

...

Multiplexing

...

This DIY Kit uses multiplexing technology. Multiplexing is a method by which multiple analog or digital signals are combined into one signal over a shared medium. The idea behind this is to reduce the amount of connections to a receiver by combining several signals at several distinct value ranges into a single medium.

...

In the case of the IR Remote, multiplexing is used to distinguish a series of push buttons based on the analog value that is received. So instead of having a single GPIO for each of the 12 push buttons we were able to reduce the amount of GPIO terminals used to one per row by determining the different analog values given by each push button in a series. The different analog values come from different resistor values of each push button.

...

Build the Firmware

Head to the Firmware tab of your Q-Server and click on “+ Create New” to start a new firmware file.

...

Give it a name so you remember your files. We named it “IR Remote DIY Kit”. Once you finished that we can add hardware to our firmware file. Simply click on the IR Remote firmware and then on “+ Add Hardware”.

So since we are using multiplexing for this DIY Kit to reduce the amount of GPIO terminals we need to use, we’re not going to be adding button hardware. Instead we will use one Analog In hardware for each row of the DIY Kit.

...

Add four of those. We name them Row 1, Row 2, Row 3 and Row 4.

...

Lastly we will have to add the LED hardware. Both the indicator LED and the IR Emitter LED are on the same GPIO terminal. We add one IR Emitter hardware for that.

...

The next step is to assign these different types of hardware to certain drivers and GPIO terminals they’re being used.

For Row 1 we select GPIO as the Driver and for the pin GP0. Select the terminal which is connected to the pin that says “Button 4” on your IR Remote.

...

For Row 2 use the same Driver and the Pin is GP1 or select the terminal that is connected to the pin that says “Button 3” on your IR Remote.

For Row 3 use the same Driver and the pin GP2 or select the terminal that is connected to the pin that says “Button 2”.

For Row 4 use the same Driver and the pin GP3 or select the terminal that is connected to the pin that says “Button 1”.

For the IR Emitter select the IR Emitter as the Driver and then select the pin that is connected to the pin “LED” of the IR Remote. In our case it is GP4.

...

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

...

Build the App

...

Demo

...

Resources

App & Firmware

View file
nameIR Remote DIY Kit App.json

View file
nameIR Remote DIY Kit Firmware.json

...