serial monitor print ok - lcd.print malfunctioning


dear all,
i'm matteo, had experience of programming fortran , matlab during univeristy (15 years ago).
i knew arduino months ago , after done trial decided try build alarm system house wrote code (in rudimental way, sorry limit).
i used:

1 arduino mega 2560
1 rele module manage siren (plus 1 spare future implementation)
1 lcd 16x2
3 pir sensors
1 keypad 4x3


the code runs in way managed serial monitor (pc window) if managed lcd, after verifying of alarm password, lcd gives unusual characters (as "?", "w") permanently.
typing password program runs if lcd malfunctioning (obviously). thought rele presence but, disconnected rele circuit, noticed same problem...it seems " cycle" regarding recognising of password causes problem lcd.print statement.
i attach here code.
does anywone have suggestion?
thnks , best regards,
matteo

that's lot of code; expecting see shorter sketch test lcd.


Arduino Forum > Using Arduino > Displays > serial monitor print ok - lcd.print malfunctioning


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code