NXT Light Sensor Block

NXT Light Sensor Block

Why NXT Light Sensor Block? Does NXT’s light source sensor have any advantages? Or is it just fun?

There are three reasons why I made this block:

  1. After many people upgrade EV3, NXT is no longer use, so I want to make it useful.
  2. You may have to use two or three EV3 light sensors at one time. If you have NXT light, you can use it to save some money, lol.
  3. NXT light perception Because there is only light sensing module, there is no color sensing module, his light is much stronger than EV3.
NXT Light Sensor

Instructions

Step1. Read out the Raw value of NXT Light Sensor

Before use NXT Light Sensor,you need to record the max and min raw value(usually black is max,white is min) of your game field.

Step.2 GoGoGo~

After you get the max and min raw value,write them into “NXT Light Configuration” mode,and put that config mode block at the start of your program.
OK, now you can use your NXT Light Sensor~


Update

Ver 1.5:
Optimized the low level computing speed, about 6x faster.

Download

Download Link(GitHub):http://bit.ly/2XgRqzp
Author:OFDL HSU
Ver:1.3

4 comments

  1. NCB

    Is the calibration for just 1 sensor port or for all?

    1. ofdl

      Just 1, you can choose whitch port you want to calibrate

  2. Byron

    The nxt sensor constantly turns off when the line follower is running, why can this happen?

    1. OFDL小編

      check your wire status, maybe it’s broken.

Leave a Reply

Your email address will not be published. Required fields are marked *