code fausse bombe

Hello all
voila mon problème , je possède un code pour une fausse bombe , quand j'ouvre le code grâce a arduino il me met plusieurs erreur , tone , timer , keypad , ect ...

est ce qu'une bonne âme ce sent d'attaque pour corriger les erreurs afin que j'ai juste a rentrer mon code dans l'arduino , ce problème me rend fou . j'ai beau regarder partout sur google rien ne fait sortir le code sans fautes , merci d'avance .

site internet du code : Air Open Soft

salut ...

sans les erreurs que tu obtiens, ni ton code, ni ta config, ni ta carte ... ça va être dur de t'aider ...

C'est parce que tu as été repéré par la police anti-terroriste.
:grin: ou >:( ?

carte : UNO R3

ma config : ou je peux voir ça ?

code rattacher a la réponse .

désoler.

erreur :
bomb_project4_objet:40: error: ‘Keypad’ does not name a type
bomb_project4_objet.ino: In function ‘void setup()’:
bomb_project4_objet:88: error: ‘keypad’ was not declared in this scope
bomb_project4_objet:98: error: ‘class Timer’ has no member named ‘setTime’
bomb_project4_objet:107: error: ‘keypad’ was not declared in this scope
bomb_project4_objet:108: error: ‘NO_KEY’ was not declared in this scope
bomb_project4_objet.ino: In function ‘void loop()’:
bomb_project4_objet:151: error: ‘keypad’ was not declared in this scope
bomb_project4_objet:152: error: ‘NO_KEY’ was not declared in this scope
bomb_project4_objet:165: error: ‘NO_KEY’ was not declared in this scope
bomb_project4_objet.ino: In function ‘void timer()’:
bomb_project4_objet:212: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:212: error: ‘class Timer’ has no member named ‘minutes’
bomb_project4_objet:212: error: ‘class Timer’ has no member named ‘hours’
bomb_project4_objet:212: error: ‘class Timer’ has no member named ‘minutes’
bomb_project4_objet:212: error: ‘class Timer’ has no member named ‘hours’
bomb_project4_objet:212: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:214: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:217: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:217: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:217: error: ‘class Timer’ has no member named ‘minutes’
bomb_project4_objet:217: error: ‘class Timer’ has no member named ‘hours’
bomb_project4_objet:222: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:222: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:222: error: ‘class Timer’ has no member named ‘minutes’
bomb_project4_objet:222: error: ‘class Timer’ has no member named ‘hours’
bomb_project4_objet:227: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:227: error: ‘class Timer’ has no member named ‘minutes’
bomb_project4_objet:227: error: ‘class Timer’ has no member named ‘hours’
bomb_project4_objet:235: error: ‘class Timer’ has no member named ‘decrement’
bomb_project4_objet.ino: In function ‘void refreshTimeLcd()’:
bomb_project4_objet:250: error: ‘class Timer’ has no member named ‘hours’
bomb_project4_objet:253: error: ‘class Timer’ has no member named ‘hours’
bomb_project4_objet:255: error: ‘class Timer’ has no member named ‘hours’
bomb_project4_objet:260: error: ‘class Timer’ has no member named ‘hours’
bomb_project4_objet:265: error: ‘class Timer’ has no member named ‘minutes’
bomb_project4_objet:268: error: ‘class Timer’ has no member named ‘minutes’
bomb_project4_objet:270: error: ‘class Timer’ has no member named ‘minutes’
bomb_project4_objet:275: error: ‘class Timer’ has no member named ‘minutes’
bomb_project4_objet:280: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:283: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:285: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet:290: error: ‘class Timer’ has no member named ‘seconds’
bomb_project4_objet.ino: In function ‘int readHours()’:
bomb_project4_objet:304: error: ‘keypad’ was not declared in this scope
bomb_project4_objet:305: error: ‘NO_KEY’ was not declared in this scope
bomb_project4_objet:308: error: ‘NO_KEY’ was not declared in this scope
bomb_project4_objet.ino: In function ‘int readMinutes()’:
bomb_project4_objet:331: error: ‘keypad’ was not declared in this scope
bomb_project4_objet:332: error: ‘NO_KEY’ was not declared in this scope
bomb_project4_objet:338: error: ‘NO_KEY’ was not declared in this scope
bomb_project4_objet.ino: In function ‘int readSeconds()’:
bomb_project4_objet:357: error: ‘keypad’ was not declared in this scope
bomb_project4_objet:358: error: ‘NO_KEY’ was not declared in this scope
bomb_project4_objet:364: error: ‘NO_KEY’ was not declared in this scope

bomb_project4_objet.ino (8.52 KB)

68tjs:
C'est parce que tu as été repérer par la police anti-terroriste.
:grin: ou >:( ?

:wink: j'espere pas

bonjour
tu a bien installé toutes les libs ?

#include <Keypad.h>
#include <LiquidCrystal.h>
#include <Tone.h>
#include <Timer.h>

j'essaye mais rien n'y fait , quel est la procedure point par point pour installer les libs ?
je galere vraiment sur cette partie , d'ou la demande de codage a ma place .

j'ai aucune idée de comment rentrer ça et ensuite aucune idée de ou les prendre . A chaque fois que j'a rentrer par exemple tone.h il me met une autre erreur pour timer.h ,

en faite je suis une qu*** desoler

ritcho57600:
j'essaye mais rien n'y fait , quel est la procedure point par point pour installer les libs ?

voir par exemple ici

je vais voir merci , j’essaye et reviens si difficulter il y a . lol
voila mon ad email ; chatpitre57600@gmail.com

communication plus rapide au cas ou !

voici une erreur

bomb_project4_objet.ino: In function 'void setup()':
bomb_project4_objet:98: error: 'class Timer' has no member named 'setTime'
bomb_project4_objet.ino: In function 'void timer()':
bomb_project4_objet:212: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:212: error: 'class Timer' has no member named 'minutes'
bomb_project4_objet:212: error: 'class Timer' has no member named 'hours'
bomb_project4_objet:212: error: 'class Timer' has no member named 'minutes'
bomb_project4_objet:212: error: 'class Timer' has no member named 'hours'
bomb_project4_objet:212: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:214: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:217: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:217: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:217: error: 'class Timer' has no member named 'minutes'
bomb_project4_objet:217: error: 'class Timer' has no member named 'hours'
bomb_project4_objet:222: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:222: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:222: error: 'class Timer' has no member named 'minutes'
bomb_project4_objet:222: error: 'class Timer' has no member named 'hours'
bomb_project4_objet:227: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:227: error: 'class Timer' has no member named 'minutes'
bomb_project4_objet:227: error: 'class Timer' has no member named 'hours'
bomb_project4_objet:235: error: 'class Timer' has no member named 'decrement'
bomb_project4_objet.ino: In function 'void refreshTimeLcd()':
bomb_project4_objet:250: error: 'class Timer' has no member named 'hours'
bomb_project4_objet:253: error: 'class Timer' has no member named 'hours'
bomb_project4_objet:255: error: 'class Timer' has no member named 'hours'
bomb_project4_objet:260: error: 'class Timer' has no member named 'hours'
bomb_project4_objet:265: error: 'class Timer' has no member named 'minutes'
bomb_project4_objet:268: error: 'class Timer' has no member named 'minutes'
bomb_project4_objet:270: error: 'class Timer' has no member named 'minutes'
bomb_project4_objet:275: error: 'class Timer' has no member named 'minutes'
bomb_project4_objet:280: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:283: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:285: error: 'class Timer' has no member named 'seconds'
bomb_project4_objet:290: error: 'class Timer' has no member named 'seconds'

que dois-je faire a se niveau ?

As-tu bien installé la version de la bibliothèque "Timer" qui est fournie sur le site web que tu mentionnais dans ton premier message, et non une bibliothèque du même nom trouvée ailleurs?

Je pose la question, car sur ce site, ils disent "Attention la bibliothèque Timer.h est différente de celle du Web, c'est une biblio faite maison".

hello , merci mon dieu j'ai reussi , merci a vous aussi MAIS !!!!!!!!
voila brnachement fait point par point je met l'appareil en route mais le LCD m'affiche juste des carré noir sur la premiere ligne , le bip de chaque touche se fait entendre mais les carrée reste .

Bonjour,
As-tu essayé de régler le contraste ?

oui j'ai mis comme sur le schema un potentiometre , si c'est bien un potentiometre :astonished:
je le fait varier mais aucun changement , les carrés change bien de contraste mais ca reste des carré noir

Re,
Mets nous le bout de code d'un message d'envoi sur le lcd.
@+

je joint le code que j’ai fais

bomb_project4_objet_final.ino (8.52 KB)

Re,
As-tu essayé de remplacer A0 à A5 par leurs équivalents numériques (14 à 19) ?

je comprend pas , j’ai bien a0 a a5 sur ma carte , comment proceder au remplacement ?

Re,

ritcho57600:
je comprend pas , j'ai bien a0 a a5 sur ma carte , comment proceder au remplacement ?

En lisant la doc, tu vas voir que l'on peut utiliser les entrées ana comme des entrées/sorties numériques.
A0 devient la pin 14
....
A5 devient la pin 19
Donc tu remplaces A0 par 14, .... et finalement A5 par 19
@+

donc
a0 14
a1 15
a2 16
a3 17
a4 18
a5 19

et tous ca je le remplce dans mon programme arduino
et je le met ici ?

LiquidCrystal lcd(A5,A4,A3,A2,A1,A0); deviendra LiquidCrystal lcd(14,15,16,17,18,19);