Light Tunnel Mk2
Exhaustive documentation including variables, configurations and physical effects.



ir_1) for different intensities of the light-source channels (red/green/blue). Top left: examples of images produced by the tunnel in the linked_leds (left) and the camera_fast (right) hardware configurations. Bottom: observing Malus' law in the effect of the polarizer positions (pol_1, pol_2) on the infrared intensity at the third sensor (ir_3).Hardware configurations
Name
Img. data
Description
Documentation
Causal ground-truth
Map of effects

red, green, blue ir_1/2/3, vis_1/2/3
red, green, blue ir_1/2/3, vis_1/2/3red, green, blue—on the measurements produced by the three light-intensity sensors ir_1/2/3 and vis_1/2/3. The sensors are placed at increasing distances from the light source (with the first sensor closest to it), resulting in a decrease in the maximum measurement value. The infrared channel (ir_j, top row) of the sensors is most sensitive to red light, whereas the effect is reversed for the visible channel (vis_j, bottom row).red, green, blue current_ls, current_ls_raw
red, green, blue current_ls, current_ls_rawcurrent_ls) and the corresponding raw uncalibrated measurement (current_ls_raw), for different values of each color channel.offset/sps/res_current_ls current_ls, current_ls_raw
offset/sps/res_current_ls current_ls, current_ls_rawoffset/sps/res_current_ls (resp. left, center, right) on the calibrated (current_ls, top) and uncalibrated (current_ls_raw, bottom) measurements of the current drawn by the light source. The left and center plot show measurements for red=green=blue=0, and the right plot shows measurements for red=green=blue sampled from random values in [0,255]. The calibrated measurements (in Amps) largely compensate for changes in the reference voltage (offset_current_ls, left top) and sensor resolution (res_current_ls, right top), unless sensor saturation occurs. For example, in the right plot, at resolution res_current_ls = 2, the measurements fall outside of the sensor range, resulting in a saturation of the sensor output. Both calibrated and uncalibrated measurements are affected by changes in the oversampling rate (sps_current_ls, center) which affects their signal-to-noise ratio (i.e., variance, precision).diode_ir_j ir_j, diode_vis_j vis_j (j = 1, 2, 3)
diode_ir_j ir_j, diode_vis_j vis_j (j = 1, 2, 3)green channel. Increasing the diode size—i.e., larger values of diode_ir/vis_j—increases the sensitivity of the sensor.t_ir_j ir_j, t_vis_j vis_j (j = 1, 2, 3)
t_ir_j ir_j, t_vis_j vis_j (j = 1, 2, 3)green channel. Increasing the exposure time—i.e., integration time—increases the sensitivity of the sensor and affects the noise distribution; see, e.g., the difference between t_ir/vis_j=3 and t_ir/vis_j=2 above.pol_j angle_j, angle_j_raw, angle_j_digital (j = 1, 2)
pol_j angle_j, angle_j_raw, angle_j_digital (j = 1, 2)angle_1_digital (left, in degrees), angle_1 (center, in degrees) and angle_1_raw (right) for 1000 polarizer positions pol_1 sampled uniformly at random from the range [-90,90] . The behaviour for the second polarizer (i.e., pol_2, angle_2_*) is the same and not shown.angle_1) along a trajectory (dotted black line) defined by the input pol_1 that sets the desired polarizer position. We show trajectories for the default motor parameters (left) and different values of the motor parameters mot_1_max/enabled. Lowering the current delivered to the motor (mot_1_max), or powering it off completely (mot_1_enabled = 0) cause the motor to miss steps, creating a mismatch between the set position (pol_1) and the actual position of the hatch (angle_1). The behavior for the second polarizer (pol_2, angle_2) and the digital angle measurements (angle_1/2_digital) is the same and not shown.mot_j_max/enabled current_mot_j, current_mot_j_raw (j = 1, 2)
mot_j_max/enabled current_mot_j, current_mot_j_raw (j = 1, 2)current_mot_1) under an impulse on the input mot_1_max , when the motor is enabled (mot_1_enabled=1, blue) and when it is disabled (mot_1_enabled=0, yellow). Right: measurements of the calibrated motor current (current_mot_1) for different values of mot_1_max, when the motor is enabled (mot_1_enabled=1, blue) and when it is disabled (mot_1_enabled=0, yellow). The behavior of the second motor and the uncalibrated measurements current_mot_1/2_raw is the same and not shown.offset/res/sps_angle_j angle_j, angle_j_raw (j = 1, 2)
offset/res/sps_angle_j angle_j, angle_j_raw (j = 1, 2)offset/sps/res_angle_1 (resp. left, center, right) on the calibrated (angle_1, top) and uncalibrated (angle_1_raw, bottom) measurements of the polarizer position. The behavior for the second polarizer is the same and not shown. The left and center plot show measurements for pol_1=0, and the right plot shows measurements for pol_1 sampled from random values in [-180,0]. The calibrated measurements (in degrees) largely compensate for changes in the reference voltage (offset_angle_1, left top) and sensor resolution (res_angle_1, right top), unless sensor saturation occurs. For example, in the right plot, at resolution res_angle_1 = 2, the measurements fall outside of the sensor range, resulting in a saturation of the sensor output. Both calibrated and uncalibrated measurements are affected by changes in the oversampling rate (sps_angle_1, center), which affects their signal-to-noise ratio (i.e., variance, precision).pol_1/2 ir_3, vis_3
pol_1/2 ir_3, vis_3pol_1 and pol_2 on the infrared (ir_3) and visible (vis_3) light-intensity measurements produced by the third sensor, which is placed behind both polarizers relative to the light source (see diagram). In the experiment above, the polarizer positions are sampled uniformly at random while the light source is kept at a fixed brightness (for each of the red, green and blue channels).led_j_ir, led_j_uv ir_j, vis_j (j = 1, 2, 3)
led_j_ir, led_j_uv ir_j, vis_j (j = 1, 2, 3)ir_1/2/3, top) and visible (vis_1/2/3, bottom) channels. The LEDs turn on only when their corresponding sensor is taking a measurement and do not affect the measurements of the other sensors. The IR LED (led_1/2/3_ir) can cause the infrared measurements (ir_1/2/3) to saturate.led_j_ir current_led_j_ir/_raw, led_j_vis current_led_j_vis/_raw (j = 1, 2, 3)
led_j_ir current_led_j_ir/_raw, led_j_vis current_led_j_vis/_raw (j = 1, 2, 3)current_led_j_ir/uv for random brightness settings led_j_ir/uv of the corresponding LED. The small offsets in each sensor's output result in small shifts in the measurements. The effect on the uncalibrated measurements current_led_j_ir/uv_raw is the same and not shown.offset/sps/res_current_led_* current_led_*, current_led_*_raw
offset/sps/res_current_led_* current_led_*, current_led_*_rawoffset/sps/res_current_led_1_ir (resp. left, center, right) on the calibrated (current_led_1_ir, top) and uncalibrated (current_led_1_ir_raw, bottom) measurements of the current drawn by the light source. The behaviour for the other LEDs is the same and not shown. The left and center plots show measurements for led_1_ir=0, and the right plot shows measurements for led_1_ir sampled from random values in [0,4095]. The calibrated measurements (in Amps) largely compensate for changes in the reference voltage (offset_current_led_1_ir, left top) and sensor resolution (res_current_led_1_ir, right top), unless sensor saturation occurs. For example, in the right plot, at resolution res_current_led_1_ir = 2, the measurements fall outside of the sensor range, resulting in a saturation of the sensor output. Both calibrated and uncalibrated measurements are affected by changes in the oversampling rate (sps_current_led_1_ir, center), which affects their signal-to-noise ratio (i.e., variance, precision).offset/sps/res_current_mot_* current_led_mot_*
offset/sps/res_current_mot_* current_led_mot_*offset/sps/res_current_mot_1 (resp. left, center, right) on the calibrated (current_mot_1, top) and uncalibrated (current_mot_1_raw, bottom) measurements of the current drawn by the first polarizer motor. The behaviour for the other motor is the same and not shown. The left and center plots show measurements for mot_1_max=3000, and the right plot shows measurements for mot_1_max sampled from random values in [0,4095]. The calibrated measurements (in Amps) largely compensate for changes in the reference voltage (offset_current_mot_1, left top) and sensor resolution (res_current_mot_1, right top), unless sensor saturation occurs. For example, in the right plot, at resolution res_current_mot_1 = 2, the measurements fall outside of the sensor range, resulting in a saturation of the sensor output. Both calibrated and uncalibrated measurements are affected by changes in the oversampling rate (sps_current_mot_1, center), which affects their signal-to-noise ratio (i.e., variance, precision).External influences
Analog sensors
Light sensors
Variables table
Variable
Description
Citation
References
Last updated
