Skip to content

soypat/tiny-ahrsim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tiny-ahrsim

TinyGo attitude estimation simulation applet. Here's a youtube video of the app in action with a Raspberry Pi Pico.

Instructions

Requirements

Steps

  1. Clone repository to local computer

    git clone https://github.com/soypat/tiny-ahrsim.git
  2. Change directory to this repo and generate frontend app with gopherjs

    gopherjs build ./graphics/

    This should create two files: graphics.js and graphics.js.map.

  3. Run the tinygo program (under tinygo directory) on your microcontroller of choice, make sure your microcontroller is accesible via USB. Take note of the port which it is available on (usually COM1, COM2, or COM3 on windows). For an Arduino UNO you'd flash the program as follows:

    tinygo flash -target=arduino ./tinygo/main.go
  4. Run Simulation program specifying the port of the USB device

    go run . -ttl=COM3 -p=":8080"
  5. Open index.html with a browser and you are set.

⚠️ Notice! ⚠️

The gopherjs bindings for three.js have been archived!

If you are starting a new project consider using the WASM bindings!

About

TinyGo attitude estimation simulation applet.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published