Secret Labs LLC Netduino Go Potentiometer Modules
VariousOnly 2 pieces in stock at supplier
Product details
Netduino Go! - Potentiometer Module
Sample Code:
using Microsoft.SPOT;
namespace Module_Tests {
public class Program {
public static void Main() {
NetduinoGo.RgbLed led = new NetduinoGo.RgbLed();
NetduinoGo.Potentiometer pot = new NetduinoGo.Potentiometer();
// pot.GetValue() - Returns a float from 0 to 1.
while (true) {
led.SetColor(0, 0, (byte)(pot.GetValue() * 255));
}
}
}
}
Code with method to set a custom range:
using Microsoft.SPOT;
namespace Module_Tests {
public class Program {
public static void Main() {
NetduinoGo.RgbLed led = new NetduinoGo.RgbLed();
NetduinoGo.Potentiometer pot = new NetduinoGo.Potentiometer();
while (true) {
led.SetColor(0, 0, (byte)(Map(pot.GetValue(), 0, 1, 0, 255)));
}
}
// Used for mapping range of values to another range, linearly.
public static float Map(float input, float inMin, float inMax, float outMin, float outMax) {
return ((input - inMin) * (outMax - outMin) / (inMax - inMin) + outMin);
}
}
}.
Compatible hardware | Various |
Item number | 5998855 |
Manufacturer | Secret Labs LLC |
Category | Electronics modules |
Manufacturer no. | P00000315 |
Release date | 29.8.2012 |
Compatible hardware | Various |
Module type | Various |
CO₂ emissions | 0.82 kg |
Climate contribution | CHF 0.11 |
Compare products
Goes with
Reviews & Ratings
Warranty score
How often does a product of this brand in the «Electronics modules» category have a defect within the first 24 months?
Source: Digitec Galaxus- Secret Labs LLCNot enough data
- 1.Purecrea0 %
- 1.Tru Components0 %
- 3.Whadda0.1 %
- 4.Adafruit0.2 %
Warranty case duration
How many working days on average does it take to process a warranty claim from when it arrives at the service centre until it’s back with the customer?
Source: Digitec Galaxus- Secret Labs LLCNot enough data
- 1.Raspberry Pi0 days
- 2.WaveShare1 day
- AdafruitNot enough data
- ArduinoNot enough data
Return rate
How often is a product of this brand in the «Electronics modules» category returned?
Source: Digitec Galaxus- Secret Labs LLCNot enough data
- 1.Purecrea0 %
- 1.Tru Components0 %
- 3.Whadda0.2 %
- 4.Adafruit0.6 %