Giter Site home page Giter Site logo

buttongizmo's Introduction

Introduction

This repository contains the Hardware schematic, Firmware and Software code for the ButtonGizmo device. The ButtonGizmo device is a simple, USB 1.1 Human Interface Device (HID) which functions as a custom input device. It has 8 buttons, and sends USB reports to the host (PC) whenever a button is pressed or released. The USB stack used is V-USB by Objective Development GmBH (http://www.obdev.at/vusb/)

Hardware

The hardware files are contained in the "Hardware" folder above. The device is built around an ATMega328P microcontroller. It needs a 12MHz crystal and few other external components, mostly resistors. Due to certain considerations, it runs at 3.3V (via an MCP1700 regulator) and is bus-powered. For more details about the hardware considerations, see here: http://vusb.wikidot.com/hardware

Firmware

The software was written in and compiled with Atmel Studio 7. Asides from the V-USB distribution files, the files of interest here are:

main.c - contains the main software code (the main() superloop and the primary application logic)

ADC.c - routines for initializing and reading from the microcontroller's ADC peripheral

ADC.h - header file containing function prototypes for ADC.c

usbconfig.h - This is part of the V-USB distribution, but it contains the configuration options for the device. Things like the VID/PID, Vendor and Product Name (needed for host-side discrimination), USB Device Class and Subclass, hardware configuration. In short, this is the file you want to pay thorough attention to.

Software

Since this enumerates as a HID device, there are a number of options available for accessing it. The host side software is written in C#.NET, but there are USB libraries for basically every programming language out there. That said, the demo software here uses HIDSharp (because I wanted the demo to run across platforms).

The Protocol

The communications protocol (types and meanings of messages from the device) is documented on the Wiki.

buttongizmo's People

Contributors

madarax64 avatar

Watchers

 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.