Page 1 of 1

Connecting different Modules wireless to Raspberry Pi

Posted: Mon Sep 03, 2018 9:14 am
by a3l1
Hi! We're building a project that's for pets so it includes an automated pet feeder and a smart pet door lock that connected to the wifi and can be controlled using a mobile application

The pet feeder has scheduled feeding and the smart pet door lock can be unlocked or locked by the pet owner using the smartphone.

Our problem is that the cable management. The raspberry pi is located in the living room and that wires spread out going to the two components.

We need to make the two components wireless.

Is there any way to make the two components wireless and connect them to Raspberry Pi?
So that the Rasp Pi can still send commands to the two of them using the smartphone.

Thank you so much in advance!
PS: We've been only working with the Raspberry Pi for less than a month

Model:
Raspberry Pi Model B+

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Mon Sep 03, 2018 9:39 am
by drgeoff
a3l1 wrote:
Mon Sep 03, 2018 9:14 am
We need to make the two components wireless.
What two components?

You already said the feeder and lock are Wi-FI enabled. Depending on the model the RPi either has Wi-Fi or can have it added.

What are the "wires spread out going to the two components" ?

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Mon Sep 03, 2018 10:04 am
by a3l1
drgeoff wrote:
Mon Sep 03, 2018 9:39 am
a3l1 wrote:
Mon Sep 03, 2018 9:14 am
We need to make the two components wireless.
What two components?

You already said the feeder and lock are Wi-FI enabled. Depending on the model the RPi either has Wi-Fi or can have it added.

What are the "wires spread out going to the two components" ?
What I mean is that the two components (automated pet feeder and door lock) are both connected to the raspberry pi through wires. The raspberry pi is the only one connected to the wifi

How do I make the two components wirelessly connected to Raspberry pi

Thank you

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Mon Sep 03, 2018 10:18 am
by B.Goode
What I mean is that the two components (automated pet feeder and door lock) are both connected to the raspberry pi through wires. The raspberry pi is the only one connected to the wifi

How do I make the two components wirelessly connected to Raspberry pi


It doesn't seem to be very insightful to say that you need to add some form of wireless capability to the two distant sensors.

Assuming you have a recent RPi board with built in WiFi and Bluetooth -

Some options for doing that:
Use an RPi Zero W at each sensor location, then use WiFi or Bluetooth
Use a wifi-ready (or BT equipped) Arduino at each sensor location.

Or Investigate other ('433') wireless technology, but remember you will need to equip the 'control' RPi as well.

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Mon Sep 03, 2018 10:22 am
by a3l1
B.Goode wrote:
Mon Sep 03, 2018 10:18 am
What I mean is that the two components (automated pet feeder and door lock) are both connected to the raspberry pi through wires. The raspberry pi is the only one connected to the wifi

How do I make the two components wirelessly connected to Raspberry pi


It doesn't seem to be very insightful to say that you need to add some form of wireless capability to the two distant sensors.

Assuming you have a recent RPi board with built in WiFi and Bluetooth -

Some options for doing that:
Use an RPi Zero W at each sensor location, then use WiFi or Bluetooth
Use a wifi-ready (or BT equipped) Arduino at each sensor location.

Or Investigate other ('433') wireless technology, but remember you will need to equip the 'control' RPi as well.
What do you mean its not insightful to add wireless capabilities to the two distant sensors? Hmm
I'm trying rid of the long wires that goes all the way to the two distant sensors. :)

We're using Raspberry Pi Model B+

Alright. I'll do more research on those.
Thank you so much!

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Mon Sep 03, 2018 10:30 am
by B.Goode
What do you mean its not insightful to add wireless capabilities to the two distant sensors? Hmm
I'm trying rid of the long wires that goes all the way to the two distant sensors. :)

We're using Raspberry Pi Model B+
The joke was meant to be at my expense, not a criticism of your question.

I was saying, of myself "this may not seem technically helpful, but in outline this is what you need to do... " It was my reply that was "not insightful" - it seems patronisingly obvious.



There are Raspberry Pi boards in the present product range named Raspberry Pi 1 Model B+ and Raspberry Pi 3 Model B+.

I offered 3 options for removing the wiring to the sensors.

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Mon Sep 03, 2018 1:02 pm
by drgeoff
@a3l1
You have not given any details of the feeder or lock so how do yo expect anyone to advise on adding wireless capability to them?

Unless those devices already have an ethernet socket or USB socket intended to take a Wi-Fi adaptor the suggested approach would be to add a ZeroW to the feeder and a ZeroW to the lock. Wire between each of those and its ZeroW in the same way as currently to the existing RPi.

Configure Wi-Fi communication between the existing RPi and the ZeroWs via your wi-Fi router.

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Mon Sep 03, 2018 1:31 pm
by PhatFil
if you have line of site and only want to trigger a relay or 2 then you could use infra red leds (and your old tv remote) .. if you want more sophisticated communication the perhaps a small soc like an esp8266 or esp32 could be employed. there are quite a few comercial iot products based on these socs many of which can be easily hacked so you can buy an off the shelf remote control A/C power socket, and reprogram it with community developed firmware to join your local network and fall under your pi's control..

alternatively there are low power 433mhz rf transmitters and receivers available as hobby pcbs and also packaged as retail products with an rf button controller, you could wire the pi's gpio pins to the button controller and trigger the rf signal that way for an ultra minimalistic mod, (most controllers use 3v coin cells (which you would remove) so the circuitry is compatible with the 3.3v Pi ;)

And many more solutions too....

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Sat Sep 08, 2018 3:29 pm
by jaisonpanikar
a3l1 wrote:
Mon Sep 03, 2018 9:14 am
Hi! We're building a project that's for pets so it includes an automated pet feeder and a smart pet door lock that connected to the wifi and can be controlled using a mobile application

The pet feeder has scheduled feeding and the smart pet door lock can be unlocked or locked by the pet owner using the smartphone.

Our problem is that the cable management. The raspberry pi is located in the living room and that wires spread out going to the two components.

We need to make the two components wireless.

Is there any way to make the two components wireless and connect them to Raspberry Pi?
So that the Rasp Pi can still send commands to the two of them using the smartphone.

Thank you so much in advance!
PS: We've been only working with the Raspberry Pi for less than a month

Model:
Raspberry Pi Model B+
same !

I'm doing a project where I'm trying to get multiple arduinos to talk to my pi (zero W) over bluetooth, via bluetooth modules (HC-05).

I have successfully paired to two bluetooth modules at the same time, however I can only seem to connect to one at a time.

I'm using Raspbian, so I can pair with them just fine using the GUI. but to get the module to connect to the pi I use:

sudo rfcomm connect hci0 <MAC ADDRESS> 1

And as I said this works just fine to connect to one of the modules, but when I try to connect using a different channel:

sudo rfcomm connect hci0 <MAC ADDRESS> 2

I get the error message: " Can't connect RFCOMM socket: Connection Refused "

I've been scouring the internet for days now, trying to find the solution but haven't had any luck.

Does anyone know how to solve this issue? Am I going about this the right way? Is this even possible?

[moderator sabotaged spamlinks in this post, the poster is likely a spammer, he has multiple posts with hidden spamlinks]

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Sat Sep 08, 2018 4:25 pm
by PhatFil
i dont think you are looking at it correctly, if your establishing a serial connection over bluetooth its a 1 to 1 protocol, so your gonna want to look at connecting to devices sequentially not concurrently.

Re: Connecting different Modules wireless to Raspberry Pi

Posted: Sat Sep 08, 2018 4:33 pm
by Douglas6
Caveat: I haven't tried this. From my limited Googling on the subject, I believe it is not possible to connect multiple HC-05 slaves to a Pi master simultaneously.

Depending on timing requirements, you could of course connect and disconnect to each slave in series.