Page 1 of 1

Arduino as direct I/O Interface in Domoticz

Posted: Wednesday 11 November 2015 14:12
by jadijkstra2000
Cannot find it...

Instead of my (not working) PiFace2, I want to use an Arduino (without wireless) for monitoring Electricity / Gas consumption.
I cannot find anything about this.
It is possible to directly connect Arduino to RPi and communicate over USB with each other with Python.
I cannot imagine that there is nobody who wants to have the same situation....

Using wireless over 15cm in space is very useless in my opinion...

Anyone? :)

Re: Arduino as direct I/O Interface in Domoticz

Posted: Wednesday 11 November 2015 16:39
by bbqkees
jadijkstra2000 wrote:Cannot find it...
I cannot imagine that there is nobody who wants to have the same situation....
Well, for others the PiFace is working just fine probably...

Did you try Google?
First hit:
http://blog.oscarliang.net/connect-rasp ... usb-cable/

Re: Arduino as direct I/O Interface in Domoticz

Posted: Wednesday 11 November 2015 20:01
by SweetPants
jadijkstra2000 wrote:I cannot find anything about this.
Did you google for it, there are numerous discussions on using an Arduino USB (Nano v3) for that. I'm personally working on a S0 interface to Domoticz to monitor my gas using a Nano v3 and avr-gcc. Waiting for some components to arrive (hall effect sensor) from china, but the software is already working using a reed switch.

Re: Arduino as direct I/O Interface in Domoticz

Posted: Thursday 12 November 2015 8:37
by jadijkstra2000
Yes ofcourse there is a lot of information, and indeed I did the google trick :)

Maybe I should rephrase my question :) What is the best way / solution to implement an arduino with raspberry pi for domoticz through USB.

Maybe we should create a page specifically for all I/O possibilities for use with the Raspberry
PiFace(2) v.s. arduino advantages/disadvantages.

Something like:

- Arduino:
Pro's : Cheap, easy through USB, lot's of I/O
Con's : Extra USB port needed on RPI, Extra power consumption (not much), need to program at 2 levels, arduino sketch & RPI to interface

- PiFace:
Pro's : Directly attached to RPI, no additional USB Ports needed, Directly supported by Domomticz, 8 digital inputs / outputs, 2 relays, easy to config
Con's: Expensive, not always working on the RPI (different firmware's etc..)

- Onewire:
Pro's : ...
Con's : ...

- GPIO :
Pro's : ...
Con's :...

...