Skip to content

ArcaneNibble/puya-spinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9763bfa · Sep 3, 2024

History

34 Commits
Aug 28, 2024
Jul 11, 2024
Sep 3, 2024
Sep 3, 2024
Jul 10, 2024
Jul 10, 2024
Aug 18, 2024
Aug 18, 2024
Aug 18, 2024
Aug 18, 2024
Sep 3, 2024
Sep 3, 2024
Jul 9, 2024

Repository files navigation

PY32 fidget spinner demo

3d render of board

This is a quick-and-dirty demo of just how cheap embedded compute can get nowadays — approximately USD$6 for an assembled board with a 32-bit Cortex-M0.

In order to actually make good use of this available compute, the idea was to build a modern (i.e. state-space) control theory estimator to determine the orientation of the fidget spinner from accelerometer data, rather than more traditional approaches involving hall effect sensors.

Status

Revision A was ordered from JLCPCB, and all of the essential components work.

The state estimator has yet to be written, as the author is aphantasic and not much of a shape rotator (and thus struggling with writing out the necessary "physical world" equations).

Main components

  • PY32F002AL15 (MCU)
  • SC7A20 (accelerometer)
  • CR2032 battery
  • 30 charlieplexed LEDs

About

Puya PY32 deliberately-overengineered fidget spinner

Resources

License

Stars

Watchers

Forks

Packages

No packages published