Voice Controlled Hospital Bed by Wifi


51

1

8

Introduction: Voice Controlled Hospital Bed by Wifi

We are a community of people with disabilities and volunteers devoted to addressing specific, unm...

For many people with significant mobility impairment, the function of sitting up, raising the feet or changing the height of a hospital bed provides comfort throughout the night for sleeping and may even allow for greater independence. For myself, as an individual with a spinal cord injury who became paralyzed, I depend on the functions of the hospital bed every day. But sometimes it can be hard to find the control for the bed since I cannot feel my hands, move my fingers or move my arms under the blankets. Given the hospital bed is made up of simple switches I figured why not use an assistant like Google Home or Alexa to control the bed. This instructable builds off this project. We retain the original function of the controller so no bed function is lost or if power goes out or the Wi-Fi down nothing changes. It just gives control by Wi-Fi too.

I started with a photon particle for Wi-Fi control and six relays for the six functions of the bed (head up, head down, feet up, feet down, full bed up, full bed down). Since then we have refined it and recently sent out and got PCBs fabricated to make the device more robust and start making a handful of them for others in the community who could also benefit from such a project.

As a cofounder of AbikityHacks.org, myself(Drew McPherson), Francisco, Jason, Mimi, and Jefferson have all worked on it here and there at our meetups. If this is something that could be useful for you and you'd like to try it let us know and we could send one to you.

Supplies:

  1. Photon Particle
  2. Relay Boards or solid-state relays as used here (Digi-Key Part Number1835-1218-ND)
  3. rj45 or rj 50 cable (with testing we actually discovered that the RJ-45 cable also worked)
  4. rj4/50 female socet
  5. power suply

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Understanding the Bed

First off we have to understand that there's the six switches or momentary push buttons within the controller, two for each direction of the motors that drive the feet, the head, and the overall bed. This control uses in RJ 50, 10 pin connector to feed into the controller board as pictured in the white cable.

Step 2: Wiring

Above you can see the circuit diagrams for the PCB we had fabricated. You can also see the relay board which you could use to repeat the project. As you can see by the circuit diagram the two RJ 45 connectors are always connected retaining the original function of the controller. It is worthy noting that the logic signal the controller delivers is 35 V at nearly 100 mA. We designed the circuit under the assumption we did not have access to the internal ground of the motor controller in the bed thus fully isolating switching with the solid-state relays. However if an RJ 50 cable is used there is access to ground so in future iterations we may switch to that.

Step 3: Testing With Particle Photo

using tinker

Step 4: IFTTT

  1. First you have to make an account
  2. next select create or my applets from the dropdown from your profile picture
  3. click "this" and search google assistant and inter triggers and save
  4. next click "that" and search particle- will have to setup with particle account first time
  5. select function and input

Step 5: Code Integration

The code and implementation was inspired by the https://www.instructables.com/id/Google-Home-Ceiling-Fan-Control-With-Particle-Phot/ by JimenaI3.

We used if then then that to send the command to our Google assistant and vice versa.

Assistive Tech Contest

Participated in the
Assistive Tech Contest

Be the First to Share

    Recommendations

    • Magnets Challenge

      Magnets Challenge
    • Snow Challenge

      Snow Challenge
    • Wearables Contest

      Wearables Contest

    8 Discussions

    0
    gluckc
    gluckc

    16 days ago

    I would love to make this for my son -- but I don't quite understand all the steps. I made something similar-ish. I have Alexa controlling our elevator button that you can see here...


    https://www.instructables.com/id/Alexa-Enabled-El..
    . You're missing the connection in your video between IFTT and Google Assistant - I used a WEMO microcontroller and something called SINRIC that I found pretty easy in order to speak with Alexa. But, I am not following from your instructable how to connect the relays to the hospital bed motor. If I could understand that - then maybe I could use my same WEMO/SINRIC solution to drive the relays to drive the bed.

    0
    AbilityHacks
    AbilityHacks

    Reply 15 days ago

    Thank you for your interest. Yes, you can certainly use your setup you already have. I will add a couple of steps in the next week to try and make the IFTTT and google assistant more clear. what kind of hospital bed does yourson have? does the cable to the controller look like an ethernet cable?

    0
    gluckc
    gluckc

    Reply 13 days ago

    Yes, it's an invacare. Can you tell from the picture if it is the correct plug? I'm excited to try this. Let me know if I can get one of your extra boards and how much you'd like for it. If I get it working with Alexa I'll let you know. I guess I'll need to get the photon particle and the cable as well. I've never used the particle before -- I assume I can use the arduino ide to program it and it works the same as any other esp8266 board? I just looked it up - it appears to be more expensive -- is there a reason you chose it?

    IMG_0565.JPGIMG_0568.JPG
    0
    AbilityHacks
    AbilityHacks

    Reply 12 days ago

    yes, that is the same plug so it should work. I'll see if we can assemble and send all the parts. we need to still do some testing on our end and order more solid state relays. we are using the particle 1) because we had some, 2) easy interface, 3) programs like arduino but they have wed or phone ide. I need to add mechanical latches to hold the plugs from pulling out and then I would like to test it for a week or 2 to make sure nothing burns out before I send it. why don't you shoot me an email at info@abilityhacks.org and we can sort out the details? I am excited to get you one for your son to try

    0
    gluckc
    gluckc

    Reply 16 days ago

    Actually, maybe I understand... do you plug the cord from the bed-remote into one of the ports on your PCB board, then plug a separate cord (that I guess you'd need to purchase) from the other port on the PCB board to the bed?

    If that's the case -- I would love to get the PCB board from you. I think I could program it using my method to talk with Alexa.

    0
    AbilityHacks
    AbilityHacks

    Reply 15 days ago

    Exactly, that is the case. I bought a rj45 (ethernet) cord to go from bed to pcb but the rj50(10pin) would be better. Both seem to work. I do have extra boards so check or post a picture of the remote plug to make sure it's compatible. The wiring is probably the same if it is a Invacare since it is cheaper for them to only make one but no guarantee.

    0
    seamster
    seamster

    16 days ago

    Very nice to see, thank you for sharing!

    0
    AbilityHacks
    AbilityHacks

    Reply 15 days ago

    Thank you!