The Lego Camper model is one of the best ones I ever built. And I did built a lot. It comes along with so many details and special parts, which result in approx. 1300 pieces. Brilliant.
There is no way to pass a Lego shop without checkin' it out - or even worse - buying more Lego stuff. But anyway, I needed to have Buzz Lightyear and bought the package that contained him: the pizza planet jeep. It's cool because it contains a pizza canon. If you pull at the rear it shoots pizza's from the front.
I just tested the first pieces of code for my NXT vehicle. Right now it's just avoiding any obstacles. During the next weeks I'll expand the code towards some compass navigation stuff.
I just built another NXT prototype to test a few programs in terms of compass navigation. The vehicle carries two ultrasonic sensors, one light and the compass sensor. Apart from that the intention was to keep the setup as simple as possible. I'll try the code stuff during the next weeks.
Mal wieder ein neues Projekt: auf Basis einer älteren, von mir entworfenen Version habe ich einen neunen, fahrbaren Bot konstruiert. Er soll als autonomes Fahrzeug verschiedene Aufgaben lösen können. Ausgestattet ist er mit jeweils einem Licht-, Kompass-, Tast-, Schall- und Ultraschallsensor. Für den Code verwende ich JAVA / LEJOS. Die Code Basis (noch nicht schön aber reicht zum experimentieren) habe ich auf HUMYO bereitgestellt.
Another project: based on a former version I built a new, mobile bot. It will be an autonomous vehicle that can solve different tasks. It is equipped with light-, compass-, touch-, sound-, and ultrasonic- sensors. The code will be based on the JAVA / LEJOS library. The code basis (not perfect but enough for experimentation) can be found on HUMYO.
I enhanced the code a little bit that the cat can move without seriously hitting any objects. It is steered by the ultrasonic-, touch- and light sensor. I wrote a Java class to let the cat find a black spot by avoiding barriers. It’s kind of an ad hoc code, I’ll optimise it during the next days and will let it look a bit more organised.
After reorganising the code I think it’s a good basis to add more intelligence to it, maybe something for remembering the route and optimising the path.
But for now it does it’s job:
Java class:
package tospinout;
import lejos.nxt.*;
/** * 2008-12-27 author 2spinout */
public class Cat { static TouchSensor ts = new TouchSensor(SensorPort.S3); //initialize Touchsensor static UltrasonicSensor us = new UltrasonicSensor(SensorPort.S4); //initialize Touchsensor static LightSensor ls = new LightSensor(SensorPort.S2); //initialze Lightsensor
//drive train public static void main (String[] aArg) throws Exception { // PortA = Motor.A = ultrasonic movement motor // PortB = Motor.B = left driving motor // PortC = Motor.C = right driving motor // Port1 = SoundSensor // Port2 = LightSensor // Port3 = TouchSensor // Port4 = UltrasonicSensor
Due to the limited possibilities you have with the Lego Mindstorms software I just converted to the leJOS Java Virtual Machine and also flashed the NXT brick with the corresponding firmware. I think it will give me much more options in coding functionalities. In addition to that I’m using the Eclipse JDK. The firmware flashing and installation of the leJOS was very quick but I have to admit that the correct Eclipse setup took quite a while. It’s just because I never used it before. As this is all done now I’ll set up the first projects. Below you’ll find my first sample:
package tospinout;
import lejos.nxt.*;
/** * 2008-12-26 author 2spinout */
public class Cat {
public static void main (String[] aArg) throws Exception { // PortA = Motor.A = ultrasonic movement motor // PortB = Motor.B = left driving motor // PortC = Motor.C = right driving motor // Port1 = SoundSensor // Port2 = LightSensor // Port3 = TouchSensor // Port4 = UltrasonicSensor
I’ll try a project with Lego Mindstorms during the next weekends. I ordered a book that should teach me how to code the NXT model with Java. I’m looking forward to the results. As motivation I already played a little bit: