 | | Lego Sensors
|
|
Can anyone tell me what sensors are available that aren't in the RIS & Ultimate Accessory Sets? I know about the temperature sensor, but I thought I had seen some discussion (somewhere) about a PH sensor. Is there such a thing, and are there others? (...) (25 years ago, 6-Jul-01, to lugnet.robotics)
|
| |
 | | Re: About SensorValueRaw(SENSOR_3) in Scout
|
|
(...) I think SensorValueRaw(2) should do what you want. I wrote a little test program: ---- int x, y; task main() { y = 0; while(true) { x = SensorValueRaw(2); if (x > (y + 10)) PlaySound(SOUND_CLICK); y = x; } } ---- and it seems to click a lot as (...) (25 years ago, 18-Jul-01, to lugnet.robotics.scout)
|
| |
 | | Re: newby question, anyway to say not greater than?
|
|
How 'bout less than or equal ? (25 years ago, 18-Jul-01, to lugnet.robotics.rcx)
|
| |
 | | Drive a motor using the sensor port - safe?
|
|
I accidentaly discovered that when the sensor port on the RCX is set to light sensor type, a motor connected to it will run. The motor can only run in one direction with a low torque, but it can be useful when you just need the extra motion and (...) (25 years ago, 18-Jul-01, to lugnet.robotics.rcx)
|
| |
 | | working c++ program?
|
|
Does anyone have a working c++ rcx program? I'm having trouble getting microsoft visual c++ 6.0 to integrate spirit.ocx successfully. Maybe if I had a working program to look at, I could figure it out. I got spirit "installed", however, I can't use (...) (25 years ago, 17-Jul-01, to lugnet.robotics.rcx)
|