Unbox and Set Up your Viam Rover 2
Tip
Another version of the Viam Rover was sold until January 2024. If you have purchased a Viam Rover 1, follow these instructions instead.
The Viam Rover 2 arrives preassembled with two encoded motors with suspension, a webcam with a microphone unit, a 6 axis IMU, power management and more. It is primarily designed for use with a Raspberry Pi 4. You can use it with other types of boards with some additional setup.
Important
You must purchase the following hardware separately:
- A Raspberry Pi 4
- Four 18650 batteries (with charger) or a RC type battery with dimensions no greater than 142mm x 47mm x 60mm (LxWxH) (with charger)
- A MicroSD card and an adapter/reader
This guide covers what’s inside the kit and provides instructions for setting up your rover.
Note
The design for this rover is open source. Find the details on GitHub.
What’s inside the kit
One assembled Viam Rover.
Four M2.5 screws for mounting your Raspberry Pi.
Two spare stiffer suspension springs. You can swap them out with the springs that come with the rover if you need stiffer suspension for higher payload applications.
Three different Allen wrenches (1.5 mm, 2 mm, and 2.5 mm) to unscrew the top and mount the Raspberry Pi.
Four extenders to increase the height of the rover to house larger internal single-board computers (such as a Jetson Orin Nano).
Ribbon cable for connecting the Raspberry Pi 4 to the Viam Rover 2 printed circuit board.
All together, your kit looks like this:
Rover components
Dual drive motors with suspension and integrated motor encoders
The motors come with integrated encoders. For information on encoders, see Encoder Component. For more information on encoded DC motors, see Encoded Motors.
The kit also includes stiffer suspension springs that you can substitute for the ones on the rover. Generally, a stiff suspension helps with precise steering control. In contrast, a soft suspension allows the wheels to move up and down to absorb small bumps on the rover’s path.
Motor driver
The kit comes with an L298N driver dual H-Bridge DC motor driver. L298 is a high voltage and high current motor drive chip, and H-Bridge is typically used to control the rotating direction and speed of DC motors.
720p webcam with integrated microphone
The webcam that comes with the kit is a standard USB camera device and the rover has a custom camera mount for it. For more information, see Camera Component.
Motherboard
The Viam Rover 2 uses a motherboard to which all ancillary components (buck converter, motor driver, IMU, INA219) are mounted. This board includes an auxiliary Raspberry Pi 4 pinout that dupont connectors can be connected to, an auxiliary power input terminal, 5V, 3.3V and Ground pins.
The motherboard also incorporates hole patterns for the following alternative single-board computers:
- Jetson Nano and Orin Nano
- Rock Pi S
- Raspberry Pi Zero 2W
- Raspberry Pi 5
- Orange Pi Zero 2
See Alternative Board Configurations for a diagram of this. Note that these boards require additional parts to be purchased and will not work out of the box with the Viam Rover 2.
6DOF IMU
The MPU6050 sensor is a digital 6-axis accelerometer or gyroscope that can read acceleration and angular velocity. You can access it through the I2C digital interface. You configure it with Viam on your machine as a movement sensor.
INA219 power monitoring unit
The INA219 unit measures the voltage and current from the power supply. You can use it to measure battery life status and power consumption. It connects to the Raspberry Pi 4 through the I2C bus. You configure it with Viam on your machine as a power sensor.
DC-DC 5V converter
The DC-to-DC power converter, or, buck converter, steps down voltage from its input to its output. The OKY3502-4 has a USB output that can provide an additional 5V supply to auxiliary components.
Switch and low voltage cutoff circuit
A slide switch is connected to the rover. Use it to turn the power on and off.
Mounted above the switch is a low voltage cutoff circuit that can be set to turn off power to the rover when the input voltage drops below a pre-set threshold. This can be helpful for preventing batteries fully discharging which can damage lithium ion batteries.
Battery holders
The Viam Rover 2 comes with two battery holder options. The rover nominally operates with four 18650 batteries, but a higher capacity RC-type battery can be mounted into the rear of the rover.
Note
With either battery option, you must purchase a charger separately.
18650 battery pack
18650 batteries are the nominal power supply recommended for use with the Viam Rover 2. An 18650 battery is a lithium-ion rechargeable battery. We recommend the button-top type, though either button or flat top can work. Any brand is suitable as long as you comply with the battery safety requirements.
Mount for RC-type battery
You can mount a larger capacity RC-type battery into the rover. You must wire the appropriate connector into the switch circuit.
RC-batteries are lithium-ion rechargeable batteries. Caution should always be taken when using such batteries, always comply with the battery safety requirements. Check the safety section for more information.
Safety
Read all instructions fully before using this product.
This product is not a toy and is not suitable for children under 12.
Switch the rover off when not in use.
Warning
Lithium-ion batteries may pose a flammable hazard. This product requires four 18650 lithium-ion batteries OR an RC-type battery. DO NOT connect multiple power sources simultaneously. Refer to the battery manufacturer’s operating instructions to ensure safe operation of the Viam Rover. Dispose of lithium-ion batteries per manufacturer instructions.
Caution
Damage may occur to the Raspberry Pi and/or Viam Rover if wired incorrectly. Refer to the manufacturer’s instructions for correct wiring.
Disclaimer: This product is preliminary and experimental in nature, and is provided “AS IS” without any representation or warranty of any kind. Viam does not make any promise or warranty that the product will meet your requirements or be error free. Some states do not allow the exclusion or disclaimer of implied warranties, so the above exclusions may not apply to you.
Setup
Important
If you wish to use a Jetson Nano or Jetson Orin Nano, follow this guide instead.
Install Raspberry Pi OS
Tip
If you are using another board, you can skip this step.
Install a 64-bit Raspberry Pi OS onto your Pi following our Raspberry Pi installation guide.
Follow all steps as listed, including the final step, Enable communication protocols, which is required to enable the accelerometer on your rover.
Once you have installed Raspberry Pi OS and viam-server
, put your SD card in the slot on your Pi.
Add the power supply
You can power the Viam Rover 2 using 18650 batteries or RC-type batteries. 18650 batteries are the nominal power supply recommended for use with the rover, but RC-type batteries are higher capacity.
The Viam Rover 2 arrives with the 18650 battery pack wired into the power input terminal block. The battery pack works with batteries 67.5 mm in length, but the battery housing includes a spring to accommodate most batteries of that approximate length.
- Turn the rover over so that you can see the battery housing.
- Place four 18650 batteries (taking care to ensure correct polarity orientation) inside the battery pack to provide power to the rover, which can be turned on and off through the power switch.
Tip
Ensure that the batteries are making contact with the terminals inside the battery pack. Some shorter batteries might need to be pushed along to ensure that contact is being made.
For users who prefer a higher capacity battery option, the Viam Rover 2 can house RC-type batteries that do not exceed the following dimensions:- 142mm x 47mm x 60mm (LxWxH). Using a RC-type battery requires some re-wiring of the Viam Rover 2 which should only be undertaken by users who are comfortable handling electrical assemblies. Improper configuration of the power supply could result in damage to the battery and poses a fire hazard. A 4-S RC-type battery is recommended (14.8V). We make no recommendations regarding specific RC battery brands.
To change the rover’s power supply configuration for a RC-battery:
Ensure the 18650 battery holder contains no batteries
Unscrew the 18650 battery leads from the power input terminal. Move these wires out of the way.
Screw in a power lead that matches that of the selected battery. Common options include: EC-type connectors, XT-connectors or T-plugs. Ensure lead is long enough to reach the battery.
Ensure that the polarity is correct (the polarity is marked on the PCB). Failure to do so may result in permanent damage to your Viam Rover 2 when powered on.
Ensure that there is no short between the terminals (for example, due to a stray strand of wire). Use a multimeter to check continuity across the terminal to verify this. Failure to do so may result in damage to the battery and may pose a fire hazard.
Place the battery in the receptacle between the two caster wheels:
Connect the battery to the lead that is wired into the power input terminal. Although not necessary, slots in the bottom plate of the rover allow a velcro strap to be placed around the battery to secure it.
Caution
DO NOT connect both power supplies at the same time. These suggestions are alternative configurations. Connecting multiple batteries together may result in damage to the batteries and rover, it may also pose a fire hazard.
Configure the low voltage cutoff circuit
Now that you have connected your power supply to your rover, you need to configure the low voltage cutoff circuit. You must configure two settings:
- The low voltage cutoff
- The reconnect voltage
The reconnect voltage is the voltage increment above the cutoff point that is needed for the power to reconnect. For both 18650 and RC-type battery inputs, the nominal voltage is 14.8V, so you should set the low voltage threshold to 14.7. You can adjust this value if using a battery that has an alternative nominal voltage.
To set the low voltage cutoff and reconnect voltage:
Turn on the circuit using the switch. The LED indicator should indicate a current voltage level of 14.8-16V depending on the battery charge status:
Hold down the left button until the LED display starts flashing with the low cutoff value. The factory default low cutoff value is 12V.
Use the left (+) and right (-) buttons to set the voltage to 14.7V (or whatever you want the cutoff to be).
Wait for the indicator to stop flashing.
Hold down the right button until the LED display starts flashing with the reconnect voltage value. The factory default reconnect voltage is 2.0V.
Use the left (+) and right (-) buttons to set the reconnect voltage to 0.2V.
Wait for the indicator to stop flashing.
Your voltage cutoff circuit is now configured. When the voltage drops below 14.8V (or reaches the cutoff point you chose), a relay will disconnect the motherboard. A minimum voltage of 14.9V will be needed to reconnect the power (that is, after charging the batteries).
Connect the ribbon cable, Pi, and camera
Tip
If you are using another board, follow the instructions in Alternative board configurations in place of this step.
To be able to attach the Raspberry Pi, unscrew the top of the rover with the biggest Allen key. Then use the smallest Allen key and the provided M2.5 screws to attach the Raspberry Pi to your rover through the standoffs on the motherboard. The Raspberry Pi 4 should be mounted such that the USB ports are to the right, as viewed from above.
Use the ribbon cable to connect the Raspberry Pi 4 to the motherboard. The ribbon cable comes connected to the motherboard out of the box, wrap it over the top of the Raspberry Pi 4 and connect with the GPIO pins as shown:
Also, connect the webcam’s USB lead to any USB port on your Pi.
Assuming you are using a Raspberry Pi 4, you can skip the following section and move to Screw the top plate back on and switch the rover on.
Alternative board configurations
This guide assumes you are using a Raspberry Pi 4, but you can use different boards with your Viam Rover 2 with some modifications while attaching the boards.
Tip
If you are using a Jetson board, you should be following this guide.
Reference the appropriate alternative hole pattern provided on the motherboard:
Detach the motherboard, unscrew the standoffs, and move them to the correct holes. Then, use the smallest Allen key and the provided M2.5 screws to attach your board to your rover through these standoffs.
Then connect the webcam’s USB lead to any USB port on your board.
If you need to increase the height of your rover to accommodate your board being larger than a Raspberry Pi 4, place the height extender standoffs now.
Screw the top plate back on and switch the rover on
Screw the top plate back on with the biggest Allen key and use the power switch to turn the rover on. Wait a second for the low voltage cutoff relay to trip and provide power to the rover motherboard. If the Pi has power, the lights on the Raspberry Pi will light up.
Enable I2C on your Pi
Enable the I2C protocol on your Pi to get readings from the power sensor when controlling your rover.
SSH into your Pi. Launch the configuration tool by running the following command:
sudo raspi-config
Use your keyboard to select Interface Options, and press return. Select I2C enabled.
Then, to apply the changes, restart your Raspberry Pi if it hasn’t already prompted you to do so.
sudo reboot
Control your rover on the Viam app
If you followed the instructions in the Pi installation guide, you should have already made an account on the Viam app, installed viam-server
on the board, and added a new machine.
If not, add a new machine in the Viam app and follow the setup instructions until your machine is connected.
To configure your rover so you can start driving it, add a Viam Rover 2 Fragment to your machine.
Next steps
Before you can use your Viam rover with the Viam platform you need to configure your rover:
After you have configured your rover, follow one of these tutorials:
Extensibility
Due to the aluminum chassis and its expandable mounting features, you can extend the Viam Rover. With it, you can customize your rover by mounting additional sensors, lidar, robot arms, or other components. The following are just a few ideas, but you can expand or modify the rover kit with any components you want:
- For GPS navigation, we support NMEA (using serial and I2C) and RTK. Make and model don’t make a difference as long as you use these protocols. See Movement Sensor Component for more information.
- For LiDAR laser range scanning, we recommend RPlidar (including A1, which is a sub-$100 LIDAR).
- For robot arms, we tried the Yahboom DOFBOT robotics arm with success.
Mount an RPlidar to the rover
If you are mounting an RPlidar to your rover, be sure to position the RPlidar so that it faces forward in the direction of travel, facing in the same direction as the included webcam. For example, if you are using the RPlidar A1 model, mount it to the Rover so that the pointed end of the RPlidar mount housing points in the direction of the front of the Rover. This ensures that the generated SLAM map is oriented in the expected direction relative to the Rover, with the top of the generated map corresponding to the direction the RPlidar is facing when you initiate mapping.
If you need a mount plate for your RPlidar A1 model, you can 3D print an adapter plate using the following:
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!