Directional movement with CLAP

Post your NXJ projects, project ideas, etc here!

Moderators: 99jonathan, roger, imaqine

Directional movement with CLAP

Postby axeru » Wed Mar 23, 2011 9:16 am

hi, i'm working on a project using fuzzy logic and neural network... i jusrw ant to know what data type received from nxt 2.0 sound sensors and how can i view it??
axeru
New User
 
Posts: 1
Joined: Wed Mar 23, 2011 9:12 am

Re: Directional movement with CLAP

Postby s.frings » Sun Mar 27, 2011 1:06 pm

The sound sensor provides an analog voltage that is read via the NXT internal 10 bit analog to digital converter. So you get an integer value.

The ultrasonic sensor is a digital one connected via I2C bus and it provides an integer value of the distance of 0-255cm by default.
s.frings
Active User
 
Posts: 131
Joined: Tue Jul 20, 2010 2:01 pm

Re: Directional movement with CLAP

Postby gloomyandy » Sun Mar 27, 2011 1:54 pm

The best way to understand how a sensor works is probably to write a small program that reads the sensor and captures the results. You do this using either the data logging class or by simply connecting to the NXT using the leJOS remote console command and then using the RConsole API to print the results. You can then easily copy and paste the output from your program into something like excel and graph the results to see what is going on... Looking at some actual data is a great way to get a feel for how a sensor can be used...
User avatar
gloomyandy
leJOS Team Member
 
Posts: 3632
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK


Return to NXJ Projects

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff