Some electronics for the plotter
 
 1. Optical rotation-sensor


 

This optical rotation-sensor returns a small value to the RCX, if the light from the LED reaches the phototransistor. The range is about 5 in the case of percent-mode. A routine should look something like:



###define RotationSensorValue = 1
                AddOrSub   = 2 {depends on the direction; should be set for example when a motor changes his direction}
BeginOfTask(Task_1)
  loop(con,forever)
    while(senval,sensor_1,GT,con,0)  {loops until sensor-value becomes zero}
     endwhile()
    sumvar(rotationSensorValue,var,AddOrSub)
      {or do something else}
   while(senval,sensor_1,LT,con,5)  {loops until sensor-value becomes smaller than 5}
    endwhile()
  endloop()
endOfTask()



2. Simple angle-sensor


This is our version of Mr Sensor's angle sensor.
For further information: look at http://www.extremenxt.com/lego.htm



3. Three touch sensor expander

see http://www.extremenxt.com/lego.htm


  RetourMain page