arduino mega 2560 r3 ch340g

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Post Reply
eddiex666
Posts: 7
Joined: Saturday 21 February 2015 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

arduino mega 2560 r3 ch340g

Post by eddiex666 »

Hi,

I am testing a "arduino mega 2560 r3 ch340g" and I have some questions....
1. Does this device work with domoticz?
2. do I have to do something to get it working? (script, patch, drivers, flashing tools?)

Any tips will be nice...

Eddie
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: arduino mega 2560 r3 ch340g

Post by nayr »

1. Natively, no.. domoticz cannot run on it nor can it talk directly to it without you doing the heavy work.
2. Yep, write them your self.. I suggest looking at the MQTT support in Domoticz.

Tip: Buy a Raspberry Pi, it can run linux and domoticz natively, has a network interface, and the GPIO pins are supported directly in Domoticz.. ie, the drivers have already been written for you.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
eddiex666
Posts: 7
Joined: Saturday 21 February 2015 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: arduino mega 2560 r3 ch340g

Post by eddiex666 »

Hey hey... Nayr...
thats good and good answers :-)

I allready have a pie B... with domoticz on... so its just to plug it on the GPIO port?
Do I have to do any special config?

Eddie
eddiex666
Posts: 7
Joined: Saturday 21 February 2015 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: arduino mega 2560 r3 ch340g

Post by eddiex666 »

hmmm, I may be newbee :-)
I have a Aruino mega 2560 r3 (USB to Serial) adapter, with a RF-Link module on it...
So I see that Domoticz support RF-Link, have I missed something?

Eddie
eddiex666
Posts: 7
Joined: Saturday 21 February 2015 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: arduino mega 2560 r3 ch340g

Post by eddiex666 »

I have connected the Arduino USB to my Raspberry PIE B+ with domoticz....
and I have added the "hardware" called RF-Link USB...

(as the same I did for RFX433E)

But i cannot see any received protocols, and I guess I may have to flash the Arduino???

Eddie
eddiex666
Posts: 7
Joined: Saturday 21 February 2015 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: arduino mega 2560 r3 ch340g

Post by eddiex666 »

a dmesg shows:
[ 4.910210] ftdi_sio 1-1.2:1.0: FTDI USB Serial Device converter detected
[ 4.912702] usb 1-1.2: Detected FT232RL
[ 5.008640] usb 1-1.2: FTDI USB Serial Device converter now attached to ttyUSB0

and in the Domoticz I added "RFLink gateway USB" on /dev/ttyUSB0"

But I dont see any received RF signals... I have a RF 433 mhz sender and receiver...
I have a 433 MHZ remote control from Nexa to send signals...

Tips?

Eddie
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: arduino mega 2560 r3 ch340g

Post by nayr »

For Rasbery GPIO go here, http://www.domoticz.com/forum/viewforum.php?f=32

For RF-Link you need a gateway i think, I have no experience with it so I can only point you to the Wiki to look for guidence: http://www.domoticz.com/wiki/FAQ#RFXCom

I am a HAM and 433MHz is in a band I operate in, so I have no desire to flood my house with UHF transmitters..
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
eddiex666
Posts: 7
Joined: Saturday 21 February 2015 23:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

SOLVED - Re: arduino mega 2560 r3 ch340g

Post by eddiex666 »

So I found the info I needed....

I bougth the Arduino USB to Serial adapter, RFLink Tranceiver (send and receive) kit.
the kit is here:
http://www.nodo-shop.nl/en/rflink-gatew ... tenna.html

And I after soldering, i connected it to a windows pc and flashed it with the firmware.
How to guide is here....
http://www.nemcon.nl/blog2/


So now it works like tellstick, RFX433E etc.. on my Raspberry PI B+ ith Domotics....

Its nice...

Benefits.... it supports many protocols, I am not soure how many, but more that tellstick or Nexa :-) and its "opensource"
Minus: the case for this kit its terrible big :-) , twice as Raspberry PI B+....

Price: aprox 50 euros for kit and case.


Have a nice day folks...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest