This is the next installment in a series of posts discussing various ways to communicate between a Raspberry Pi and an Arduino. This post is only going to discuss the differences between using UDP vs TCP. If you are interested in this, you should first review these posts as they have detailed descriptions of the hardware and the function of the software:
Further, the post
explains the changes necessary to go from the UDP versions of the software to the TCP versions.
Sorry for all of the cross references, but I’m beginning to tire from writing all this stuff up!
Suffice it to say, the Arduino code is exactly like that for the PC version of this software.
The PC/TCP version of the software was ported directly to the RPI and required only commenting out the multimedia calls.
So here are the versions of arduino and RPI software that allow TCP communications between the two: