I understand the second idea (I read about it in the "10 one-kit wonders" book where you build an M&M sorter). But how do you do the first? Also, does it measure audible sounds or ultrasonic sounds when you use it like so? Also, is this in NXC or NXT-G?Other cool things to do: Use an ultrasonic sensor to measure sound level, and using a light sensor to measure color.
Omni-wheel balancing robot
-
- Posts: 125
- Joined: 29 Sep 2010, 18:07
- Contact:
Re: Omni-wheel balancing robot
- Stryker AKA Jordan
http://nxtbystryker.wordpress.com
http://nxtbystryker.wordpress.com
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Omni-wheel balancing robot
He was being sarcastic, as as you seemed to be.
Of course you can't use the Accelerometer to only measure tilt, just as much as you can't use the ultrasonic sensor to measure sound level, or a light sensor to measure color. If I understand correctly, he was using those two as examples of how silly your statement was (but not in a way to put you down).stryker001 wrote:The "secret" is to use the Accelerometer as a tilt sensor, not an acceleration sensor.hassenplug wrote:Other cool things to do: Use an ultrasonic sensor to measure sound level, and using a light sensor to measure color.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
Re: Omni-wheel balancing robot
Actually, you can (inaccurately, of course). Different wavelengths an' stuff.mattallen37 wrote:...or a light sensor to measure color.
Sorry 'bout this, but this awesome reference just occurred to me. If you want, you can ignore the spoiler (which only 1% of those who read this post will actually do):
Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE
Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Omni-wheel balancing robot
There is no way to "different wavelengths" (assuming you mean "differentiate") using the standard NXT light sensor (or standard color sensor). There is only one returned value by the sensor, and it is in relation to the brightness compared to the responsive wavelength of the phototransistor. If you knew the EXACT brightness that the sensor was "seeing", I suppose you could port the response curve into a program, and determine the wavelength, but IMO that would be insane to try to do.
The Lego sensors on the market that I know of that can actually tell the difference between light colors, are the Mindsensors camera, and the HiTechnic color sensor V2 (note that v1 and v2 use totally different technology, and only v2 will work). Neither of those are a spectrometer though, and both are only set up for the visible spectrum.
The Lego sensors on the market that I know of that can actually tell the difference between light colors, are the Mindsensors camera, and the HiTechnic color sensor V2 (note that v1 and v2 use totally different technology, and only v2 will work). Neither of those are a spectrometer though, and both are only set up for the visible spectrum.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 48
- Joined: 12 Jan 2011, 18:40
- Contact:
Re: Omni-wheel balancing robot
Surely the light sensor would return different values for e.g. yellow and red, as red is "darker" then yellow. So i assume that you could use the light sensor as color sensor in some easy ways, perhaps a brick sorter, where the surrounding light is always the same or something like this...
link to my youtube channel under my avatar!
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Omni-wheel balancing robot
But it is also more sensitive to red light than to yellow, that is why you would have to program in the response curve and have a very stable light supply. If you had control over the environment, you could use it to distinguish colors, but not really differentiate wavelengths.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 48
- Joined: 12 Jan 2011, 18:40
- Contact:
Re: Omni-wheel balancing robot
For a simple Bricksorter, you could at first calibrate each color for the specific environment by holding the brick in front of the sensor and measure the value.
If you then read a value that is within a small interval of the calibration value, then it's likely this color.
If you then read a value that is within a small interval of the calibration value, then it's likely this color.
link to my youtube channel under my avatar!
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: Omni-wheel balancing robot
I agree, using a proper software and hardware mix, you could probably distinguish between some of the lego colors.
Matt
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 125
- Joined: 29 Sep 2010, 18:07
- Contact:
Re: Omni-wheel balancing robot
A recent one being that BricxCC is not compiling anymore. Anyone else having that problem?stryker001 wrote:We have, in fact, ran into a few problems...
- Stryker AKA Jordan
http://nxtbystryker.wordpress.com
http://nxtbystryker.wordpress.com
Re: Omni-wheel balancing robot
I am locking this topic, it's gone so far off topic it's not even funny. If Aswin feels like having it reopened, he's free to contact me.
- Xander
- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Who is online
Users browsing this forum: No registered users and 0 guests