Giter Site home page Giter Site logo

arduino-knock-knock's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.