Spybotics – pbrick.info https://pbrick.info Random information about all discontinued LEGO pbricks (programmable bricks) Fri, 24 Oct 2014 18:28:49 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.5 “New” Spybotics missions! https://pbrick.info/2013/10/new-spybotics-missions/ https://pbrick.info/2013/10/new-spybotics-missions/#respond Thu, 17 Oct 2013 17:31:44 +0000 http://pbrick.info/?p=170 Added a page containing extra Spybotics missions that used to be available from LEGO’s website. Also worked a bit on the website’s layout, it was a bit crowded.

Share

]]>
https://pbrick.info/2013/10/new-spybotics-missions/feed/ 0
Spybotics FAQs added https://pbrick.info/2013/10/spybotics-faqs-added/ https://pbrick.info/2013/10/spybotics-faqs-added/#respond Tue, 15 Oct 2013 20:12:36 +0000 http://pbrick.info/?p=123 Added Spybotics FAQs page today, which used to be on LEGO’s website until 2008 when it disappeared.

Share

]]>
https://pbrick.info/2013/10/spybotics-faqs-added/feed/ 0
Controlling a Spybotics pbrick using an RCX https://pbrick.info/2013/10/controlling-a-spybotics-pbrick-using-an-rcx/ https://pbrick.info/2013/10/controlling-a-spybotics-pbrick-using-an-rcx/#respond Thu, 03 Oct 2013 17:43:23 +0000 http://pbrick.info/?p=35 The LEGO MindStorms RCX is capable of sending remote control IR signals to a LEGO Spybotics brick. This opens up a ton of new possibilities, essentially giving the RCX access to two more motors (theoretically even six as you can control up to three Spybotics over different channels).

The RCX has been set up real simply with three touch sensors, one for left, one forward and one right. The programming is made pretty easy using NQC:

task main()
{
  /* Set all three Sensor types to Touch sensors */
  SetSensorType(SENSOR_1, SENSOR_TYPE_TOUCH);
  SetSensorType(SENSOR_2, SENSOR_TYPE_TOUCH);
  SetSensorType(SENSOR_3, SENSOR_TYPE_TOUCH);

  /* Set infrared power to High, so we can cover longer distance. */
  SetTxPower(TX_POWER_HI);

  while(true) // Loop forever
  {
    if (SensorValue(0)==1) //button 1 pressed
    {
      SendRCMessage(RC_CHANNEL_1, RC_CMD_REV, RC_CMD_FWD);
    }
    if (SensorValue(1)==1) //button2 pressed
    {
      SendRCMessage(RC_CHANNEL_1, RC_CMD_FWD, RC_CMD_FWD);
    }
    if (SensorValue(2)==1) //button3 pressed
    {
      SendRCMessage(RC_CHANNEL_1, RC_CMD_FWD, RC_CMD_REV);
    }
    Wait(5);
  }
}

This of course assumes your Spybotics brick has been configured to RC channel 1. Download the program: rcx2spy_remote.nqc

Share

]]>
https://pbrick.info/2013/10/controlling-a-spybotics-pbrick-using-an-rcx/feed/ 0