Jen Looper
Published © GPL3+

Bling your Laptop with an Internet-Connected Light Show

Create a web-connected light-strip API controllable from your website, using the

IntermediateFull instructions provided2 hours1,101
Bling your Laptop with an Internet-Connected Light Show

Things used in this project

Hardware components

NeoPixel strip
NeoPixel strip
Particle Photon
get a headerless photon, you don't need the pins
USB-A to Mini-USB Cable
USB-A to Mini-USB Cable

Software apps and online services API

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)


Read more


Neopixel to Photon Schematic

Connect the wires


Web code to start a light show

This is the code for your website that starts a light show by passing through a light show mode to your Photon. On a button click, pass through a 'mode' parameter, like 'blue', 'red', or 'rainbow'
import {Injectable} from '@angular/core';
import { Http, Response, Headers } from '@angular/http';
import {LogService} from '../../core/services/log.service';
import {Observable} from 'rxjs/Rx';
import 'rxjs/add/operator/map';

export class PhotonService {
  private requestURl: string;
  private accessToken: string;

    private logger: LogService,
    private http: Http) {
      logger.debug(`Photon initializing...`);
      //device id
      this.requestURl = '<post your api key here>/startRave/';
      //access token
      this.accessToken = '<post your access token here>';

public startLightShow(mode: string) {

  let params = 'command=' + mode + '&access_token=' + this.accessToken;

  let headers = new Headers();
  headers.append('Content-Type', 'application/x-www-form-urlencoded');, params, {headers: headers})
    .map(res => res.json())
      data => params,
      err => this.handleError(err),
      () => console.log('Post Complete')

  private handleError(error: Response) {
      return Observable.throw(error);



Jen Looper

Jen Looper

11 projects • 55 followers
Founder:, indie web and mobile developer, Developer Relations team member at Microsoft. Queen of the Apps!


Add projectSign up / Login