Dear programmers, tell me where to start? It is necessary through the jeck connector android smartphone to manage three external LEDs (turn on, turn off, flash) through the interface of the smartphone itself. Is this idea realizable and where to start writing an application ?!

  • jack is a plug. In the smartphone, he is not alone. through which one? - Vladyslav Matviienko February
  • @argamidon, before sending a person to Google, it would be worth clarifying what exactly he wants to achieve. In particular, what kind of LEDs he wants to control. Flash camera? Then it is (almost) on your link. And if he wants to connect some external LEDs to the audio connector and control their luminescence from the application, that is another matter. @ Vladimir2610, specify what exactly you want to do. - fori1ton
  • @metalurgus, where are the jack jacks on the phone? - Zelta
  • @Zelta, And where is your TRS Connector? What about USB Jack, micro-hdmi jack, etc. - Vladyslav Matviienko
  • @metalurgus, by "Jack" in 90% of cases means 3.5 mm TRS or similar connector. I have never heard of “USB Jack, micro-hdmi jack, etc.”, usually they say simply “USB, micro-hdmi, etc.”. In addition, the USB controller in the phone seems to be a slave ... Where else can you theoretically connect LEDs? - Zelta

2 answers 2

If I correctly understood the question and the speech about directly connecting to the audio connector, then there is a problem: it is intended for playing music, and, as I understand it, it’s impossible to establish a high level with my hands. On the other hand, you can connect a microcontroller that will "listen" and analyze the output. Then you can stream the sound in which the messages for the MK are encoded. He recognizes them and lights the desired LEDs. But if there is a micron, it's easier to do it via bluetooth.

Bicycle solution, if you ask a question, maybe it will come up better.

In general, knock on the electronics forum, maybe they will.

    I think you can try writing an algorithm for LEDs in Java. Manage, for example, a microcontroller from a tablet. I have an ATtiny 2313 microcontroller. To be honest, it is interesting now to implement simple flashing of LEDs from a smartphone. If you get something interesting, be sure to write here and show. Actually, specifically on your question: the idea is very realizable and you need to start, of course, with the basics of programming for microcontrollers. For this undertaking it is better to use C or Assembler, but if you want to try Java, then look here: http://www.harbaum.org/till/nanovm/index.shtml