LARVAbot
Last updated: 2019 December 19
Coming soon, when I actually get something done.
For now, see the LARVAbot code and LARVAbot PCB repositories.
Arduino Setup
The current (in progress) version of the LARVAbot code is an Arduino library. Because the LARVAbot board is not a full Arduino board, there are some additional steps required to be able to program it from the Arduino IDE.
- Install support for programming the raw microcontroller
- In the Arduino IDE, open Preferences (
File > Preferences
in Linux, at least), and under “Additional Boards Manager URLs” add:https://raw.githubusercontent.com/carlosefr/atmega/master/package_carlosefr_atmega_index.json
- Go to
Tools > Board > Boards Manager
and searchBarebones ATmega Chips
and install. TheTools > Board
section should now includeATmega Microcontrollers
.
- In the Arduino IDE, open Preferences (
- Set up configuration for LARVAbot board. In the
Tools
menu, set the following:- Board: ATmega328/328p
- Processor: ATmega328p
- Clock: External 20MHz
- Programmer: USBtinyISP (if you’re using the FabISP or my design)
- Burn the Arduino bootloader (this only needs to be done once for each robot)
- Connect the robot via the ISP header pins
- Make sure the right port is selected under
Tools > Port
- From the
Tools
menu, selectBurn Bootloader
- Install dependencies from
Tools > Manage Libraries...
by searching for the following:- LIDAR library: VL53L0X
- SparkFun MPU-9250 9 DOF IMU Breakout
- Install LARVAbot library to use with your own code Arduino makes you do this by having the file in its libraries directory. You can clone the code repository directly into this location, but I prefer keeping the LARVAbot library code with the rest of the code.
- Clone the LARVAbot library wherever you want:
git clone git@github.com:jtebert/larvabot.git
- Create a symlink to that in the Arduino libraries directory. (Recommend using the full path for the source here)
ln -s [REPO_LOCATION]/Larva ~/Arduino/libraries
- Clone the LARVAbot library wherever you want:
Sources: Carlos Rodrigues GitHub