Skip navigation.

So In Conslusion...

The Official Big Eclipse 'Geek' Musings

Posts tagged with "Programming"

[Programming] RFID & Sound

, , , ...

So today's topic covers using RFID with sound(s).



The image above depicts the use of RFID and sound on the NXT brick. This simple program starts out with implementing the RFID sensors and connecting them to a Logic block. The input we are looking for in this case is the 'AND' operator. We then connect to a Switch block which contains our first sound (can be any sound) and a simple motor movement. When we pass the RFID keyfob (any) transponder before the RFID sensor, out robot plays a sound and moves forward.

The second stage of the program does pretty much the same thing, in reverse, but with one key exception; we use a second keyfob transponder. This was done to experiment with using multiple transponders to see how it would work. The key thing to remember when using multiple transponders is to be certain to do a "Live Update" and click the "Current Transponder" button in order to uniquely identify each transponder. Sound, movement, just about anything is possible using RFID on the NXT.

[Programming] RFID NXT Control

, , , ...

So i had a chance to finally play around with the RFID sensor. Yeah, yeah! It is certainly exciting. The RFID sensor was easy to implement and use, once imported. Importing was easy as well, i simply used the built-in block 'Import and Export' wizard.

With that in mind, here is a simple program that illustrates how to control the NXT with RFID.




Start out by displaying a message. Then, implement the RFID sensors and connect them with Data Wires. Pass the value from the RFID sensors to Data Wires on a Compare Block that will determine the state in which the robot is in, i.e., 'Stop' or 'Go'. We then connect the Data Wires to a switch which contains our movement. The movement in this case is simple, just a 'jog' forward, say something ("Bravo", in this case), and then execute a sharp left turn. That's about that.

How It Works: Run the program, and then pass the RFID transponder before the RFID sensor. Once read, the robot does his little run and turn move and then stops and awaits further instructions.

Clearly, RFID on NXT has infinite possibilities. We can have the robot carry out various tasks, use multiple transponders, 'go here, do this', identify objects using RFID, etc. Let your imaginations go wild with it. The RFID sensor does not disappoint and i am eager to delve deeper into more experiments with robotics and RFID.

[Programming] Simple Bump & Run

, , , ...

A simple "Bump & Run" program that i've been tinkering with. The idea is for the robot to run around, wnd when he bumps into an object, he utters "Ouch!", looks around, backs up, and then moves in a new direction. The only issue that i see, when he bumps into an object, he tends to want to keep going for an extra second or so, before backing up as he should.

NetBeans, NetBeans, NetBeans

, , , ...

So, i have a couple things to say about NetBeans that i have neglected to mention earlier due to my busy schedule. Firstly, the new version of the NetBeans IDE -- version 6.0.1 -- is available for download. To check out some of the features, visit.

Secondly, there is now a Social Community over at NetBeans. Yes, you read correctly, the guys over at NetBeans has joined the social networking revolution and has set up their own community. So if you are a fan of NetBeans or the Java programming language, or if you use NetBeans for programming in some other language -- C/C++, Ruby, etc., check it out and join the community.



December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31