Skip to content

Arduino-based hardware-in-the-loop simulation of FRC robot hardware

Notifications You must be signed in to change notification settings

RobotCasserole1736/RoboSim

Repository files navigation

RoboSim

Arduino-based hardware-in-the-loop simulation of FRC robot hardware.

Purpose

RoboSim is a set of hardware and software designed to enable simulation of mechanical hardware on a robot designed for the First Robotics Competition. The goal is to enable mentors and students to design a sufficiently functional plant mode for their robot, connect a fully-constructed electrical board with software, and observe the effects of control inputs on their simulated robot platform. This allows the electrical, software, and mechanical teams to work more in parallel.

High level design.

RoboSim is build around an Arduino Mega. There are two sets of peripheral boards which expand the arduino's IO capability. The Arduino sends state information to a desktop PC running a plant model, and receives return data which it can feed back to the simulated robot's electrical board. The plant model on the PC is run using GNU Octave (a free Malab alternative). The Octave Plant model simulates the robot hardware (taking only motor and solenoid voltages as inputs). Serial data is transfered between the arduino and Octave for IO with the electrical board.

Project Status

RoboSim is currently in development. All releases as of now are tested, but considered "alpha".

Screen-shots

Screenshot Screenshot Screenshot Screenshot Screenshot

Repository Contents

  • arduino_src - source code for the embedded arduino controller inside of RoboSim
  • Octave - source code for the Octave-run plant model and GUI
  • Eagle - electrical schematics for RoboSim peripheral boards
  • PSPICE - electrical simulations for RoboSim peripheral boards
  • docs - an increasing collection of documentation.

Required software:

About

Arduino-based hardware-in-the-loop simulation of FRC robot hardware

Resources

Stars

Watchers

Forks

Packages

No packages published