#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2019
    Posts
    2
    Rep Power
    0

    Making a doorbell


    Hi.

    Would you please help me rank the options, according to easiness and price, for doing the following using Java?

    I need to receive input from a device. Iím not sure what this device is called yet, but I know it can make a lot of other devices (such as public sinks, paper towel dispensers, and air hand dryers) touchless. It can make them touchless because it knows when something (such as a hand) is waved in front of them. Because I donít know what this device is called, Iíll refer to it as the first device.

    I need the sound of my voice to be played when something is waved in front of the first device. I also need the amount of time after something is waved in front of the first device to be kept track of. Please call this amount of time ďxĒ. And, I need the sound of my voice to be played, with a changed volume, when something is waved again in front of the first device, AND when x is greater than one amount of time, AND when x is lesser than another amount of time.

    In addition to a speaker that plays the sound of my voice, I also need another output device, a light (whose brightness I can change). I need these two output devices to be far away from the first device.

    Would changing the code of a musical doorbell be a good shortcut?

    Thank you!

    Jason
  2. #2
  3. Lord of the Dance
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Oct 2003
    Posts
    4,203
    Rep Power
    2012
    For the first device, you are most likely thinking about infrared sensors (IRS).

    Does it have to be Java? Any reason for that?

    Would changing the code of a musical doorbell be a good shortcut?
    Which code? Which musicall doorbell?

    Maybe you can search for an programmable (musical) doorbel. Although I'm not sure how you would add the light as the third device.

    Another solution is to base it on several wifi-enabled arduinos or similar, and then connect the IRS, speaker, light etc. on their own part.
    Last edited by MrFujin; April 20th, 2019 at 03:43 PM.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2019
    Posts
    2
    Rep Power
    0
    Thank you MrFujin.

    I want to learn more programming languages eventually, but I’m in a rush now, and I only know Java.

    Does the way MrFujin used the word “similar” mean that I could do this with something else, like a Raspberry Pi? If so, do I have more options besides these two? Again, I’m looking for the easiest and least expensive way. I’d prefer to use a peripheral, rather than a stand-alone. That way, I could have the infrared sensor attached to a circuit board, the light attached to a long wire that is attached to the circuit board, and the speaker attached to a long wire that is connected to my laptop. I’m not at a level that is advanced enough for me to use Wi-Fi. Also, my budget only lets me use wires.

    I’m beginning to think that businesses that sell doorbells think that programming means letting their customers choose which sounds their doorbells play, not giving customers access to the programming language that is used. So, it might be easier if I found which Java classes to use on my own. Though, if any classes come to mind, please let me know.

    Thank you!

IMN logo majestic logo threadwatch logo seochat tools logo