Didik Eko Pramono
Published © CC BY

Silat Protector Scoring

body protector guna mendeteksi dan membedakan pukulan dan tendangan, alat ini bertujuan untuk menghitung nilai skor yg deperoleh atleet.

IntermediateFull instructions provided24 hours135
Silat Protector Scoring

Things used in this project

Hardware components

loadcell 5kg
ky-003 hall magnetic sensor
Arduino Nano R3
Arduino Nano R3
Modul Hx711

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

body protector


Read more


Design Hardware

Design project potector scoring like this picture


Source Code Protector Scoring System

open on Arduino ide
 Example using the SparkFun HX711 breakout board with a scale
 By: Nathan Seidle
 SparkFun Electronics
 Date: November 19th, 2014
 License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
 This example demonstrates basic scale output. See the calibration sketch to get the calibration_factor for your
 specific load cell setup.
 This example code uses bogde's excellent library: https://github.com/bogde/HX711
 bogde's library is released under a GNU GENERAL PUBLIC LICENSE
 The HX711 does one thing well: read load cells. The breakout board is compatible with any wheat-stone bridge
 based load cell which should allow a user to measure everything from a few grams to tens of tons.

 Arduino pin 2 -> HX711 CLK
 3 -> DAT
 5V -> VCC
 The HX711 board can be powered from 2.7V to 5V so the Arduino 5V power should be fine.

#include "HX711.h"
#include "math.h"

#define calibration_factor -1050 //This value is obtained using the SparkFun_HX711_Calibration sketch

#define DOUT  3
#define SCK  2

HX711 scale(DOUT, SCK);

float nilai;
float p;
int sensorm = 10;
int skor = 0;
void setup() {
  pinMode (sensorm, INPUT);
  //Serial.println("HX711 scale demo");
  scale.set_scale(calibration_factor); //This value is obtained by using the SparkFun_HX711_Calibration sketch
  scale.tare();  //Assuming there is no weight on the scale at start up, reset the scale to 0

void loop(){
  int val = 0;
//Serial.print(scale.get_units(), 1); //scale.get_units() returns a float 
p= scale.get_units();
 float a=p;
    nilai = floor(a);
    if (a-nilai <= 0.5){
    }else {
      nilai = ceil(a);
 //perhitungan skor
   int gram=nilai;
   val = digitalRead(sensorm);
   if(val == LOW and gram > 4){    //jika kedua sensor aktif maka skor akan bertambah 2 poin
       skor = skor + 2;
   else if(gram > 4){              //Jika hanya sensor load cell yang aktif  skor hanya bertambah 1 poin
       skor = skor +1;
   else{                           //jika kedua sensor tidak aktif atau hanya sensor magnet yang aktif maka nilai skornya tetap
     skor = skor - 0;
   delay(2000);                   //timernya 2 detik

Library Hx711

agar sensor tekanan berat (weighing sensor load cell HX711) bisa digunakan.
No preview (download only).


Didik Eko Pramono

Didik Eko Pramono

1 project • 0 followers
I'am Student in State Islamic University


Add projectSign up / Login