Arduino - Futbolin

 
Vista:
sin imagen de perfil
Val: 10
Ha disminuido 1 puesto en Arduino (en relación al último mes)
Gráfica de Arduino

Futbolin

Publicado por Jesus (4 intervenciones) el 20/12/2020 10:33:58
Buenos días y feliz navidad

Estoy buscando un sistema de contador de goles con sensores para un futbolin.

Buscando por la red vi placa arduino uno r3 y buscando encontré vuestra web

Y era por si algún alma bondadosa me podría ayudar a desarrollarlo y explicar que tengo que comprar

Gracias por anticipado
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil
Val: 10
Ha disminuido 1 puesto en Arduino (en relación al último mes)
Gráfica de Arduino

Futbolin

Publicado por Jesus (4 intervenciones) el 20/12/2020 11:02:05
Busco algo parecido a esto

https://www.google.es/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwjE6eCApdztAhUC0BoKHUVVDCQ4ChC3AjAAegQIAhAC&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DhXNe2HnpnkI&usg=AOvVaw32gupluMQWdLK258N8somJ
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil
Val: 10
Ha disminuido 1 puesto en Arduino (en relación al último mes)
Gráfica de Arduino

Futbolin

Publicado por Jesus (4 intervenciones) el 20/12/2020 11:29:58
No se si esto podría ayudar

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include <Wire.h>
#include <Adafruit_GFX.h> #include "Adafruit_LEDBackpack.h"
Adafruit_7segment matrix = Adafruit_7segment();
int Rot; int Blau;
#define LEDPIN 13
#define SENSORPIN 4 #define SENSORPIN2 2
#define SENSORPIN3 7
int sensorState = 0, lastState=0; int sensorState2 = 0, lastState2=0; int sensorState3 = 0, lastState3=0;
void setup() { pinMode(LEDPIN, OUTPUT);
pinMode(SENSORPIN, INPUT); digitalWrite(SENSORPIN, HIGH);
pinMode(SENSORPIN2, INPUT); digitalWrite(SENSORPIN2, HIGH);
pinMode(SENSORPIN3, INPUT);
 
digitalWrite(SENSORPIN3, HIGH);
Rot = 0; Blau = 0;
matrix.begin(0x70);
 
}
 
void loop(){
sensorState = digitalRead(SENSORPIN); sensorState2 = digitalRead(SENSORPIN2);
sensorState3 = digitalRead(SENSORPIN3);
matrix.writeDigitNum(0, matrix.writeDigitNum(1, matrix.drawColon(true); matrix.writeDigitNum(3, matrix.writeDigitNum(4, matrix.writeDisplay();
(Rot / 10) ); Rot % 10 );
(Blau / 10) ); Blau%10);
if (sensorState == LOW) digitalWrite(LEDPIN, HIGH);
} else {
digitalWrite(LEDPIN, LOW);
}
if (sensorState && !lastState) {
Serial.println("Unbroken");
}
if (!sensorState && lastState) {
Serial.println("Broken"); Serial.println(Rot);
 
Rot = Rot + 1;
 
}
 
if (sensorState2 && !lastState2) { Serial.println("2 Unbroken");
}
if (!sensorState2 && lastState2) {
Serial.println("2 Broken"); Blau = Blau + 1;
if (sensorState3 && !lastState3) { }
if (!sensorState3 && lastState3) {
Serial.println("reset"); Blau = 0;
Rot = 0;
}
lastState = sensorState; lastState2 = sensorState2; lastState3 = sensorState3;

7E912498-04DD-4C98-8EBA-D7F7947C3C5B
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar