[DIY] AtmoOrb - A Hue like mood lamp based on Particle Photon with NeoPixel - *Tutorial added* | Page 2

Discussion in '[DIY] User Showcases' started by Rick164, August 28, 2015.

  1. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    For the brave few who want to try out the latest beta photon UDP sketch:

    https://gist.github.com/RickDB/7f9cd149185531998d9a

    This utilizes the new multi-threading option which was introduced in 0.4.6, in testing now and if it's stable will be next official release.

    // Update

    Works without issues so pushed to stable sketch.
     
    Last edited: January 1, 2016
  4. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Updated AtmoOrb sketches, changelog:

    - Recreate client instance in case of WiFi downtime (router down / out of range etc..) , reason why this is needed is because when WiFi was down the code didn't recreate the connection client (UDP or TCP) so would remain unreachable from that point on and required an manual Photon restart.
    - Added connection locks so that it retries once and waits for WiFi to be up and again, saves resources and prevent threads from stacking up.
     
  5. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Last edited: January 9, 2016
  6. pur_berger
    • Super User

    pur_berger Super User

    Joined:
    May 14, 2007
    Messages:
    1,679
    Likes Received:
    183
    Gender:
    Male
    Location:
    Vienna
    Ratings:
    +270 / 1
    Home Country:
    Austria Austria
    Show System Specs
    Question about the data pin you use - is the schematic correct - so Pin 6 is DAC?

    upload_2016-1-9_15-30-9.png
     
  7. Rick164
    • Super User

    Rick164 Super User

    Joined:
    January 7, 2006
    Messages:
    1,335
    Likes Received:
    918
    Ratings:
    +1,359 / 0
    Home Country:
    Netherlands Netherlands
    Show System Specs
  8. pur_berger
    • Super User

    pur_berger Super User

    Joined:
    May 14, 2007
    Messages:
    1,679
    Likes Received:
    183
    Gender:
    Male
    Location:
    Vienna
    Ratings:
    +270 / 1
    Home Country:
    Austria Austria
    Show System Specs
    Hm - still confused (ok - it's not difficult to confuse me ...)

    - You use datapin 6 in your listing which according to the above posted diagramm is the Pin called DAC. The Sparkboard states to use D6 (what I have seen on the pictures) - so wich Pin are you using for Di?
    - I have a pixles Ring with ws2812b. The Neopixles one has ws2812. I would have gused that your program works with both versions? Or is ws2812b different?
    - Do you know if there is a way to get a Log from the core - I tried it with the several tools (also the setuptool via CMD for windows) to see if it receives anything - but without luck so far. On the MP side there is no log for atmorob?
    - In my planless ways of trying to figure out how electric works (i am a mechancal engeneer .. so don't ask me to read how strong a resistor is :)) I have seen that in some places Sparkfun speaks about the need to have a resitor bevore Di. but I don't think this is need so direct connection should be fine?

    Well - until today I had no luck with any of the units I tried - but I won't give up :)
     
  9. Lightning303
    • Premium Supporter

    Lightning303 MP Donator

    Joined:
    September 12, 2009
    Messages:
    798
    Likes Received:
    384
    Gender:
    Male
    Ratings:
    +578 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Im guessing the confussion is about whether to use physical pin 6 or labeled pin 6 (D6). Guesswork here, but its probably D6 and not physical pin 6. There is no need for a DAC, and even though that pin will probably be able to do the same digtial tasks you normaly wont use it. If anybody speeks about "digital pin 6" its gonna be D6.

    No difference. Also, sometimes the vendor just labels it wrong.

    AtmoLight logs to MediaPortal.log. AtmoOrb included. However not ever single color is being logged. What exactly do you want to monitor?

    The "need" is more of a protection that is optional. WS2812b likes to die quite fast if you do something wrong. So using a resistor helps protect it a bit. But its not needed.
     
  10. pur_berger
    • Super User

    pur_berger Super User

    Joined:
    May 14, 2007
    Messages:
    1,679
    Likes Received:
    183
    Gender:
    Male
    Location:
    Vienna
    Ratings:
    +270 / 1
    Home Country:
    Austria Austria
    Show System Specs
    THX for your answer.

    AtmoLight logs to MediaPortal.log. AtmoOrb included. However not ever single color is being logged. What exactly do you want to monitor?
    [/QUOTE]

    I'd like to see if it does send anything.
     
  11. Lightning303
    • Premium Supporter

    Lightning303 MP Donator

    Joined:
    September 12, 2009
    Messages:
    798
    Likes Received:
    384
    Gender:
    Male
    Ratings:
    +578 / 0
    Home Country:
    Germany Germany
    Show System Specs
    Its not logging each individual color change, but its logging when an orb connects to AtmoLight, after that you can assume that colors are being send if your other leds are showing something aswell.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!