GithubHelp home page GithubHelp logo

langstone-mouse's Introduction

Langstone-Mouse

Description

This design configures an Arduino Pro Micro board to behave as if it is a USB mouse. This is optimised for use as the tuning control of the Langstone transceiver. A good qualty rotary encoder can be connected and used as the tuning knob. Such encoders often have a high number of pulses per revolution which can be more than is needed by the Langstone software. The arduino code allows the pulses per revolution to be reduced before feeding the Langstone.

Requirements

This code will only work on an ATmega32u4 processor such as used on the Pro Micro board. Other processors do not support the mouse library that is needed.

Aduino Pro Micro boards are available for about £6 on ebay. Make sure you buy the 5V 16MHz version.

The Rotary encoder needs to have quadrature outputs that are either open collectors, switches to ground or TTL levels.

Connections for the rotary encoder and switches are shown in the schematic. Pin numbers shown are as marked on the arduino board.

Programming

First download, save and unzip the files from this repository

https://github.com/g4eml/Langstone-Mouse/archive/main.zip

The Arduino Pro Micro board then needs to be programmed using the normal Arduino IDE. Download and install this from https://www.arduino.cc/en/Main/Software

Support for the Pro Micro board needs to be added by doing the following:-

Start the Arduino IDE and open the preferences window (File > Preferences)

Copy and paste the following URL into the 'Additional Boards Manager URLs' input field.

https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json

Then Select (Tools> Board > Board Manager) Scroll down to "Sparkfun AVR Boards" and choose Install.

Wait for the instalation to complete then select Close

Then select (Tools > Board > Sparkfun AVR Boards > Sparkfun Pro Micro)

Make sure (Tools > Processor) is set to 'ATmega32u4 (5V, 16MHz)'

You will also need to add the library for handling the rotary encoder:-

Select (Tools > Manage Libraries) Search for 'Encoder' Scroll down to find the Encoder by Paul Stoffregen Click Install

Once all this is in place you should be able to build the LangstoneMouse.ino file and upload it to the Arduino.

When the upload has completed the board will be detected as a USB mouse. This should work alongside your existing mouse in Windows. The scroll wheel and buttons can be tested by opening a long test document.

Configuration

The code allows for adjusting the resolution of the encoder. At the beginning of the .ino file you will find the line

#define encoderStepsPerRev 400

You can change this line to match the resolution of your encoder. The software will then scale the output to a suitable value for Langstone.

langstone-mouse's People

Contributors

g4eml 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.