Lego Mindstorms EV3 infrared sensor

133 views
Skip to first unread message

MatthewSmith

unread,
Aug 22, 2016, 5:28:26 AM8/22/16
to MIT App Inventor Forum
Hi,
Yesterday I started playing with App Inventor and used it to make a remote control for my Lego EV3 Mindstorms robot... motor and touch sensor work great over a bluetooth connection.

Now I'd love to use the Infrared sensor as a proximity sensor... but the App Inventor does not have a component for that sensor.  There is however a component for the EV3 ultrasonic sensor.  Any pointers or volunteers to add the missing component?

I have found this possibly relevant document relating to the programming of EV3 sensors.
My hunch is that the source for the ultrasonic sensor (https://github.com/mit-cml/appinventor-sources/blob/master/appinventor/components/src/com/google/appinventor/components/runtime/Ev3UltrasonicSensor.java) needs to be copied and renamed and the Sensor_Type=30 at line 36 changed to Sensor_Type=33 mode=0 ... but I've no idea how to build and deploy that.


Reply all
Reply to author
Forward
0 new messages