author
4Comments

Tell us about yourself!

  • LargoV followed arduino channel 1 year ago
  • LargoV commented on j44's instructable Arduino Laser Tag - Duino Tag1 year ago
    Arduino Laser Tag - Duino Tag

    On which numbers is this code based?""IRt = (int) (500/IRfrequency); IRpulses = (int) (IRpulse / (2*IRt));IRt = IRt - 4; //It allows for the time taken for commands to be executed.""

    View Instructable »
  • LargoV commented on j44's instructable Arduino Laser Tag - Duino Tag2 years ago
    Arduino Laser Tag - Duino Tag

    A 5V one

    "void tagCode() { // Works out what the players tagger code (the code that is transmitted when they shoot) isbyte1[0] = myTeamID >> 2 & B1;byte1[1] = myTeamID >> 1 & B1;byte1[2] = myTeamID >> 0 & B1;byte1[3] = myPlayerID >> 4 & B1;byte1[4] = myPlayerID >> 3 & B1;byte1[5] = myPlayerID >> 2 & B1;byte1[6] = myPlayerID >> 1 & B1;byte1[7] = myPlayerID >> 0 & B1;byte2[0] = myWeaponID >> 2 & B1;byte2[1] = myWeaponID >> 1 & B1;byte2[2] = myWeaponID >> 0 & B1;byte2[3] = myWeaponHP >> 4 & B1;byte2[4] = myWeaponHP >> 3 & B1;byte2[5] = myWeaponHP >> 2 & B1;byte2[6] = myWeaponHP >> 1 & B1;byte2[7] = myWeaponHP >> 0 & B1;myParity = 0;for ...

    see more »

    "void tagCode() { // Works out what the players tagger code (the code that is transmitted when they shoot) isbyte1[0] = myTeamID >> 2 & B1;byte1[1] = myTeamID >> 1 & B1;byte1[2] = myTeamID >> 0 & B1;byte1[3] = myPlayerID >> 4 & B1;byte1[4] = myPlayerID >> 3 & B1;byte1[5] = myPlayerID >> 2 & B1;byte1[6] = myPlayerID >> 1 & B1;byte1[7] = myPlayerID >> 0 & B1;byte2[0] = myWeaponID >> 2 & B1;byte2[1] = myWeaponID >> 1 & B1;byte2[2] = myWeaponID >> 0 & B1;byte2[3] = myWeaponHP >> 4 & B1;byte2[4] = myWeaponHP >> 3 & B1;byte2[5] = myWeaponHP >> 2 & B1;byte2[6] = myWeaponHP >> 1 & B1;byte2[7] = myWeaponHP >> 0 & B1;myParity = 0;for (int i=0; i<8; i++) {if(byte1[i] == 1){myParity = myParity + 1;}if(byte2[i] == 1){myParity = myParity + 1;}myParity = myParity >> 0 & B1;}" Is this section needed?

    View Instructable »