Is there a way in java, or even C++, to send current depending on how much sound is playing?
Let’s say, if there is a lot of sound playing, the USB port will be receiving 20mA, and if there is very little sound, the USB port will receive 5mA, and if there is no sound, obviously 0 current / voltage. You don’t have to go too in depth with your response. Just maybe point me in the right direction and help me get started.
I do prefer java over C++, that would be great.
Thanks!
Is there a way in java, or even C++, to send current depending on
Share
This in the proposed form is not doable. The power supply is either turned on, or off, but not in between. without hardware you can not make a LED sound meter out of it…
However, it would be fairly easy to accomplish this using commercially available, USB ready building blocks. There are multiple options, but I’d prefer an Arduino. Connected to the USB port, it can be connected as if it was a serial port, and that is nőt very difficult to do. For this, you need these to be done: