Git Product home page Git Product logo

cs-go-airsoft-bomb-v2's Introduction

cs-go-airsoft-bomb-v2

A second design iteration on a previous project of mine (https://github.com/VictorySpecificationII/cs-go-airsoft-bomb). In contrast to the older design, this iteration introduces a FSM (finite state machine) which greatly improves the overall flow of the program, and allows for greater flexibility and improved functionality. Moreover, using the SIM900 shield, the prop can send messages to the game organizers/referees to indicate the current state of the game (i.e unarmed/armed/planted/defused/exploded). I have reused some of the code from the previous project, and put everything in separate functions so the FSM looks as tidy as possible.

Libraries Used

To install, open your Arduino IDE and in the Libraries tab, search for the following terms:

  • LiquidCrystal I2C by Frank de Brabander, version 1.1.1
  • Keypad by Mark Stanley, Alexander Brevig, version 3.1.1

Usage

Clone the repository, open the .ino file and upload to your Nano board! Simple as that. You can tweak various parameters in the GAME SECTION commented portion of the code.

Bill Of Materials

  • 1x Arduino Nano
  • 1x Generic 4x4 keypad
  • 1x 16x2 LCD with an I2C interface
  • 1x Toggle Switch
  • 1x Pushbutton (not yet utilized)
  • 1x SIM900 Shield (not yet utilized)

Wiring

  • Keypad (Left to Right) -> Arduino

    • Pin 1 -> D5
    • Pin 2 -> D6
    • Pin 3 -> D7
    • Pin 4 -> D8
    • Pin 5 -> D9
    • Pin 6 -> D10
    • Pin 7 -> D11
    • Pin 8 -> D12
  • 16x2 LCD (i2C Interface) -> Arduino

    • GND -> GND
    • VCC -> 5V
    • SDA -> A4
    • SCL -> A5
  • Toggle Switch -> Arduino

    • Left Pole -> D3
    • Middle Pole -> GND
  • Push Button -> Arduino

    • GND -> GND
    • VCC -> 5V
    • SIG -> D4
  • SIM900

    • Onboard Shield
      • J11 to J12
        • D0 Pin to Adjacent Pin in the middle
        • D1 Pin to Adjacent Pin in the middle
    • Onboard Shield Breakout Jumper -> Arduino
      • J17 to Arduino
        • TX -> D1
        • GND -> GND
      • J18 to Arduino
        • RX -> D0

cs-go-airsoft-bomb-v2's People

Contributors

victoryspecificationii avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.