I also DIY an Android remote-all open source

Source: Internet
Author: User

I also DIY an android remote - all open source

1. Trial

Remember Song Baohua in the "Device driver development in detail" put forward a theory of "software and hardware to infiltrate each other's territory", this proves that this is true, the use of upper-level APP software with simple and simpler hardware design can complete a remote control.

There are development applications netizens e-mail asked the online kind of DIY Infrared remote control is how to work, check the current there are two ways, one is based on USB One is based on the headphone hole. A simple reply to a message. That is to convert the audio signal /USB signal to an infrared signal. Afterwards oneself all feel a bit perfunctory, fortunately own hardware to understand some, software also will develop. Just combine them.

Trial of the second, the development of the law is clear, the general is the first try to understand the approximate function. The trial of the secondary hop is to buy a headphone jack type of remote control transmitter as follows internal diagram (ignore line, line is I measure welding).


Mobile phone software using the "Remote Control Genie" (2.9.3 version), around the test apparatus is Skyworth TV. Software design is better to use, trial success, no other obstacles.

2.DIY Hardware

The second step isDIYout,Googleout[DIY] cheap and easy to use - IR remote controller using an ear hole (suitable for multicast . WAV player) text graph more Andmobile phone remote control , 3.5mm Headphone Interface Infrared Remote control transformation Analysis Two articles and one article of principleRemote Control Principle.combined with the oscilloscope test button is the output waveform of the headphone hole, presumably understand the principle andDIYthe required components.

DIY Required components:1.3.5 Headphone plug 2. Infrared emitter tube (in fact, this name is also strange, in strict sense it belongs to the light-emitting diode and one, but to the e-shop to say before the "infrared Emitter Tube")

The next hardware-related experiments are part of the replacement, the software using the "Remote Control Wizard" on the appropriate configuration, and then the welded "remote control" connected to the test. For the first time, according to the first cited article, the two diodes are connected to the left and right channels of the headphone plug as follows:


Experimental results: Success is correct.

The second experiment was based on the second citation of the article welding only one tube, the results of the experiment: success is correct.

The third experiment was to re-test the positive and negative polarity, and the results were the same: success is correct.

From the above three experiments, clear a lot of concepts, but also bring great doubts, the article said to the 19kHz to 38kHz so that two tubes are positive and negative interconnection, but the second experiment, It is possible to emit a signal without being connected. The positive and negative interchange in the third experiment did not affect the normal transmission and reception of the signal. This is also a point. 3rd, there is no transistor to enlarge, the same can be used. Let's put the theoretical discussion here for the time being. Continue with the new experiment.

The experiment on software is the ultimate realization of developing an APP to launch data.

The first step is to record the audio output from the Remote Control Wizard. The hardware connection is to record the key waveform output by the remote control genie using a grandfather's headphone plug. Put it in your phone to play audio to send an infrared signal to the TV. Validation passed.

2.DIY Software

After the overall principle is smooth, the market plan is started, using a "Remote Control Wizard" version of the open source, that is, the use of code to achieve the live waveform. Each parameter of the signal can be adjusted so that different types of devices can be controlled.

According to the principle of remote control to know the need for 38kHz sine wave signal, first in Playing an arbitrary tone with Android to find out how to generate a sine wave method. Test found can not output 38kHz, the highest only 20KHz, in turn test "remote Control Genie" Output frequency is also 20KHz, then for the moment use 20KHz the signal. Make a slight change so that it outputs A single-channel sine signal of 20KHz.

It is also encoded according to the length of the waveform specified in the principle of the remote control , but the requirement of paragraph (3) is ignored. The following methods are implemented:getleadercode, Getusercodetowave, Getdatacodetowave, Getstopbit respectively, to obtain the waveforms of each stage. Combine it with version 0.1 . Source is located in:https://code.csdn.net/kangear/sinewave. Currently can control the test of a Skyworth TV. :

There are many flaws to be perfected:

1. At present, the rate of error is relatively high,4 times successfully.

2. Only one key is currently implemented and can be modified by code usercode and datacode.

3. Based on mono-channel waveforms, only one and ground on the left and right channels can be connected on the hardware. Reference software is a hardware connection that can achieve any combination of right and left.

I also DIY an Android remote-all open source

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.