###You knock! Your Arduino answer!!!
This is the simple Arduino program that detect knock and display the Hello World text to Nokia 5110 LCD.
Watch demo here:
##Libraries:
- Adafruit GFX Library (get it here)
- Adafruit PCD8544 Library (get it here)
##Components:
- Aduino UNO
- Nokia 5110 LCD (find it here)
- KEYES Knock Module (find it here)
- Jump Wire
- Breadboard (optional)
##Wiring
1. The knock module:
For wiring the knock module, looking for the minus -
icon (because some knock module has the different layout), this must be connected with the GND
pin, connect it to Arduino follow this:
- Minus --- GND
- VCC --- VCC (5V)
- Output --- Pin 2
Then, you can find some where to hide your knock module, for me, I put it inside my wood cover notebook, for easier knock.
2. The Nokia LCD:
Following Adafruit's guide to wiring the Nokia LCD (Software SPI
, if you want to make the display faster, use Hardware SPI
). In this tutorial, I use Arduino UNO, this must be different if you're using another kind of Arduino (Leonardo, MEGA,...)
- CLK --- Pin 7
- DIN --- Pin 6
- D/C --- Pin 5
- CS --- Pin 4
- RST --- Pin 3
##Coding
See the attached source code in this repo.
##Testing
Knock twice and you will see the Nokia LCD turned on, the text: "Hello World!" displayed! Wait 2 seconds, the display turned off.