Published © GPL3+

iRockPaperScissors - The Particle Argon Game

A new version of the game “Rock, Paper, Scissors” that integrates modern technologies like the Particle Argon, IFTTT app, and Google Sheets

IntermediateFull instructions provided3.5 hours62
iRockPaperScissors - The Particle Argon Game

Things used in this project

Hardware components

Particle Argon
LED (generic)
LED (generic)
The particle argon kit comes with it's own red LED. Purchasing another red LED is not required.
Elegoo Sensor Modules Kit (Membrane Switch)
Only the Membrane Switch (Keypad) will be used for this project.
Breadboard Wire Kit
Digilent Breadboard Wire Kit
Any Breadboard and wire kit will be compatible with the particle argon for this project.

Software apps and online services

Particle Build Web IDE
Particle Build Web IDE
Maker service
IFTTT Maker service
Google Sheets
Google Sheets


Read more


Circuit Schematic

The 4x4 Membrane Switch (Keypad) utilizes eight wires for eight different connections to the particle argon (4 rows, 4 columns). These wires should be connected from the keypad to the argon's data pins from D1 to D8. The shorter leg of the red LED should be wired to ground. The longer leg of the red LED should be connected to 3.3V positive and in series with the 220 ohm resistor and the D9 argon data pin. The other end of the 220 ohm resistor should be wired to ground.


Code for iRockPaperScissors Game

The software used to create the code was the website. The website should also be connected to the particle argon via wifi to be able to flash the code created to the parrticle argon.
#include <Keypad_Particle.h>

const int ROW_NUM = 4; //four rows
const int COLUMN_NUM = 4; //4 columns

int led1 = D9; // Instead of writing D9 over and over again, we'll write led1
// You'll need to wire an LED to this one to see it blink.

char keys[ROW_NUM][COLUMN_NUM] = {

byte pin_rows[ROW_NUM] = {8, 7, 6, 5}; //connect to the row pinouts of the keypad
byte pin_column[COLUMN_NUM] = {4, 3, 2,1}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad( makeKeymap(keys), pin_rows, pin_column, ROW_NUM, COLUMN_NUM );

void setup() { 

  //For your project you can change "keypressedharrison" to "keypressed____" and insert your name or any other word.
   // Configure the pins to be outputs
   pinMode(led1, OUTPUT);

      //Register our Particle function here
   Particle.function("led", ledControl);

void loop(){
  char key = keypad.getKey();
if (key){
     //For your project you can change "keypressedharrison" to "keypressed____" and insert your name or any other word.
    Particle.publish("keypressedharrison", String(key), PUBLIC);


int ledControl(String command)

   // find out the state of the led
   // you can write any word instead of "LOW". This is simply the command used to trigger your function. 
   if(command == "LOW"){
	   digitalWrite(led1, LOW);
	   delay (1000);


// Particle Library: <Keypad_Particle.h>
// Code for Keypad:
// Reference code for LED:




1 project • 0 followers
Thanks to Jameson Cunningham, Kenneth Elrod, and Harrison Peddle .


Add projectSign up / Login