Today I spend the whole morning to make an app for the Lego Medical Assistance, I’m building. The app must send a file to the robot which the robot can read. The file from the robot needs a Carriage Return (Enter) and Line Feed.
The NXT only reads numbers which are divided by a Carriage Return and Line Feed.
The problem was that Appinventor (http://appinventor.mit.edu/) don’t place a Carriage Return. It places only the Line Feed between two lines when you type in ”/n” (for Line Feed).
Appinvenor only place Line Feed.
So I tried it a differend way. I make a list called Medicines and tried to save that. And it worked! But the only problem was that it now placed ” around the numbers.
It now placed ” around the numbers. But the problem with the Carriage Return is solved.
The NXT doesn’t read the ”. So that was another problem. My mother found a solution on the Internet. You must use a replace element for the text in Appinventor. You fill in the file and what you want to replace. I wanted to replace the ” for nothing so at the ”replacement” I place a textbox with noting. And now I have a file which the NXT can read 😀 .
This Lego NXT Robot plays the game Master Mind with you. You try (in 5 times) to guess the colorcode and then you win the game. On the screen you can see the colors what you have guessed the five times: R=red B=blue Y=yellow G=green. At the right side of the line is a number. The number is the score how many balls are in the right place.