New mBot LED Matrix not working


#1

I tried setting up the scratch environment, everything works but the face on the LED matrix. Tried all the ports. Motors run, buzzers beep and rgb led’s work. Has anyone been able to get the show face or show time commands to work?

So far, THIS IS A FANTASTIC KIT! I am very excited!


Face plate: don´t find block "show face (Port 1)..."
#2

Same problem here. Matrix doesn’t do a thing. Am I using the correct command? Could please someone post a screenshot of a working Matrix with the code used?


#3

I just got mine today and struggled with the same problem. After a couple of hours I think I’m on to something. The LED matrix seems to only work when plugged into port 1. I just used the (when green flag is clicked) (show face port 1 x:0 y:0 characters: Hi!). The text doesn’t scroll though, so the message needs to be really short, like “Hi!”. Hopefully we’ll be able to figure this out.


#4

Tried it on Port 1. No luck!


#5

Tried on port 1, it worked, also with the text scrolling. I can’t upload images


#6

Hello

Use mBlock software can achieve the function of LED matrix easily,
both port 1 and port 4 can work!

Thanks!


#7

No luck on either port 1 or port 4 for me. I also included the show face command within a set of other “When” commands changing the colors of the Board LED lights. So, I know that the command set uploaded correctly and works.


#8

No luck for me either on any of the ports.


#9

How do you get the steps above compiled and submitted to the mBot, without getting an error?

I created both steps (as in you screenshot) and get two compile errors:

  • First, because the ““Hi!”” has double hyphens on each end!
  • Second, because “ISO C++ forbids comparison between pointer and integer”.

Is it wrong to use Arduino IDE 1.6.5?


#10

I’m having the same problem. I’ve tried different ports and cables. Nothing. If it’s working for you, can you say if there is any other sign that the board is active (e.g., it looks like there are a few LEDs below the TM1640 IC … Do they light up when the board gets power?)?


#11

While trying out to program the ultrasonic sensor, my daughter pointed me at the strange coincidence that suddenly the LED matrix started to show some dots for the first time…

So in some way the LED matrix shield has power. It is provided with some initial setup showing rubbish and I can’t see any LEDs on the backplane shining.


#12

Next version: The (pseudo) clock!

Code looks like this:

The text “Hi!” will still not show.
Furthermore, the sensing function to get current hour and minute, are not supported. Maybe I need some additional library. So the clock does not update…

Again, I need to tweak the code in Arduino IDE, since I get two compile time errors. I think it’s possibly because I use Arduino IDE 1.6.5. If you have the same error, you need to replace excessive double quotes. Especially in the code for formatting the code to show the “time”.


#13

There is a new post today in the Makeblock academy, which provides a screenshot of a program which will make some text visible on the LED matrix.
Works perfect!
You need to fiddle around with positioning the text and I wanted the loop to execute even if the mBot is not connected to the laptop. Looks as follows:

Please note: Clock will not update!


#14

That got the text to scroll. But I guess something must be wrong with my mCore casue no matter what port I send the show face command to, it will display only on port 1. For example, I set the code to go to port 4 but with the led display still in port 1 and it will display on port 1. When I plug into port 4, I get nothing.


#15

Your right!

It is because the parameter x to the MeLEDMatrix ledMtx_1(x) constructor does not get used in the real code of the respective class. If you open the code in Arduino IDE, in one of the tabs you’ll find the MeLEDMatrix implementation, and as you can see, nothing happens with the port parameter.

I guess the mBlock is currently still under development, and therefore these things will only disappear over time.


#16

Hi, I’m facing the same problem programming the mbot to get something showing on the face. I have arduino 1.6.5 ide and get the following same as yours on upload to mbot

project_1_____6_0.ino.cpp:55:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]

I used code same as yours in mblock with face, port1, x:xpos,y;0,character:;
then at the end
showtime port1 etc
If I put a string in character I get an additionalt error
project_1_____6_0.ino.cpp:36:30: error: expected ‘)’ before ‘hi’

Can you show your c code on your working code please, ta


#17

Hi, In arduino IDE I’ve removed 1 set of quotes from last as suggested
ledMtx_1.drawStr(xyz,0,“hi mbot”);

for the showClock I get the ISO C++ forbid comparison between pointer and integer
ledMtx_1.showClock(22,35,":"==’:’);


#18

I can run the script shown by HIP70890 but only via mBlock using the green flag. If I try to upload it then I get the errors mentioned a few times with additional “” and the error: ISO C++ forbids comparison between pointer and integer [-fpermissive] which is to do with the clock formatting I think.

Even simple scripts I can’t upload so that they keep running when the PC is not connected.

Anyone any idea what I am doing wrong or am I missing the point of how this works?


#19

OK, the block code seems a bit buggy.

edit the mbot block code in arduino ide (close mblock scratch)

ledMtx_1.showClock(22,35,":"==’:’);

for the above line replace single quotes around colon character with double quotes
For showface block around the comment remove one set of quotes.

Upload the amended code to mbot from arduino ide.


LED faceplate Install Instructions?
#20

@waldywiz & @Chris: You’re right, the compiler issues an error. First I thought it was because of using Arduino IDE 1.6.5, later revised this: I think mBlock is still a little buggy, and has to code generation templates which issue extra quotes where they should actually should actually one pair of them.

I guess we have to wait for the next version of mBlock and hope that these bugs disappear.