Why is mBot light sensor ignored?


#1

I know my mBot has a light sensor, because I can read it with a C program. (I’m not talking about the line follower or the ultrasonic sensor.) Yet, it isn’t mentioned as a feature on the Makeblock website page for the mBot, nor are there any examples that I can see in Mblock.

Does anyone have any insight into this omission?

Here’s my code:

#include "MeMCore.h"

MeLightSensor lightSensor(PORT_6);

void setup()
{
  Serial.begin(115200);
}

void loop()
{
  Serial.println(lightSensor.read());
  delay(100);
}

#2

Sorry, don’t have an mBot, but is this any help: https://www.youtube.com/watch?v=JwDHsSc0u7A? it’s using old Mblock software though, maybe it’s a version thing?

http://docs.makeblock.com/diy-platform/en/electronic-modules/main-control-boards/mcore.html the light sensor is part of the mCore board.


#3

There are two mBlock 5 blocks available in mBot’s ‘Makers Platform’ Extension that can read the on-board light sensor.


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.