This past week I spent most of my time working on creating the arduino code that I wrote for the andruino bot on RoCo. In order to do so I had to create new blocks and components that would allow me to control servos using serial input. I alrady had blocks that take serial and convert it to a string. This past week I made blocks that check whether an input string is equivalent to a parameter string input by the user and that outputs a boolean reflecting the result of the comparison. I then ran into a problem: RoCo currently does not allow me to connect one output to multiple inputs. Since I have 4 servos to control I need to get that signal to four different blocks so I had to cleate a splitter block that would duplicate the output. After that I had to figure out how to switch between different inputs, The servo has to receive inputs from different string comparator blocks depending on what the string input was. It would be easy to increase the number of inputs on the servo until we can fit all of them but that would be arbitraty and is not easily modifiable for different purposes. In order to solve this I had to also create a multiplexer block that would allow me to shift between different inputs. Overall this process has revealed several weaknesses that RoCo currently has that should be looked at in future.

Next Post Previous Post