{"id":830,"date":"2013-06-14T13:10:53","date_gmt":"2013-06-14T03:10:53","guid":{"rendered":"http:\/\/legoeng.local\/?p=830"},"modified":"2020-03-30T21:45:09","modified_gmt":"2020-03-30T10:45:09","slug":"nxt-a-sketch","status":"publish","type":"post","link":"http:\/\/legoeng.local\/nxt-a-sketch\/","title":{"rendered":"NXT-A-Sketch"},"content":{"rendered":"

Just like its little red counterpart, the Etch-A-Sketch\u00ae, the NXT-A-Sketch lets you turn two knobs to draw your picture. However, rather than using a stylus and aluminum powder, the LEGO NXT model is entirely digital, making use of the Servo motors and the LCD display.<\/p>\n

\"nxt-a-sketchsmall\"<\/p>\n

Building<\/strong><\/p>\n

To build the NXT-A-Sketch, two motors are attached to the brick, one on each side. Then a touch sensor is secured to the body of the NXT with connector pegs (it’s a good idea to attach this somewhere so it will not be pressed accidentally). After this, run a wheel and axle through each motor to serve as the knobs for the NXT-A-Sketch<\/p>\n

\u00a0Programming<\/strong><\/p>\n

The program for the NXT-A-Sketch is quite simple. In an infinite loop, the program reads the motor position (divides it by 20 to work within the scale of the screen) and uses these coordinates to draw a pixel at that position. Whereas you once would have been required to vigorously shake your masterpiece to fully clear the screen, the NXT-A-Sketch can be easily reset by pressing the touch sensor.<\/p>\n

By Kevin Morris and Sarah Swan<\/em><\/p>\n

Downloads<\/h2>\n