Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Recommended Posts

Posted

As fibaro is advertising their ability to use RGBW with LED strips as parking sensor - one of our customer asked for this. So we decided to give it a try, and it is actually quite simple!

 

We had to use currently two separate RGBW but it works as it should. The last thing is to write some LUA to create different colours depending on car distance.

 

We used Ultrasonic sensor together with few other components but we will test another sensor soon - I think this can be done with sensor+RGBW+LED strip.

 

Small video clip also:

 

Posted

Nice one .. and  .. something that works as advertised !

My wife has been on me for an age to set this up after seeing the video .. mainly for our recently licensed kids to park 'her' car .. looks like I might have to tackle the project in the near future !

I'd thought of having the light turn off with the closing of the garage door too, then you have a neat dual purpose night light instead of using a sensor and led strip as we do now ..

 

Cheers,

al.

Posted

Hello,

what is the name of the sensor? And how is it connected?

Posted

He Lauri,

 

Nice to see that this works. Would you be willing to share the schematics / components?

  • Topic Author
  • Posted

    Yes ofcourse, I will share it tomorrow - things are at my work

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> 

    Guest witters
    Posted

    Interested to see what you used and how it was connected. Thanks!

    Posted

    very interested too... Mainly to know how it can communicate with fibaro / LUA, because as I can see it is not binary only?

    Posted

    dimae, when you need to read analog input from 3rd party devices, just use the RGBW module for that. It has 4 separate inputs you can use. I believe that's what Lauri used for this project.

    Posted

    dimae, when you need to read analog input from 3rd party devices, just use the RGBW module for that. It has 4 separate inputs you can use. I believe that's what Lauri used for this project.

     

    Maybe, but not directly, since this sensor is ultrasonic one and it need some triggering signal that will enable it to measure distance, as well as a counter to detect time of response - probably some uC was involved .

    • 2 weeks later...
    Posted

    dimae, when you need to read analog input from 3rd party devices, just use the RGBW module for that. It has 4 separate inputs you can use. I believe that's what Lauri used for this project.

     

     

    Maybe, but not directly, since this sensor is ultrasonic one and it need some triggering signal that will enable it to measure distance, as well as a counter to detect time of response - probably some uC was involved .

     

    Hello to all and thanks for your replies... I don't understand this kind of threads. Lauri surprised us with a great trick, but Lauri doesn't tell us how she did it!

    Please Lauri, could you please explain it??

     

    Many thanks!

  • Topic Author
  • Posted

    Hi, sorry for such delay - busy times

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

     

    The solution that worked for us was like this:

     

    srf05 sensor - ultrasonic sensor

    Arduino micro

    Fibaro RGBW controller.

    PWM to 0-10V signal converter for fibaro rgbw.

     

    There is also available analog distance sensor 

    Please login or register to see this link.

     which should work directly with 0-5V analog output but we didnt get it working yet.

    Posted

    Hi Lauri,

     

    Please can you tell us make/model/where you got the follwing:

     

    SRF05

    PWM

     

    What do you need the Arduino for?

     

    Any help appreciated as I would like to do the same for my garage....wife always has a problem parking...even though it's 7m square

    Please login or register to see this image.

    /emoticons/default_icon_rolleyes.gif" alt=":roll:" /> 

    Please login or register to see this image.

    /emoticons/default_icon_biggrin.gif" alt=":-D" />

     

    KR, Dave

    • 5 months later...
    Posted

    Hi, sorry for such delay - busy times

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

     

    The solution that worked for us was like this:

     

    srf05 sensor - ultrasonic sensor

    Arduino micro

    Fibaro RGBW controller.

    PWM to 0-10V signal converter for fibaro rgbw.

     

    There is also available analog distance sensor 

    Please login or register to see this link.

     which should work directly with 0-5V analog output but we didnt get it working yet.

    Some months ago and we are still waiting for these... Today I have found your article on the website, now I have remembered it again. Why don't you explain this as many of us have been requested? 

     

    I also have seen people asking on Facebook about your blog post...

     

    Don't want to share it? Thanks 

    Posted

    £5 says he doesn't share

    Posted

    The Arduino manages the ultrasonic sensor and puts out an pwm signal 0-5 volt depending on the distance. This you can find plenty of coding examples of if you Google it. But the rgbw doesn't read this signal well.

    The converter makes the pwm-pulse into a 0-10V DC signal that the rgbw can read well. The closer the higher voltage.

    Now all you need to do is the fibaro coding most likely of sort

    If this voltage then this color

    If that voltage then that color

    and so on..

    No I haven't tried but in principle it's quite straightforward. Although it will cost a bit if you want three or four directions.

    After thought; Hmm may be cheeper but more programming if the arduino could manage all rgbw via some converter directly (I don't know if there is enough outputs on the arduino for this). Without the fibaro puck. And then perhaps if needed tell ethernet that the car is home.

    Could I have that £5?

    Posted

    Still not a solution is it, still wouldn't have a clue how to do it, exactly what items to buy, where etc. That's what we're really interested in. If we had a full solution/tutorial I certainly will, maybe more lol!

    Posted

    Oh but there is full tutorials and downloadable code on how to use the pwm output on arduino and how to use an ultrasonic device. Just combine those 2 and you're home.

    How to use the rgbw as input and output there is also examples of on this forum. At most you have to Google like 3 times to get it working. I suspect you would have to Google just as many times if someone spent a day and made you a brief tutorial.

    Posted

    This is a fun project, forgotten about this function in the lili movie but I have time now to play around with it.

    I'm testing a little simpler solution.

    I have ordered this:

    Please login or register to see this link.

    Data sheet

    Please login or register to see this link.

    The sensor shifts voltage in th 10 to 80cm range (about 2 volts) and it's analog so this will work with just 1 rgbw module.

    Will use this on input 1 and control color in LUA based on voltage shift.

    Will post results if and when I get it working

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" />

    Posted

    Nice one. Do you know what resolution youll get from the rgbw?

    Posted

    Well it depends on the 1-10V capability of the RGBW. (Haven't tried it with 1-10V yet)

    I will get about 2V change from the sensor, ex from 3V to 5V depending on distance. (10cm = 5V to 80cm = 3V typical)

    The voltage curve is also logarithmic so i will make a custom code that changes accordingly.

     

    My thought is that i will start with a change of 0.1V, that gives me 20 "steps" in color at a range of 70cm (80-10 detector range)

    Writing this now makes me think that its to much at close range and a 0.2V change vill be sufficient from 30cm.

    (Don't want to change color to often = faster operation)

    This gives about 15 steps in 70cm range, so a change in color every 5cm (if the curve would be linear) but its close enough.

     

    If its not enough range with 2V ill add an OP amp or something to make the 2V range change a 1-10V range.

    But i will start with "stock" 2V and see where that ends up.

     

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...