B4R Tutorial Connecting two Arduinos with rSoftwareSerial library

derez

Expert
Licensed User
Longtime User
Success with the Uno
The two softserial channels are defined as usual and I'm changing the serial.listening method to listen to only one at a time.
I have measured the time to get answers form the DFplayer and found it is less then 30 millies, and the query to it is every 2 seconds, so the rest of the time is free to listen to the phone and get instructions.
Transmitting is not limited so it is done when necessary.
 

Eme Fibonacci

Well-Known Member
Licensed User
Longtime User
softserial.Initialize(57600, 10, 11) on both Arduinos?

Or

B4X:
softserial.Initialize (57600, 10, 11) 'For arduino1
softserial.Initialize (57600, 11, 10) 'For arduino2
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…