IO via USB on RaspPi

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
User avatar
Lectere
Posts: 24
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

IO via USB on RaspPi

Post by Lectere »

Ik ben van plan om mijn deurbel aan te sluiten op mijn RaspberryPi.

Nu zit mijn RaspberryPi in de meterkast, en het draadje van de deurbel ook. Dus ik heb eigen geen zin om hier een dure zwave io module voor te kopen.

Nu heb ik gezien dat dat je voor de Raspberry Pi een IO poort is (PiFace), maar dat heb ik liever niet, beetje duur en ik sluit het liever aan via USB, omdat deze dan makkelijk bij een ander apparaat te gebruiken is.

Dus de vraag is:
-IO poort via USB
-Compatible met domoticz
-Die werkt op linux, Rasperry pi
-Beetje normale prijs < 30 euro
Last edited by Lectere on Friday 04 November 2016 9:51, edited 1 time in total.
Effictent and redundant two-factor authentication? http://www.smspassword.com
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: IO via USB on RaspPi

Post by stlaha2007 »

Hey Lecture,

Alstublieft/Please

Retype your question in English

Sent from my D6603 using Tapatalk
User avatar
Lectere
Posts: 24
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: IO via USB on RaspPi

Post by Lectere »

I'm looking for a way to connect my doorbel switch to Domoticz; just two simple wires making contact;

I want a:
-IO port via USB
-Has to be compatible with domoticz
-Has to work on Linux/RaspPi
-Die werkt op linux, Rasperry pi
-Low price/ at least below 30 euro's.
Effictent and redundant two-factor authentication? http://www.smspassword.com
niwreg
Posts: 25
Joined: Thursday 19 February 2015 11:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IO via USB on RaspPi

Post by niwreg »

I think the easiest way is to just th GPIO of the raspberry (without the piface)

Alternative can be an Velleman interface board but they are already 50 euro or something like that.

For GPIO you can use an optocoupler an some pins that wil set you back, including housing etc probaly around 7 euro max :)
User avatar
Lectere
Posts: 24
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: IO via USB on RaspPi

Post by Lectere »

Thanks for pointing out the alternatives, but I'm actually looking for a USB solution
Effictent and redundant two-factor authentication? http://www.smspassword.com
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: IO via USB on RaspPi

Post by deennoo »

Rflink ? Since last fw it allow mini gpio in and out.

Just an arduino mega price (7€ from ebay)
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
Lectere
Posts: 24
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: IO via USB on RaspPi

Post by Lectere »

I don't get it, can you send me a link of that product...? thnx...
Effictent and redundant two-factor authentication? http://www.smspassword.com
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: IO via USB on RaspPi

Post by deennoo »

Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: RE: Re: IO via USB on RaspPi

Post by stlaha2007 »

Lectere wrote:Thanks for pointing out the alternatives, but I'm actually looking for a USB solution
Are you sure? RPi/Arduino/RFlink are devices that have logic buildin to turn gpio-pins in high/low or better said on/off. They also are able to read the status. You DO need something between the high voltage (between 12 and 24Volt) and the doorbell-button what is capable of seperate it from the lower Voltage used on Serial-ports (around 5V) or USB. And also capable of telling you if that button is pressed or is been pressed continiously or not pressed at all.

Hope the following will explain to you what your trying to do. As i'm also want my doorbell connected to my RPi to let Domoticz know theres someone at the door when i'm on the second floor and i can't here the doorbell ring.

To get the status or switch the status theres the commucation layer between you and the gpio-pin. Eg. Domoticz - RPi GPIO-pin X.

This layer can be split in a terminal-session through LAN (search for socat or ser2net) or directly with Serial interface under linux TTY or USB.


Sent from my D6603 using Tapatalk
User avatar
Lectere
Posts: 24
Joined: Saturday 04 April 2015 8:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: IO via USB on RaspPi

Post by Lectere »

I don't get it. I have a this;

Image

Image

A doorbell, normal push button model, like in 1983. You push it, it makes contact.

The wires are comming out next to my Pi running domoticz. I don't know to much about electronics. I want to connect the simple doorbell with the Pi. I don't want to spend a lot of time in soldering and ordering parts etc.

Is there not a 'off the shelf' usb solution?
Effictent and redundant two-factor authentication? http://www.smspassword.com
niwreg
Posts: 25
Joined: Thursday 19 February 2015 11:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IO via USB on RaspPi

Post by niwreg »

USB I/O input isn't quite a normal operation. However maybe if you loose USB and use an PiFace Digital, it's 1 module that you connect to the GPIO header and there is minimal soldering because it is an I/O module and it is supported by Domoticz
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: RE: Re: IO via USB on RaspPi

Post by stlaha2007 »

Lectere wrote:I don't get it. I have a this;

Image

Image

A doorbell, normal push button model, like in 1983. You push it, it makes contact.

The wires are comming out next to my Pi running domoticz. I don't know to much about electronics. I want to connect the simple doorbell with the Pi. I don't want to spend a lot of time in soldering and ordering parts etc.

Is there not a 'off the shelf' usb solution?
I sorry to say. Switching a relay through USB is not very common and whats available is more expensive. Not speaking about getting things working (Windows COMport stuff etcetera).

The pi, as suggested earlier already capable of switching On/Off. With the help of PiFace more easier... It sits on top off the gpio headerpins !!!
Your old doorbell can be used to trigger an On/Off event on your Pi or PiFace. Adafruit and others have completely written out how its done including python script examples.

The hardest part is to seperate the 8 to 12Volts to your noise making horn or bell. You don't want that on your Pi or USB-port. These can handle only 3.3V (Pi) or 5V(USB).


Quick and simple. You will gonna toast on or another...

We are willing to help you out, but i have the impression you want something out of the box... and than the short answer would be No its not there.

Sent from my K00C using Tapatalk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest