In the sensing command group there is a value block for (current [minute]) that can be used in the clock mode of the led display
New mBot LED Matrix not working
@danjger: Did you try that out (upload to the mBot) or do you assume this might work?
I actually tried exactly that some weeks ago, and got a compile time error, saying that this feature is not supported.
I found it pretty plausible, since I suppose/understand the mBot doesnāt have a RTC.
Maybe you have a different mBlock version (I have 2.1.5-0616 for Mac) or your parameters are different?
Can you check this?
2.1.5.06.16.001
I got it to show the correct time in the display but using the scratch over bluetooth method, not by downloading the arduino code but I will try that later when I can.
Now I have to make a custom mount since I am NOT taking off the ultrasonic sensor.
I suppose the time I got was from the PC so when I do the download Iāll see of those blocks really do provide the time that way.
I found that the LED matrix will fit quite nicely between the two I/O RJ blocks. Meant I didnāt have to remove the ultrasonic sensor
It is the arduino version that needs updating. I just got 1.6.5 (with mBlock 2.2.0)
https://www.arduino.cc/en/Main/Software
my led matrix code compiles great now.
Had the same issue. Could only use show Time but nothing else. Resolved by shutting off robot and mbot software. Then connect USB cable to robot. Start software and robot.
Then choose connect serial port, com 3 (take the highest if you have several), then click Connect and Upgrade firm ware. Done. Screen now works with everything.Are there a maximum amount of characters you can scroll? I would think not but I seem to get limited when I enter more than āHi mBotersā in the showface command. I have tried increasing the x_pos variable from 24 and also the repeat until x_pos command. Sorry if I donāt quite understand the code. Thanks, Tom
So I was playing with the ideea of using mbot to make a more functional nightlight for my kid. I used the LED matrix to display a clock face and whipped up some scratch code to make it work like a clock. Unfortunately thereās no way to save the state or to keep the clock running when the mbot is off, so I set it up so that itās easy to reset the time using the included IR remote. It does the job alright, though it could be better.
Hereās the code:
Of course, make sure your clock code lines up with your LED port.