L1F16
Baru
17 Barang item
Pemberitahuan: Barang terakhir di stok!
Tanggal ketersediaan:
Jumlah | Harga | Anda menghemat |
---|---|---|
5 | Rp. 145.000 | Sampai dengan Rp. 25.000 |
1 coin acceptance,handle different countrys coins,pulse output signal ,12v input
Features:
-Sample coin comparison type validator
-Programmable for one coin type based on coin material.thickness and size
-Quick release face plate for easy maintenance
The coin slot is set up as follows:
Step 1: Press and hold the set key for 3 seconds, the indicator light is on.
Step 2: Invest 30 identical coins or tokens equally, and the lights will be set out.
Step 3: If you have less than 30 coins, you can also set it up by pressing the setting button to turn off the lights.
*Tidak ada manual book
*Paket penjualan tanpa kabel
Wiring dg Arduino :
-DC 12v = Adaptor 12V
-Coin Signal = Pin 3 Arduino
-GND= GND dari 12V
-Counter = NC/ TIDAK DIGUNAKAN
pastikan ground dr external power supply tersambung dg Ground Arduino
SW1= NC
Kecepatan medium/ bebas
Contoh kode dengan uang koin Rp.500,- kuningan :
volatile byte CoinPulseCount = 0;
byte NewCoinInserted;
byte Command = 0;
int OpticalCountPin = 3;
volatile unsigned long PulseTime;
float CurrentCredit;
float NewCurrentCredit;
String coin = "500 rupiah";
void showCredit(){
NewCurrentCredit = (CurrentCredit) + NewCurrentCredit;
Serial.print("Total Credit: Rupiah");
Serial.println(NewCurrentCredit);
}
void setup(){
Serial.begin(9600);
Serial.println("Waiting...");
Serial.println();
pinMode(OpticalCountPin, INPUT);
attachInterrupt(1, CoinPulse, RISING);
}
void loop(){
if(CoinPulseCount > 0 && millis() - PulseTime > 200){
NewCoinInserted = CoinPulseCount;
CoinPulseCount = 0;
}
if(NewCoinInserted)
{
Serial.println(coin + " inserted");
CurrentCredit = 500;
showCredit();
NewCoinInserted = 0;
}
}
void CoinPulse(){
CoinPulseCount ++;
PulseTime = millis();
}