Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 1
    Welcome to Arduino:SE. What exactly is your problem here? What do you expect the code to do? What does it actually do? What have you tried to diagnose the problem? Please help us to help you. Commented Oct 25, 2017 at 10:43
  • Hi @sempaiscuba, thanks for replying. I'm trying to operate a servo using Arduino and Processing. what I wanted it to do was, i'd move my mouse horizontally on a canvas and the servo would change the angle accordingly and simultaneously. The problem is the Servo isn't moving at all, the circuitry is fine. Commented Oct 25, 2017 at 10:50
  • 1
    Arduino side looks fine. This is most likely a Processing problem, not an Arduino problem. Commented Oct 25, 2017 at 11:00
  • @Majenko I Didn't see that coming, I thought Processing was fine. Wait, is it because, mouseX is more of an int than a Byte? Commented Oct 25, 2017 at 11:04
  • This, println(Byte.valueOf(Integer.toString(mouseX))); brings out an error: Value out of range. Value: 128, Radix 10. Commented Oct 25, 2017 at 11:07