Code Monkey home page Code Monkey logo

transmitter's Introduction

Node.js RC Transmitter

Based off the function of a regular radio transmitter. Built for raspberrypi 256, client was surface pro IE10 (all I had available) so touch on other devices may not function as expected.

Alt text

Raspberry pi serves website and client connects back to raspberry pi via websocket connection. Data is send 50 time a second, sent via websocket as Uint16Array(16) via a webworker.

UI updating is handled by utilizing requestAnimationFrame which produces smooth movement of ui controls and feedback.

Hardware:

Raspberry PI,
Adafruit 16 Ch I2C Servo Controller

Server:

Node.js
Adafruit 16 Ch - Driver (found on npm)

Client

Surface Pro 1

Installing / Setup

Install node.js on raspberry pi, deploy site to pi, run server.js via node.

Features

General UI
	Control Positioning
	Control Styling
	Touch Feedback
	Mixing Feedback
	Fast Update

Joystick Control
	End Points
	Exponential Range
	Centring
	Mixing

ServoSlave Control
	Input Mixing
	Output Mixing

Position Switch
	Dynamic Button Switch
	Vert/Hor Layout

Left to do

Controls
	Servoslave convert from min,center,max to percentage
Server
	install spi module, download mcp3008.js
Interface
	Data rate etc interface, change data rate
	IOS touch event
	Drag and drop controls from controls intrface
	Add more style options
Future
	Track view Editor for Recording of movements, tweaking of movements
	Camera Stream
	Port to UI to Knockoutjs, all the cool kids are doing it.

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.