Hello,
I find the mBot an interesting product. However I have run into some issue.
When using the attached code in “development mode” (mBot connected to USB), everything works ok.
Then, when I program the same code into the mBot (Upload to Arduino), the code does not work as it should.
In this mode mBot does not respond to IR commands. It seems, that there is an interaction between some functions (between LED, and IR receiver).
If I use the buzzer instead of LED’s, the issue is the same.
The code description:
I prepared the simple software code to control the mBot with the IR transmitter.
When the mBot is near the obstacle, the onboard LED is red, otherwise it is green.
There is also the function to bypass the obstacle detaction (led is permanently green, when B is pressed).
For seeing the code please copy the link into the browser (as a new user I can’t put the image into the post)…
shrani.si/f/43/Gr/49IgHWRs/mbotirledinteraction.jpg
Thanks
Andrej