Blockly Condition Challenge 7-3 Not Working


#1

Challenge: Every Time when the mBot is picked up it will light up the red light; when it is put down, light up the blue light.

My code is when arrow clicked
Forever: IF mbot is picked up
THEN light up left red right red
ELSE light up left blue right blue

Is this correct?


#2

I will check gimp properly once myself and then i icloud can assure you.


#3

line follower module should be connected to port 2.


#4

For some reason is doesn’t detect when it is on the floor and I pick it up, but if I hold on my lap it works. Any ideas why this may be happening?


#5

Is there any light on the Me line follower sensor?
When we do this challenge, put the mBot on a white or light color desk. If it is on the floor, the Me line follower sensor lights are solid blue, if you pick it up, the two lights will turn off.
A very important is that Me line follower sensor is connected to Port2.
If it is the same, reset it to default program referring to this post.-FAQ2


#6

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