Back

Comments 10

  • Countdown Timer over 2 years ago

    The simplest modification would be just to hard code the timer's duration - I would start there. In order to do that, comment out all the code in the loop function except this line:
    startTimer(60000);

    Now, instead of getting the duration from the phone, it will automatically set the duration for one minute and start the timer.

    If that doesn't work, you may have to also comment out the initializations of the virtual shield (line 12), the screen (line 15), the speech (line 18), and the recognition (line 21) as their maybe errors thrown if there is no device available (I can't remember).

  • Countdown Timer over 2 years ago

    Definitely. You can either hard code the duration of the timer or use so other input mechanism. For example, I have a version that has two buttons - one button adds a minute to the timer's duration each time it's pushed and the other button starts the timer.

  • Countdown Timer over 2 years ago

    Yes. You'll just need some other way to set the timer. I have done a variation which uses two momentary push buttons. When one button is pressed, you are adding a minute to the timer (and one LED is lit for each minute). Then, when you press the other button, the timer starts counting down. That way everything self contained and you don't need a bluetooth modem either.

  • Enter the house like a Sith Lord almost 3 years ago

    Thanks - glad you like it. The benefit of using the Photon's and the publish / subscribe via the Internet is that I then have unlimited range - as long as each has connectivity. Two Arduino's with nrf24l01 radios would totally work too as long as range (or walls and doors) isn't an issue. I have only used nrf24l01 once as a remote control so pretty close to the other end and definitely line of site. Let me know how they work out for you.

  • Enter the house like a Sith Lord over 3 years ago

    Your welcome. If you make any modifications or add-ons, please post them here. I'd like to hear what you did.

  • Enter the house like a Sith Lord over 3 years ago

    You are exactly right - pattern matching based on what you are subscribing too. From the particle documentation
    https://docs.particle.io/reference/firmware/photon/#particle-subscribe-

    A subscription works like a prefix filter. If you subscribe to "foo", you will receive any event whose name begins with "foo", including "foo", "fool", "foobar", and "food/indian/sweet-curry-beans".

  • Enter the house like a Sith Lord over 3 years ago

    Great to hear. I love the simplicity of working with the photon - yet, it's feature packed. Let me know what you think once you've had a chance to play with it.

  • Enter the house like a Sith Lord over 3 years ago

    Thanks! The possibilities are endless.

  • Countdown Timer over 3 years ago

    Oh, sorry, I misread your original question. So, you have an Arduino Uno connected to the Neopixel strip and a windows app communicating with the Uno (over Bluetooth I presume). You want to use the Windows app to control the LEDs. Right?
    I used the vanilla / standard Windows Virtual Shields for Arduino app so I didn't really look under the covers. But, the app is open source so you can download the code and pick out the class that sends input to the Arduino. I would just reuse that code and map your commands into the existing apps functions so that you don't necessarily have to mess with any of the Arduino libraries. Here is the code for the Virtual Shields app:
    https://github.com/ms-iot/virtual-shields-universal

  • Countdown Timer over 3 years ago

    What are you using to control the led strip - a Raspberry Pi 2 running Windows 10 IoT Core? A Netduino? Something else?

Add projectSign up / Login