How to set up an Arduino sub-node which is connected to raspberry pi via usb.
I want to set up a remote pick and place bot (Arduino+Raspberry pi) whose angle parameters are controlled by potentiometer values of another bot (Arduino+Raspberry pi) both of which are on the same network. The following image might help visualise what I mean.
So what I want is to make 2 Raspi nodes (publishers and subscriber) which relay data obtained from Arduino connected to them via USB. Now I'm not sure how I can make the setup as most of the tutorials I've found use Arduino as the node and raspi as the roscore. In my case that is not possible as the two raspberry pis are at two different locations (but on the same network). Can someone please guide me in this regard
check the sample code, I've updated the wrong download path :-)