Page 1 of 1

Ultrasonic Sensor and Sound Sensor

Posted: 02 Aug 2012, 18:36
by legoesl
Hello,

Does anyone here know how to find or change the chirp period of the ultrasonic sensor through MATLAB or anything?

For the sound sensor, the data from the sound sensor is in [0...1023]. Does anyone know how it is related to the DB unit?

I'm new with the NXT and this site too. Thanks for helping. :D

Re: Ultrasonic Sensor and Sound Sensor

Posted: 02 Aug 2012, 19:02
by HaWe
hi,
in standard continuous shot mode the US shot frequency is hardware-coded - no chance to change it. On the other hand, you may select your own frequency by using the single shot mode (maybe not easy already for a beginner).
For the sound sensor, there is a dbA reading mode.
At least in the first case I recommend to use NXC instead of NXT-G for programming.

Re: Ultrasonic Sensor and Sound Sensor

Posted: 02 Aug 2012, 19:37
by legoesl
doc-helmut wrote:hi,
in standard continuous shot mode the US shot frequency is hardware-coded - no chance to change it. On the other hand, you may select your own frequency by using the single shot mode (maybe not easy already for a beginner).
For the sound sensor, there is a dbA reading mode.
At least in the first case I recommend to use NXC instead of NXT-G for programming.

Thank you. I'm using the MatLab to program the nxt now. When I get the sound sensor readings in Matlab, it returns numbers in the range of [0 1023]. I'm curious what the actual dB or dBA values of the readings are.