Post your NXJ projects, project ideas, etc here!
Moderators: roger, 99jonathan, imaqine
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??
- New User
- Posts: 1
- Joined: Wed Mar 23, 2011 9:12 am
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.
- Active User
- Posts: 131
- Joined: Tue Jul 20, 2010 2:01 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...
- leJOS Team Member
- Posts: 3003
- 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 2 guests