Farm Robot: Recipe
Home
Installation
- Install Ubuntu 16.04 according to the official instructions for the Raspberry Pi, but use the .dtb file for the 3B, not the 3B+
sudo apt install usb-modeswitch usb-modeswitch-data
- Edit
/etc/network/interfaces
:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug eth1
iface eth1 inet dhcp
curl -s https://install.zerotier.com/ | sudo bash
- Edit
/etc/rc.local
:
sudo usb_modeswitch -v 12d1 -p 1f01 -V 12d1 -P 14db -J
sleep 60 #maybe not needed if installed properly
sudo systemctl restart zerotier-one.service #maybe not needed if installed properly
- Follow these instructions to install
ROS
Kinetic
sudo apt install ros-kinetic-rosserial ros-kinetic-rosserial-arduino
Testing
- Running the robot's motors is as simple as
roscore && rosrun rosserial_python serial_node.py /dev/ttyUSB0 && rostopic pub /motor std_msgs/UInt16 100 --once
. Be careful to mount the robot on something first.