Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8819227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:18:09+00:00 2026-06-14T05:18:09+00:00

Is there a way in java, or even C++, to send current depending on

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:18:11+00:00Added an answer on June 14, 2026 at 5:18 am

    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:

    • get an Arduino
    • write a sketch in C that accepts your input, lets say ASCII encoded decimal integer values, and does the function you want, like power a LED through PWM pin with variable duty cycle (Arduino side)
    • write your code, that acquires whatever you need (“how much sound is splayed”, whhatever that means…), on the PC side, in whatever language you prefer
    • send the numeric values to the Arduino using serial port communication from the PC side code
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Java (.jsp or whatever) is there a way where I can send a
is there a way in Java to convert an Integer to single digits, and
Is there a way in java to check if a specific object is in
Is there a way using Java to over-ride the browser authentication dialog box when
Is there a way in Java to ask the system to get control over
Is there a way in java to do something like this: void fnc(void Reference_to_other_func());
Is there any way in Java to enforce a minimum window size? The last
Is there a way in java to have a ListModel that only accepts a
Is there a way in Java or OpenCv ; preferably Java, that i can
Is there an elegant way in java to check if an int is equal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.