Code Monkey home page Code Monkey logo

hackernews-badge's Introduction

hackernews-badge

IMG_2677 (Small)

With just one off-the-shelf part and some programming, you can have a standalone gadget that displays the latest HackerNews story, and notifies you of changes to your karma!

OSYK3477.MOV

This project is perfect for electronics beginners with some experience in software; this walk-through was written with the assumption that you are starting from scratch.

Features:

  • Displays the newest or toppest HackerNews story
  • Scannable QR code that takes you to the comment section of the story
  • Notifies you when your karma changes

IMG_2676 (Small)

Pre-requisites:

Installation:

Capture

  • Open Tools -> Board Manager and install the ESP32 toolchain

Capture

  • Open Tools -> Boards and choose ESP32 Dev Module

Untitled

  • Connect the ESP32 board to your computer, and choose the Port it is using from Tools -> Ports (if in doubt, note the Ports, close the Tools Menu, then unplug the board, and check the Ports again to see which one disappeared)

Untitled

  • Open Tools -> Manage Libraries and install ArduinoJSON, TFT_eSPI, QRcode_eSPI (and dependency), and wordwrap

Untitled

  • Open File -> Preferences and note your Sketchbook location. Using your favorite text editor, open the TFT_eSPI setup file found at <sketchbook_location>/libraries/TFT_eSPI/User_Setup_Select.h, add // to the beginning of the line (comment out) #include <User_Setup.h> and remove the // (uncomment) from the line #include <User_Setups/Setup25_TTGO_T_Display.h>, and save the file

Untitled

  • Copy the hackernews-badge.ino Arduino Sketch from the root of this repository into the IDE window and edit the Options at the top of the source code to match your Access Point settings

Capture

  • Click the Upload button, and enjoy! To check on the gadget after the code has been uploaded, open Tools -> Serial Monitor

Capture

Potential Improvements:

  • Connect a vibrating motor / speaker to alert on notifications
  • Enumerate device as USB Keyboard and open links on attached computer using button
  • Send a link to the article to your phone over Bluetooth using another button

hackernews-badge's People

Contributors

jareklupinski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.