8000 GitHub - dbarzin/Pendoluno: Modeling of a Damped Triple Pendulum on an Arduino UNO
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dbarzin/Pendoluno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Penduluno

Modeling of a Damped Triple Pendulum on an Arduino UNO

The idea comes from a video of the coding train Coding Challenge #93: Double Pendulum

Then I imagine to make it run with three Pendulum on an Arduiono UNO.

screen

Make it run on an Arduino with only 32k bytes of Flash was a little chalange !

How it works

It works with a 2.8'' TFP LCD Schield

device

Reference

The math is based on a paper from Nick Eyre & Jeff Holzgrafe Modeling of a Damped Triple Pendulum

How to install it

1 Install Arduino

2 Download this project and open it with Arduino

3 Install these libraries

  • MCUFRIEND_kbv version 2.9.8
  • Adafruit_GFX_Library version 1.2.9
  • SPI version 1.0

4 Maybe customize the code depending on the LCD screen you have :

#define LCD_CS A3              // Chip Select goes to Analog 3
#define LCD_CD A2              // Command/Data goes to Analog 2
#define LCD_WR A1              // LCD Write goes to Analog 1
#define LCD_RD A0              // LCD Read goes to Analog 0

#define LCD_RESET A4           // Can alternately just connect to Arduino's reset pin

#include <MCUFRIEND_kbv.h>
MCUFRIEND_kbv tft;

#define SCREEN_WIDTH  320      // Screen Size
#define SCREEN_HEIGHT 240      

5 Upload the code to your Arduino UNO (don't forget to set it to the right upload settings!)

Done

About

Modeling of a Damped Triple Pendulum on an Arduino UNO

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0