An adapter that allows LEGO EV3 to communicate with analog/digital sensors.
As is well known, common analog/digital sensors cannot communicate directly with the LEGO EV3. Therefore, we use a microcontroller (MCU) to convert sensor information into LEGO UART format and then transmit the information to the EV3 host via the LEGO UART Protocol.
Connect the power supply to the sensor and connect the signal pins of the sensor to pin D3 of the adapter.
Button | Magnetic Switch | Tilt Sensor |
Rotation Sensor | Temperature Sensor | Light Sensor |
In the EV3 port view, the following three modes are available:
Analog | Digital | Up time (Debug) |
Using the specialized block, you can retrieve the value of the sensor connected to the adapter. There are two modes available for the block:
Analog Read | Digital Read |
LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this software. The LEGO Group and contributors to this repo are not liable for any loss, injury or damage arising from the use or misuse of the provided code or hardware.