The Linear Poti Bricklet 2.0 is equipped with a linear potentiometer ("fader", "slider"). It can be connected to a Brick, with which the position of the slider can be read out.
With configurable events it is possible to react on changing positions without polling.
Property | Value |
---|---|
Linear Potentiometer | 59mm (2.32") adjustable length |
Current Consumption | 42mW (8.4mA at 5V) |
Position | 0% - 100% (slider down - slider up) in 1% steps |
Dimensions (W x D x H) | 25 x 85 x 20mm (0.98 x 3.35 x 0.78")* |
Weight | 14g* |
* without knob
To test a Linear Poti Bricklet 2.0 you need to have Brick Daemon and Brick Viewer installed. Brick Daemon acts as a proxy between the USB interface of the Bricks and the API bindings. Brick Viewer connects to Brick Daemon. It helps to figure out basic information about the connected Bricks and Bricklets and allows to test them.
Connect the Linear Poti Bricklet 2.0 to a Brick with a Bricklet Cable.
If you connect the Brick to the PC over USB, you should see a new tab named "Linear Poti Bricklet 2.0" in the Brick Viewer after a moment. Select this tab. If everything went as expected the Brick Viewer should look as depicted below.
Move the potentiometer. You should be able to create a similar graph by moving the potentiometer from bottom to top and back to bottom.
After this test you can go on with writing your own application. See the Programming Interface section for the API of the Linear Poti Bricklet 2.0 and examples in different programming languages.
A laser-cut case for the Linear Poti Bricklet 2.0 is available.
The assembly is easiest if you follow the following steps:
Below you can see an exploded assembly drawing of the Linear Poti Bricklet 2.0 case:
Hint: There is a protective film on both sides of the plates, you have to remove it before assembly.
See Programming Interface for a detailed description.
Language | API | Examples | Installation |
---|---|---|---|
C/C++ | API | Examples | Installation |
C/C++ for Microcontrollers | API | Examples | Installation |
C# | API | Examples | Installation |
Delphi/Lazarus | API | Examples | Installation |
Go | API | Examples | Installation |
Java | API | Examples | Installation |
JavaScript | API | Examples | Installation |
LabVIEW | API | Examples | Installation |
Mathematica | API | Examples | Installation |
MATLAB/Octave | API | Examples | Installation |
MQTT | API | Examples | Installation |
openHAB | API | Examples | Installation |
Perl | API | Examples | Installation |
PHP | API | Examples | Installation |
Python | API | Examples | Installation |
Ruby | API | Examples | Installation |
Rust | API | Examples | Installation |
Shell | API | Examples | Installation |
Visual Basic .NET | API | Examples | Installation |
TCP/IP | API | ||
Modbus | API |