Skip to content

Latest commit

 

History

History
138 lines (131 loc) · 3.06 KB

HiTechnic-NXT-SuperPro-Prototype-Board-(SPR2010).md

File metadata and controls

138 lines (131 loc) · 3.06 KB

General

This sensor uses the [[msensor|Using the Mindstorms Sensor Device Class]] device class.

Value
type_id 60
# Modes 8
Connection I2C/M
Vendor ID HiTechnc
Product ID SuperPro

Modes

Mode 0 Mode 1 Mode 2 Mode 3 Mode 4 Mode 5 Mode 6 Mode 7
mode HT-SPRO-AIN HT-SPRO-DIN HT-SPRO-DOT HT-SPRO-DCT HT-SPRO-STB HT-SPRO-LED HT-SPRO-AO0 HT-SPRO-AO1
Description Anlog inputs Digital inputs Digital outputs Digital input/output controls Strobe output LED control Analog output O0 Analog output O1
num_values 4 1 1 1 1 1 5 5
value0 Analog input A0 (0-1024) Bits (B0-B7) Bits (B0-B7) Bits (B0-B7) Bits (S0-S3) LED state1 Mode Mode
value1 Analog input A1 (0-1024) Frequency, most significant byte Frequency, most significant byte
value2 Analog input A2 (0-1024) Frequency, least significant byte Frequency, least significant byte
value3 Analog input A3 (0-1024) Voltage, most significant byte Voltage, most significant byte
value4 Voltage, least significant byte2 Voltage, least significant byte2
units none none none none none none none none
dp (decimal places) 0 0 0 0 0 0 0 0
Values in the tables that look like ```this``` are the names of sysfs attributes or values returned by said attributes.

[1]: LED states

Value Description
0 None
1 Red
2 Blue
3 Red and blue

[2]: Only the 2 most significant bits are used. Actual value is MSB << 2 + LSB >> 6 or MSB << 2 + LSB & 0x03 (can someone confirm which one?).