Review on LED Matrix for mBot

mBot_with_LED_Matrix_in_Lets_Make_Robots.jpg

LED_Matrix_LMR_test.zip (39488Bytes)
LED_Matrix_LMR_test_measures_distance.zip (39554Bytes)

Sometimes it´s good to have a display to show some things in a robot. However displays can be very complicated to handle and energy consuming, unless you use the LED Matrix for mBot.

Here you have a simple but useful display where you can show anything you can imagine with the dot size of a small LED. It´s not very precise but bright and simple enough to show many useful things.

My first test was the "Hello world" in our own version: "LMR", as show on the picture of this article. Code is ready to download and use here.

After that I though could be good to combine two functions of the robot: ultrasound sensor and LED Matrix. Code is here: ultrasound sensor and the LED Matrix. Here you have the video for this experiment (also right above this article).

The program to make this possible is very easy, have a look here:

Distance_to_LED_Matrix_test_detail.jpg

Basically mBot does this:

  1. sets "y" as the first position for writing on the display
  2. sets "x" is the distance measured by the ultrasonic sensor
  3. shows on the display the distance (x)
  4. waits for 0.001 seconds to measures again and refresh the value

I´m not sure if the sensor and/or the display can go so fast, but I just tried with several values and this one looks fine to show an updated distance as soon as it changes. There are some glitches sometimes in the measure (see the video), I think due to noise. I can filter them out with some more programing, let´s see...

I´ll keep programming new tricks with this display as it can be useful also to interact with humans, included children when playing with the robot!

What application do you think can be interesting?

See past reviews I did about this robot here:

 

https://www.youtube.com/watch?v=id8d6PDLd6U

Good timing, Franciscodr. I

Good timing, Franciscodr. I was working with the matrix for the first time last night. I couldn’t get a program to stay, however. I would get it running from the computer, unplug and turn it back on and it wouldn’t run. How do you get the program to upload and run independent of the computer? Was going to look into more of MakeBlock’s online documentation tonight.

1 Like