Chip Award Winner
Product of the Year 2012
Chip Award

Joystick Bricklet

Features

  • 2-axis joystick with push-button

Description

The Joystick Bricklet can be used to extend the features of Bricks by joystick functionality.

The Joystick is two directional and equipped with a push-button. You can read out the position of the stick (X/Y coordinates) and the state of the button. With configurable events it is possible to react on changing positions and an button presses without polling.

You can use this device to control robots, games etc.

Technical Specifications

Property Value
Joystick 2-axis with push-button
   
X/Y Position -100/100, 0=center
   
Dimensions (W x D x H) 25 x 45 x 23mm (0.98 x 1.77 x 0.9”)*
Weight 12g*

* without knob

Resources

Test your Joystick Bricklet

To test the Joystick Bricklet you need to have the Brick Daemon and the Brick Viewer installed (for installation guides click here and here) and the Brick Viewer has to be connected to the Brick Daemon.

Connect the Joystick Bricklet to a Brick with the supplied cable (see picture below).

Joystick Bricklet connected to Master Brick

If you connect the Brick to the PC over USB, you should see a new tab named “Joystick Bricklet” in the Brick Viewer after a moment. Select this tab. If everything went as expected the Brick Viewer should look as depicted below.

Joystick Bricklet in Brick Viewer

The tab consists of a coordinate system that shows the current position of the stick and if the button is pressed. Below this coordinate system you can find a graph that visualizes the movements over time. You should be able to reproduce the depicted graph when you move the stick first up, then down, then right and then end left.

If the Brick Viewer does not show “Position (0,0)” when the stick is in center position, press the “Calibrate (0,0)” button.

After this test you can go on with writing your own application. See the Programming Interface section for the API of the Joystick Bricklet and examples in different programming languages.

Programming Interfaces

High Level Programming Interface

See High Level Programming Interface for a detailed description.

Language API Examples Installation
Modbus API    
TCP/IP API    
C/C++ API Examples Installation
C# API Examples Installation
Delphi API Examples Installation
Java API Examples Installation
PHP API Examples Installation
Python API Examples Installation
Ruby API Examples Installation
VB.NET API Examples Installation
Creative Commons Licence The content of this page is licensed under Creative Commons Attribution 3.0 Unported License.