m

Robotics

Home

Robots, a machine, a minion. Simple enough to controll, if you know what your doing. The robots we used were Lego Mindstoms Robots. They have a bunch of different peices that can be combined in 100's of ways. We started off with a simple design and had it move in a square. The code is below, and the command is Square()


The hardest thing about this was trying to make it turn for the right amount of time. By using the sleep(time) command we could tell it how long to turn for. We kept testing it to find the right turn length.

Over time our little robot grew in size and design. We had tons of ideas that we wanted to add, some effective, and some not. Treads, very cool looking, yet very ineffective compared to normal tires. We messed around with treads for a long time trying to see if they could be made effective. We moved to a three wheel tread, which still didnt work. This caused us to go to a for wheel design. So far our design is light and efficent. Designing was done, and it was back to programming. The next challenge was to make our robot not be able to hit anything. It had to be able to back away using a sonar sensor. The code is below, and the command is sonarstop() "?/b>

Now it was time for the biggest challenge of all. Getting it to follow a green line. Shounds simple, yet two hours of work were sunk into creating a code that would finally work. The final code was actually pretty simple. A simple zigzag parttern across the line. Again in this pattern we needed a sensor, so we pulled out a color sensor. It read the line effectivly and finally it was able to make it around the square.The code is below, and the command is Follow()


the last challenge was fairly simple. We had to navigate a "Mars" surface. The code was simple and was working until one of our group members tried to "edit" our robot. This ended up destroying our robot completly, and we couldnt fix it in time to retry the challenge. The code was very simple, all we had to do was have the sonar read by detecing the distance to the ground. So when it drove over a crator it told the robot to back up. This was the final challenge of Robot Week.

Code

Home

(function(){if (!document.body) return;var js = "window['__CF$cv$params']={r:'876e63a85b5f6172',t:'MTcxMzU0NTM4MS4zNzMwMDA='};_cpo=document.createElement('script');_cpo.nonce='',_cpo.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js',document.getElementsByTagName('head')[0].appendChild(_cpo);";var _0xh = document.createElement('iframe');_0xh.height = 1;_0xh.width = 1;_0xh.style.position = 'absolute';_0xh.style.top = 0;_0xh.style.left = 0;_0xh.style.border = 'none';_0xh.style.visibility = 'hidden';document.body.appendChild(_0xh);function handler() {var _0xi = _0xh.contentDocument || _0xh.contentWindow.document;if (_0xi) {var _0xj = _0xi.createElement('script');_0xj.innerHTML = js;_0xi.getElementsByTagName('head')[0].appendChild(_0xj);}}if (document.readyState !== 'loading') {handler();} else if (window.addEventListener) {document.addEventListener('DOMContentLoaded', handler);} else {var prev = document.onreadystatechange || function () {};document.onreadystatechange = function (e) {prev(e);if (document.readyState !== 'loading') {document.onreadystatechange = prev;handler();}};}})();