We have set our goal for Lego World 2014: two independent trains, laserguns, a train marshalling yard and much more. Read more …
Our first day at Lego World 2013 in Utrecht (The Netherlands) went well. The train made lots of succesful runs, resulting in many happy faces on the children (and their parents) when the chewing ball in the right color was delivered.
A time lapse video of our visit can be viewed at our Youtube channel:
It was hard working, the last weeks. We had some major bugs in our software, and we had already some worse case scenario’s ready if we didn’t make it in time for Lego World 2013 (Utrecht, The Netherlands).
This evening, we had a breakthrough. All major issues are solved. Below you find a demo of our software. Please come and visit us at Lego World. We are present from Thursday Oct 17 to Saturday Oct 19.
See you there!
I have figured out what the protocol is for the EV3 for the different types (string, number and boolean). I am lucky that the ‘write protocol’ is exactly the same as the ‘read protocol’. So, I figured out the protocol by writing a simple program on the EV3 to send a string, a number and a boolean and then read the bytes at a PC test application. Then it is simple: just write these bytes back to the EV3 for the different types.
Now, I have to make the application more robust. E.g. at this moment, if you [disconnect] the NXT or EV3, the application will crash since the NXT mailboxes are still being polled for incoming messages. If I have solved these problems I will start a beta test…. Volunteers can send me an email.
To be continued…
I’m working on a simple PC application to make it possible to use the NXT brick as an EV3 remote control. The mailbox mechanism is different for the two bricks, the PC application is therefor needed to convert the messages from the NXT format to the EV3 format. By this means, you can send messages (e.g. if you press a button at the NXT) to the EV3 (e.g. to control a motor). A simple test version is already working: using two buttons at the NXT to control two motors at the EV3.
Detailed impression of the application “under progress”:
The program at the NXT side:
- press the touch sensor at port 1: send string “LEFTDRIVE” through mailbox 1
- release the touch sensor at port 1: send string “LEFTSTOP” through mailbox 1
- press the touch sensor at port 2: send string “RIGHTDRIVE” through mailbox 2
- release the touch sensor at port 2: send string “RIGHTSTOP” through mailbox 2
The program at the EV3 side:
The EV3 program listens to mailbox M1 and M2:
- if string “LEFTDRIVE” is received on mailbox M1, motor B is started
- if string “LEFTSTOP” is received on mailbox M1, motor B is stopped
- if string “RIGHTDRIVE” is received on mailbox M1, motor C is started
- if string “RIGHTSTOP” is received on mailbox M1, motor C is stopped
To be continued….
Our project and blog has drawn other people attention, who have a simular or adjacent interest with Mindstorms and/or Train automation. At the new added Links page I have listed their websites.