Code Monkey home page Code Monkey logo

bike-hack's Introduction

BrightWheels (bike-hack)

BrightWheels is a good way to bring fun to safety. The purpose was to make bicycle lighting easy to implement with simple hardaware.

How to use

After installation and device has been powered on, open the BrightWheels phone app and do the following:

  • Choose a Pattern (currently 4).
  • Choose LED colors by selecting the LED then choosing the required Color(Default = Red).
  • Press Save to transmit data.
  • Sucess!

If a Pebble smartwatch is available, download the BrightWheels app for the Pebble. Once synched to the phone, patterns and off can be changed by flicking the wrist.

Installation

Needed software or libraries:

Arduino: Compile and flash the bike-hack/Ardiuno/Arduino.ino using the Arduino IDE.

Android: We must launch Android Studio to import our Gradle Project. After launch we choose to Import project (Eclipse ADT, Gradle, etc). You will be met with a directory chooser. Navigate to and choose the bike-hack/Android directory of this repository. Android Studio will create the necessary project files for you. Follow the Android instructions on how to prepare your device for running/debugging the app onto your phone.

Pebble: Make sure to install the required Pebble developer software by visiting the Pebble Developer site (Pebble SDK 3.6.2). Our Pebble app is written in C. Copy or have your Pebble project's working directory be our bike-hack/Pebble directory. Follow the instructions on the Pebble Developer site on how to upload apps to the smartwatch.

Wiring

WS2812 LEDs to Arduino Uno

  • Wire the data in of the LEDs to PIN 6 of the Arduino. Can be changed in code.

WS2812 need Voltage of 5 Volts and a max of 60 mA per LED. A string of 30 will require 1.8 Volts at max brightness. For further details see the Adafruit Guide to NeoPixels(WS2812).

HC-06 to Arduino Uno

  • Connect the Tx pin of the Bluetooth module to the Rx pin of the arduino and Rx pin of the Bluetooth module to the Tx pin of the Arduino.

See power specs on the specific bluetooth module for power needs.

Required Hardware

  • Arduino - Uno
  • 30 Strand RGB LED - WS2812
  • Bluetooth Module - HC-06

Optional Hardware

Pebble Classic - smartwatch

Upcoming

Synchronization with fellow bicylists
Pattern Builder

First Appearance

University of California, Riverside Citrus Hack Fall 2015

Demonstration

Android GIF

bike-hack's People

Contributors

jpcastillo avatar jhollister avatar svtanthony avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.