This project shows how you can build an entire robot in simulation, and code it in Arduino to test and verify your design.
-
Clone the gorilla-physics and avr8rs project to the same parent directory as this project.
-
Build the gorilla-physics visualization typescript lib:
cd gorilla-physics/wwwnpm install rimrafandnpm install typescriptnpm run buildandnpm run build:lib
change directory to www:
cd www
(install rimraf: npm install rimraf)
and then run the project (i.e. the local dev server):
npm run start
A browser tab should open and show the robot moving.
update the arduino/furuta/furuta.ino file as you wish.
Compile the Arduino code:
./build.sh furuta
Now the simulation should be running the updated controller code.
Substack post detailing the project.
This project depends on the following two projects:
Arduino simulator that runs the Arduino code: AVR8rs
Physics engine that simulates the robot: Gorilla Physics
