Button Domination Timer - Arduino
Button Domination Timer - Arduino
£20
-
Advertiser
- Feedback 0 0 0 - Rating 0%
- Type of Advert For sale
- Item Condition As new
- Time Left THIS ADVERT IS 'UNCOMPLETED' - THIS MEANS THE ADVERTISER HASN'T BUMPED THIS LISTING, BUT IT COULD STILL BE WORTH CONTACTING THEM.
- Quantity 1
Description
Project description:
Button Domination Timer (DOMINATOR) is a device - stopwatch for sports such as Airsoft, Paintball. The stopwatch uses an Arduino control microcontroller (Arduino Uno / Nano) or a separate chip (Atmel) ATmega328P, which controls the entire system logic. The stopwatch includes an LCD character display measuring 16x2 (16 characters x 2 lines), or 20x4, on which the times of individual teams are displayed. There are 2 teams in the game - RED team and GRE team that play against each other and occupy the imaginary point that is formed by this device - DOMINATOR. At the beginning of the game, the display shows the times 00 hours, 00 minutes, 00 seconds for RED team , GRE team . Button Domination Timer uses button input for the action of occupying a point by a team member, as well as for input of a referee and eraser entity.
Thus, a total of 4 buttons for 4 system entities. Buttons are connected in INPUT_PULLUP mode. Pressing the button feeds the GND signal to the Arduino digital input terminal (Active-LOW switching signal). In the basic version, Domination Timer responds immediately to a press - the time counting for a given team is activated (the length of the press, the number of presses, etc. are not verified ...). The times are displayed on an LCD character display measuring 16x2 or 20x4, which communicates with the control microcontroller via the I2C bus. If a team member of the RED team occupies a point by pressing a button, a buzzer is triggered, which announces a change in the point with a short beep. Then the RED team's LED at this station will light up and the display will start adding time for that team. If the point is occupied by the GRE team and a team member presses the appropriate button, the buzzer sounds again, the GRE team LED lights up, the RED team time is paused and the GRE team time is calculated, which point he occupied.
If the organizer (referee) presses his button, both times are paused until a member of one of the teams makes user input. This type of input is thus suitable for starting a break, but can also end the game for evaluation. Button Domination Timer has a fourth button for the eraser entity, which pauses and resets both times to initial values as after starting the Button Domination Timer stopwatch. Used to restart the game, initialize a new game. The project is suitable for Airsoft events, sports facilities, or Airsoft teams, which can build the equipment. The advantage of the Button Domination Timer system is that it can be cloned and create X points with the same configuration via machine code, which can be loaded into an unlimited number of Arduino boards and chips and guarantees identical application operation. Players can thus score more points in the game, while at the end of the game the time is added up as long as which point was occupied by which team. There isn't available PCB design for that project.
The principle of functionality of the Button Domination Timer project on the hardware side:
Buttons are connected in INPUT_PULLUP mode, they use an internal 20 kΩ PULLUP resistor, which holds the logic level HIGH on the digital input. When the button is pressed, the LOW signal is fed to the digital input. Based on the button type and the firmware version used, the Arduino can verify the button hold length, while the counter logic is executed independently (the counter is active while the button is held). When the condition of the change at the point is met, the Arduino triggers a buzz, applying digital states to the LEDs. System logic is executed every 1000 ms - 1 Hz routine (timed via the millis() function, i.e. via Timer 0), regardless of the state of the digital inputs. In this routine, an active team check is performed, followed by time. Time is dynamically plotted on a 20x4 or 16x2 LCD character display. Display communicates with the Arduino via an I2C bus with a clock signal (SCL) of 100 kHz - Standard Speed. Rewriting of the display thus takes up to approx. 15 ms, while only the line of the given team that is active at the point is overwritten. With serious interest, the firmware for DOMINATOR can be extended to 3 or 4 teams.
Delivery of firmware of Button Domination Timer:
Software is delivered in machine code (.hex) at your mail for the ATmega328P architecture. It's compatible for Arduino Uno or Nano boards, or you can use standalone ATmega328P chip. Machine code cannot be modified on your side. I have two versions of firmware, one is for button press, other is for button hold for action. Button hold is limited to 5 seconds, it can't be modified on your side. I send both versions of firmware to each customer.
Firmware (.hex file) can be uploaded to microcontroller via Xloader: https://www.hobbytronics.co.uk/arduino-xloader
Or more experienced users can use AVRDUDE via console. For Arduino boards use 115200 baud/s upload speed. For Arduino Nano V3.0 clone use 57600 baud/s (Old Bootloader), otherwise firmware will be not uploaded.
Maximum time range that Button Domination Timer will show on display: 99 hours, 59 minutes, and 59 seconds
Power consumption: approx. 20mAh with 5V power supply. Convenient to power via power bank, charger from a phone with USB output.
Shareware firmware
Project can be tested for free with your hardware before buy or payment. There is available firmware on project's website. Firmware let to use project will all 4 entities (RED, GRE teams, Referee, Eraser), there is limitation of measured time up to 15 seconds for each team. It is mainly used to test whole compatibility of firmware with your hardware. In test version you can't test version of firmware with button hold (5 seconds of button hold to do change on point). Buttons in shareware version reacts immediately on press. Full project (paid) is available without time limitation, max visualised time: 99 hours, 59 minutes, 59 seconds. Firmware have implemented AUTO-I2C, so you can use any I2C LCD character display, it will automatically detect it.
Also if you don't have hardware right now, you can try Shareware firmware of Button Domination Timer directly in Wokwi simulator for free:
https://wokwi.com/projects/333897447732413011
Project website (available firmware, schematics, etc...): https://martinius96.github.io/Airsoft-DOMINATOR-RFID/en/button-dominator.html
Hardware for the project - Button Domination Timer:
- Arduino Uno / Nano / standalone ATmega328P chip
- LCD character display 20x4 / 16x2
- I2C converter for LCD display
- Passive buzzer (optional)
- 2x LED diodes
- 2x resistors (1x 220ohm for GREEN LED, 1x 1kohm for RED LED)
- 2x pullup resistors (optional for I2C bus)
- 4x pushbutton (connected in INPUT_PULLUP mode of operation using internal resistors)
Recommended Questions
There are no questions to display.