derez Expert Licensed User Longtime User May 2, 2016 #1 http://www.instructables.com/id/RF-...-and-Ardu/step3/Arduino-Virtual-Wire-Library/ I have these modules and would like to use them between Arduino (transmitter) and Rpi (receiver). Is it possible to make a library for B4R and B4j ? (Arduino library is there). Thinking about it - it must be very similar to rSoftwareSerial library which use two pins as tx and rx, while the rf modules need one pin ech because it works in one direction only. Edit: with this answer from Erel https://www.b4x.com/android/forum/t...th-rsoftwareserial-library.65779/#post-417502 I guess it will not work with the Rpi but I can still use it between two arduinos. Last edited: May 2, 2016
http://www.instructables.com/id/RF-...-and-Ardu/step3/Arduino-Virtual-Wire-Library/ I have these modules and would like to use them between Arduino (transmitter) and Rpi (receiver). Is it possible to make a library for B4R and B4j ? (Arduino library is there). Thinking about it - it must be very similar to rSoftwareSerial library which use two pins as tx and rx, while the rf modules need one pin ech because it works in one direction only. Edit: with this answer from Erel https://www.b4x.com/android/forum/t...th-rsoftwareserial-library.65779/#post-417502 I guess it will not work with the Rpi but I can still use it between two arduinos.
Erel B4X founder Staff member Licensed User Longtime User May 2, 2016 #2 There are already several ways to connect two arduinos: rWire: Connecting two Arduinos with rWire library rSoftwareSerial: Connecting two Arduinos with rSoftwareSerial library Arduino to Raspberry Pi: https://www.b4x.com/android/forum/threads/arduino-raspberry-pi.65820/#content Upvote 0
There are already several ways to connect two arduinos: rWire: Connecting two Arduinos with rWire library rSoftwareSerial: Connecting two Arduinos with rSoftwareSerial library Arduino to Raspberry Pi: https://www.b4x.com/android/forum/threads/arduino-raspberry-pi.65820/#content
derez Expert Licensed User Longtime User May 2, 2016 #3 But all these are using wire connection, I need wireless. Upvote 0
Cableguy Expert Licensed User Longtime User May 2, 2016 #4 Why not use a HC05 (master on PI?) and a HC06 on the Rduino? (Bluetooth modules) Upvote 0
derez Expert Licensed User Longtime User May 2, 2016 #5 Cableguy said: Why not use a HC05 (master on PI?) and a HC06 on the Rduino? (Bluetooth modules) Click to expand... I have only two modules of the slave type. Upvote 0
Cableguy said: Why not use a HC05 (master on PI?) and a HC06 on the Rduino? (Bluetooth modules) Click to expand... I have only two modules of the slave type.
derez Expert Licensed User Longtime User May 2, 2016 #6 I have checked with two arduinos and two arduino libraries (virtualwiring and radiohead), in both the communication is very noisy hence data is received only sometimes... I get off these, I'll wait for ethernet shield. Upvote 0
I have checked with two arduinos and two arduino libraries (virtualwiring and radiohead), in both the communication is very noisy hence data is received only sometimes... I get off these, I'll wait for ethernet shield.