Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: Reg:java and robotics

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Location
    trichy
    Posts
    28
    My Mood
    Confused
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Reg:java and robotics

    Hai all

    I don t know that question is correct or not,but also am asking

    can i make a small dc motor to run through java programming language

    if any, what are the requirements to do so?

    how to do it?

    pls explain me, i would be thank full for who help me.


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Reg:java and robotics

    Yes you can use java to control things like small dc motors. Java can be used to control just about anything around you.

    I think "how to do it" exceeds the scope of a forum. I think the first thing you need is a problem to solve.
    For example, my problem may be like the following:

    I want to make my dc motor run when I press r on my keyboard.
    Now there are questions like how will the computer communicate with the motor? Where will the motor get power from?.... this list gets very long very fast, so many options to consider...

    So if you have an idea of what you want, explain exactly what you are trying to do and what you are stuck on.

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Location
    trichy
    Posts
    28
    My Mood
    Confused
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Reg:java and robotics

    Very very thanks for your replay

    Actually i don't have any idea,my mind is blank about that.

    (this is the scenario)
    Assume that i have one dc motor,one laptop,connecting wires.
    am gonna use head phone port to connect dc motor.
    i would have JButton's to control the dc motor.
    when i click start button the motor shud run and when i click stop button it shud stop.

    is that any thing i need to learn more in java or any to achieve this.
    if any please advice that all.can you?

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Reg:java and robotics

    Please explain more about:
    "use head phone port to connect to dc motor."
    I am not sure I fully understand your intentions yet.

  5. #5
    Junior Member
    Join Date
    Mar 2013
    Location
    trichy
    Posts
    28
    My Mood
    Confused
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Reg:java and robotics

    I mean ,the port where we usually connect ear phone to computer.

    is it possible to do?

  6. #6
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Reg:java and robotics

    I'm not saying an audio signal can't make a motor turn, but there is great risk of damaging the computer.
    The audio circuitry was not designed to run a motor. The output is very limited.
    What are you trying to do exactly? Why are you wanting to connect to the audio for this? Why not use the USB where there is power and data?(also limited and not designed to run a motor, but a greater chance than the audio)

  7. #7
    Junior Member
    Join Date
    Mar 2013
    Location
    trichy
    Posts
    28
    My Mood
    Confused
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Reg:java and robotics

    Sure,i agree to use USB port to run the motor.but how? and which part in java need to learn for this?

  8. #8
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Reg:java and robotics

    I think the first step would be to get a clear definition of what is to be done.
    Computers have many options in terms of output and those outputs can be interpreted in various ways.
    Perhaps you should research first, things like what types of power is available from a computer, and what components can respond to the output you choose to work with.
    Just for the record neither I nor this forum is suggesting that anyone plug anything into a computer for testing. There is a risk to the computer and people nearby.
    Having dodged the legal department, I have a USB powered fan I made. Also you can look around, there are laptop cooling fans that run off USB. This line of thinking may provide you some answers
    Don't give up... And if you break your computer, well it is just a computer right? I have probably broken one in the past at some point.

  9. #9
    Junior Member
    Join Date
    Mar 2013
    Location
    trichy
    Posts
    28
    My Mood
    Confused
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: Reg:java and robotics

    Thank you , i will try my level best

Similar Threads

  1. ROBOTIX 2011:Robotics competition in India
    By roobokgp in forum The Cafe
    Replies: 2
    Last Post: November 21st, 2013, 06:21 AM
  2. Reg - inserting json data to postgres db using java
    By ramya in forum JDBC & Databases
    Replies: 2
    Last Post: August 27th, 2012, 12:50 PM
  3. Reg - connecting java to postgres database
    By ramya in forum JDBC & Databases
    Replies: 2
    Last Post: August 27th, 2012, 12:50 PM
  4. Replies: 2
    Last Post: August 27th, 2012, 12:42 PM
  5. Java Artificial Intelligence and Robotics question.
    By mjr in forum Java Theory & Questions
    Replies: 0
    Last Post: June 23rd, 2012, 05:59 PM