OnLight

593

8

About: Hello, I am Andre and I work as a designer and tutor. I am interested in smart devices, IOT and using new technologies in a meaningful way.

Intro: OnLight

OnLight is a smart light connected to the Wi-Fi. It can be controlled via the Blynk app. Various functions are already preprogrammed, e.g. light settings, color picker and strobe light. The case is 3D printed and can be screwed into E-27 sockets or on self-developed mounts.

What you need for the start:

Adafruit NeoPixel Ring for Photon

Particle Photon

Case

USB-USB mini cable, solder iron, screws

Find the development agenda here:

https://trello.com/b/PiwIlWRW/onlight-development-agenda-wwwfeaziblycom-studio-andre-nakonz

Step 1: Assembly (Solder)

  • The NeoPixel Ring comes with two 12 pin 0.1" socket headers. These two socket headers must be soldered from below onto the ring to allow unplugging of the Photon. Or just solder the Photon directly in place for a slimmer look.
  • To solder the headers vertically on the ring, a breadboard and two male header strips will help. Alternatively, dough also works to fix the headers.
  • And Solder! Be sure to solder all pins for reliable electrical contact. For this, a cheap soldering iron fine.

Step 2: Connect the Photon

  • Create an account on setup.particle.io and log in.
  • Click on Setup a Photon.
  • After you click Next, the file photonsetup.html should automatically be downloaded.
  • Click on the file. If your browser does not open a new tab, your browser does not support this feature. (I've had the best experience with Chrome.)
  • Connect the Photon to the PC via a USB cable. In your wireless connections, the photon should now appear after a few seconds. PHOTON- ... and click connect.
  • Select your network and enter the Wi-Fi password. After a while, the Photon is breathing cyan.
  • Rename your device. Click Next. You will also see a confirmation if the device was claimed or not.

More Infos:

Connecting:

https://docs.particle.io/guide/getting-started/start/photon/

Device Modes:

https://docs.particle.io/guide/getting-started/modes/photon/

Step 3: Test the Photon

  • Time for the first code. Your photon should be connected to the power supply or PC and is breathing cyan.
  • Go to build.particle.io or login.particle.io and log in.
  • Select the Example App 1. Blink an LED.
  • Check under Devices that your photon is selected.
  • Go back to the code and Flash it to the photon.
  • If the LED on the Photon blinks violet, code is being transmitted. After some seconds, the Photon breathes cyan again. In addition, a blue LED should blink every second.
  • Your Photon works!

Step 4: Build the Blynk App

  • The Blynk app is free for maker and can be found on the App Store for iOS and in the Google PlayStore for Android.
  • Download the app and create an account.
  • Create a new project. Give your project a name and choose among the devices the Particle Photon and WiFi as a network.
  • Click on Create Project.
  • Get the token sent by e-mail. You will need it in the next step.
  • Follow the steps in the video.

Step 5: Flash the Code to the Photon

  • You are logged in on build.particle.io and in the IDE (Integrated Development Environment).
  • Create a new app, give a name and then save (folder icon)
  • Add two libraries. Search for "Neopixel" in the search field under Libraries. Click on Include in Project. Search for your recently created project and click Confirm. Repeat the whole thing for the Blynk Library.
  • Back to your code. Now copy the code from this homepage and paste it. (Override everything)
  • Search the line char auth [] = "YOUR TOKEN"; Under Your Token, add your token from the Blynk app created in the last step. You got an e-mail with the Token.
  • Check the code and the bottom line should say "Great Work!".
  • Run the app with the play button in upper right corner.

Step 6: The Case

You can print the case via Shapeways.

A 3D Model for FDM printers will follow soon.

Step 7: Customizations and Add-Ons

Follow soon.

Share

    Recommendations

    • Audio Contest 2018

      Audio Contest 2018
    • Furniture Contest 2018

      Furniture Contest 2018
    • Tiny Home Contest

      Tiny Home Contest

    Discussions