Joystick
Addressable Joystick
Here we demonstrate, among others, how to implement a USB client application with the Copperduino board; that is CopperLan over USB.
This demo relies on a target application that emulates a hardware product.
The product is a CopperLan to CV/gate converter, and the joystick will control the voltages generated by two of the analog jacks. With the emulator, these voltages are shown as visual bargraphs.
Using a cost-free emulator alleviates the need for buying a specific hardware.
Each axis is controlling its own voltage output. The controls are incremental/proportional. It means that an incremental value is sent continuously while the joystick is moved away from center, with greater increments the more it is pushed away.
Two buttons allow the selection of more than a single target application. You can thus run two target applications at once, eventually located on two different computers. The emulator application is available for MAC® and Windows®.
A button is dedicated to call a remote display. A remote display is the service offered by a CopperLan application or hardware that allows equipment without their own display to use the remote one on request.
The remote display capability of this demo relies on the ClockGen SysTime & Display Server Demo or on the CopperLan Manager application which is part of the CopperLan package.
UsageAs it is, this demo is targeted at a specific application. It can be adapted to control any CopperLan target that understands relative values. It is also the reference for implementing CopperLan USB clients with the Copperduino. The target application is a hardware emulating application, and can be found on the website of the hardware manufacturer. |
|
CopperLan concepts implemented
-
Finding target devices on the network that match a specific identity
Handling connections locally and remotely
Configuring a target device silently
Editing via relative values and get absolute values feedback
Remote Display Client allowing a no display/no led board to use a remote display to inform the user.
The goal is to show you how to select different targets, send relative value messages as control while monitoring them as absolute values; implement the Remote Display client code.
Variations
Hardware
| Shield manufacturer | Sparkfun |
| Shield model | Joystick Shield Kit |
| Manufacturer reference | DEV-09760 |
| Notes | This shield kit needs soldering |
IMPORTANT Modification for 3.3V compliance
Since the Copperduino can only cope with 3.3V on its ADC inputs, there is a need to tweak the joystick shield.
As see on the picture, the 5V pin should be cut (not too) short.
The remaining short pin is then bent towards the base of the 3V3 pin and soldered together with the latter.
With this change, the whole shield is now supplied in 3V3, allowing a full-range joystick measurement while protecting the Copperduino from overvoltage.
Additional software
| Manufacturer | Alyseum |
| Application | MS-812 Emulator |
| Notes | MAC® and Windows® versions available |
Video
Download the demo code
