Skip to content

Using Arduino to detect knock and show say Hello on Nokia 5110 LCD

Notifications You must be signed in to change notification settings

huytd/arduino-knock-knock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Arduino Knock! Knock!

###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:

You knock, your Arduino answer!

##Libraries:

  1. Adafruit GFX Library (get it here)
  2. Adafruit PCD8544 Library (get it here)

##Components:

  1. Aduino UNO
  2. Nokia 5110 LCD (find it here)
  3. KEYES Knock Module (find it here)
  4. Jump Wire
  5. 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.

About

Using Arduino to detect knock and show say Hello on Nokia 5110 LCD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%