| | RCX remote control and the use of PICs
|
|
hi All, Inspired by some applications of the 16F84 PIC, we came up with the idea to make a IR-module, which is capable of doing all the InfraRed tasks we could imagine with the RCX. Well it hasn't come so far, but we have build a RCX IR-remote (...) (23 years ago, 17-Dec-01, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
|
|
| | Re: How to read the touch sensors on the Scout in NQC?
|
|
I was using my scout this past weekend as a coinbox detector to launch a mono rail. The touch sensors work exactly as Dave suggests. You can also just do the following: until(SENSOR_1); Waits until it's touched. until(!SENSOR_1); Waits until the (...) (23 years ago, 17-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
| | Re: Shuting up the RCX
|
|
(...) Change the firmware. Maybe we should make this a selling point of Lejos :-) (at the moment it beep too, I think) Jürgen (23 years ago, 17-Dec-01, to lugnet.robotics.rcx)
|
|
| | Re: How to read the touch sensors on the Scout in NQC?
|
|
(...) That is what I thought, but it will determine if the touch sensor is pressed. (...) Dunno, I'll try. Then again, if !=255 works... (...) If it were not for Perl I'd never write a line of code ^_^ (23 years ago, 17-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
| | Shuting up the RCX
|
|
Hi all. Just a simple question, does anybody know if there is anyway to stop rcx beeping everytime i turn it on or off. It is terribly annoying at 2:00 in the morning :-) Thank Francis (23 years ago, 17-Dec-01, to lugnet.robotics.rcx)
|
|
| | Re: How to read the touch sensors on the Scout in NQC?
|
|
This program turns on motor A and leaves it running until a touch sensor attached to input 1 is pressed, then it turns off the motor and plays a sound: task main() { On(OUT_A); until(SENSOR_1 == 1); Off(OUT_A); PlaySound(SOUND_UP); } Dave (...) (23 years ago, 16-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
| | Re: How to read the touch sensors on the Scout in NQC?
|
|
Hi Chris, (...) this is a bit crazy, unless your sensor value is a bit pattern. (...) This is sensible, but are you sure it's ok to use equality and not inequalities like SensorValueRaw(1) < 240? (...) but it's equivalent, also in C, where & is (...) (23 years ago, 16-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
| | Re: How to read the touch sensors on the Scout in NQC?
|
|
I've sort of solved my problem, but not in a way which really makes total sense. Both of the below fragments work as expectd: #1 if ((SensorValueRaw(1) & SensorValueRaw(0)) != 255) #2 if ((SensorValueRaw(1) != 255) || (SensorValueRaw(0) != 255)) (...) (23 years ago, 16-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
| | How to read the touch sensors on the Scout in NQC?
|
|
All, I'm feeling pretty stupid right about now. I've read the NQC docs, looked in the newsgroups, books, etc, but I can't seem to figure out how to read the touch sensors on my Scout. I want to implement a bumper checking task but no matter how I (...) (23 years ago, 16-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
| | Re: MIDI to NQC/RIS2.0 translator "Midi2LSC"
|
|
Makino-san, I'm gald you did this because you just saved me the trouble of doing it myself!!! Thanks, Chris Barker (...) (23 years ago, 16-Dec-01, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
|