RFLink connected to Rasp GPIO instead of USB!!

About receivers, transmitters, transceivers, connections, antennas etc.

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Post Reply
Message
Author
User avatar
Stuntteam
Site Beheer
Posts: 789
Joined: 27 Jan 2016, 16:46

Re: RFLink connected to Rasp GPIO instead of USB!!

#11 Post by Stuntteam » 16 Nov 2016, 16:17

Arduino Mega Pin 0 (RX0) and 1 (TX0) are exactly the same in terms of signals as to what is available on the USB port.
The Arduino Mega pins are 5 volt. So you will need to convert at least the TX pin to 3.3 volt for the Pi.. otherwise you can harm the Pi.
No idea what software you will need on the Pi or what GPIO pins you need to use on the Pi.
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

beou
New user
Posts: 8
Joined: 12 Nov 2016, 17:34

Re: RFLink connected to Rasp GPIO instead of USB!!

#12 Post by beou » 16 Nov 2016, 16:42

Stuntteam wrote:Arduino Mega Pin 0 (RX0) and 1 (TX0) are exactly the same in terms of signals as to what is available on the USB port.
The Arduino Mega pins are 5 volt. So you will need to convert at least the TX pin to 3.3 volt for the Pi.. otherwise you can harm the Pi.
No idea what software you will need on the Pi or what GPIO pins you need to use on the Pi.


I don't care about hardware! I can easilly deal with it!
The issue here is the sofware part!
And like you... I have no idea about the mods in software needed!

Thanks again!

User avatar
Stuntteam
Site Beheer
Posts: 789
Joined: 27 Jan 2016, 16:46

Re: RFLink connected to Rasp GPIO instead of USB!!

#13 Post by Stuntteam » 16 Nov 2016, 17:10

From the Arduino/RFlink side there are no modifications needed in the software.

You will need to install some serial port software on the Pi.
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8

Justblair
Normal user
Posts: 63
Joined: 08 Aug 2016, 23:42

Re: RFLink connected to Rasp GPIO instead of USB!!

#14 Post by Justblair » 16 Nov 2016, 18:03

The tx/rx pins on raspi are a hardware serial port. You can talk to it directly on ttyAMA0 if I remember correctly. I don't think you need special software.

beou
New user
Posts: 8
Joined: 12 Nov 2016, 17:34

Re: RFLink connected to Rasp GPIO instead of USB!!

#15 Post by beou » 16 Nov 2016, 20:59

Justblair wrote:The tx/rx pins on raspi are a hardware serial port. You can talk to it directly on ttyAMA0 if I remember correctly. I don't think you need special software.

Hello Justblair!!

That's interesting indeed!! Is there any project that uses the Rasp TX/RX pins instead of the USB?

Tkanks for your reply!!

Justblair
Normal user
Posts: 63
Joined: 08 Aug 2016, 23:42

Re: RFLink connected to Rasp GPIO instead of USB!!

#16 Post by Justblair » 17 Nov 2016, 00:37

You mean home automation project?

I use openhab and am pretty confident that you can talk to ttyAMA0 using the serial binding.. I dont know how the other home auto softwares work. but it seems likely they can too.

beou
New user
Posts: 8
Joined: 12 Nov 2016, 17:34

Re: RFLink connected to Rasp GPIO instead of USB!!

#17 Post by beou » 17 Nov 2016, 20:40

HI all!!

Finally i managed to get rid of the USB cable!!

Thanks to Justblair (thanks a lot Justblair)!
And all the others of course.

No extra software is needed!!!!

All you have to do is to disable the serial console and take yourself the control of the serial port dev/ttyAMA0

(You can use minicom if you need to see the RFLink messages.)
Next, go to domoticz :
-Settings
-Hardware
-Select RFLink gateway USB
-Go to serial port field
-Select /dev/ttyAMA0 instead of /dev/ttyAMC0
-Press update
-Thats all!!!!

Now the Arduino mega is connected to the Rasp without USB but with two wires TX/RX.
(don't forget the voltage levels) use a voltage divider or a transistor

Is now time to design an (all in one) RFLink Rasp shield

Thanks

kimot
Normal user
Posts: 190
Joined: 12 Oct 2017, 20:46

Re: RFLink connected to Rasp GPIO instead of USB!!

#18 Post by kimot » 19 Nov 2017, 19:18

I think, that autor wants replace hole Arduino Meg, not connect it through serial port on GPIO.

If you want connect 433Mhz receiver and transmitter pins directly to Rasp PI gpio pins - yes, it is possible.
RfLink sw runs on Rasp pi intead of Arduino then. No Arduino nedded.

Github:
https://github.com/seahu/rflink

Install info ( only czech language ):§
http://seahu.webnode.cz/l/dokoncna-portace-rflink-u/

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests