Cookie Robotics

My Personal Website About Robotics & Programming

Electronics

Simulate & Log AVR

Steps to run AVR program on AtmelStudio simulator and log register values.

Lookup Table

ATmega328P Timer/Counter0 fast PWM period and duty cycle.

Interrupts

How interrupts work on ATmega328P.

Timer/Counter0

Summary of Timer/Counter0 on ATmega328P.

Memory

An overview of ATmega328P memory summarized from the datasheet.

28BYJ-48

Stepper motor 28BYJ-48 was disassembled to understand how it works.

Transistors

Types and symbols of transistors and their behavior.

VL53L1X Breakout

Comparison of VL53L1X breakout boards.

PCB

プリント基板に関する用語とそれらが指す物・寸法のまとめ。

KiCadでunicraft

unicraftで基板発注する際のKiCadの設定。

USB Power Bank for Pi

USB Power Bank for Raspberry Pi

CNC

アルミ切削条件

卓上CNCでアルミを切削するときの条件。

Custom Gears

How to make gears from scratch with desktop CNC.

Misc

ZYX Euler Angles

ZYX Euler angles to rotation matrix and back.

ZXY Euler Angles

ZXY Euler angles to rotation matrix and back.

Quaternion to Rotation Matrix

Methods to convert quaternion to rotation matrix.

QP Trajectory with Wall

Method to generate polynomial trajectory with wall constraint with QP.

QP Trajectory

Method to generate polynomial trajectory with QP.

Polynomial Trajectory

Method to generate quintic polynomial trajectory.

Mixer Theory

Motor mixer theory for multirotor.

Low Pass Filter

Time constant of low pass filter code.

RCヘリ分解

2000円のラジコンヘリを分解。回路を分析。コントローラーとの赤外線信号の解読など。

Composition of Rotations

Pre and post multiplication of rotation matrices and quaternions.

FFT

Input and output of Fast Fourier Transform. Units and vector length.

Covariance Ellipse

How to draw ellipse of covariance matrix.

Cov vs Cor

Covariance and correlation formulas as well as conversion between the two.

Accelerometer Calibration

6 point calibration method.

Accelerometer Calibration

Different calibration methods.

Programming

Quaternion EKF 2

Quaternion-based extended kalman filter with gyro bias.

Kalman Filter 1D Motion 3

Kalman filter for 1D motion with acceleration and bias.

Kalman Filter 2D Motion

Kalman filter for 2D motion.

Kalman Filter 1D Motion 2

Kalman filter for 1D motion with acceleration.

Kalman Filter 1D Motion 1

Kalman filter for 1D motion.

Quaternion EKF 1

Quaternion-based extended kalman filter.

Non-Break Space

Replace non-break space with regular spaces.

ノーブレークスペース

ノーブレークスペースを半角スペースに置き換え

Atmel Studio

Blink Arduino's on-board LED with Atmel Studio 7.

Global Functions

How to use C++ global functions.

Win32 Char

About Windows character string types: LPSTR, LPCSTR, LPWSTR, LPCWSTR, etc.

Static Const Member

How to use C++ static const member variables of different types.

Python 3 Snippets

Integer, string, array, loop, function, etc.

Python Controls

Python snippets for controls engineering.

Control Theory

Implement 1st Order LPF

How to implement 1st order low pass filter

Pendulum

Pendulum dynamics and simulation

Estimate Transfer Function

Estimating transfer function from only its input and output data

Step Response

Step response from input/output data

Simulation

Methods to simulate systems

Controller Design

Steps to design a controller

PID Control

Math and effects of each term.

On-Off Control

System to control room temperature is shown.

2D Quadrotor

Quadrotor PD control in 2D with simulation.

1D Quadrotor

Quadrotor PD height control and simulation.

Mass Spring Damper

Mass spring damper system. Transfer function, block diagram, state space model.

LR Circuit

Series resistor inductor circuit system. Transfer function, block diagram, state space model.

Series RLC Circuit

Series resistor inductor capacitor circuit system. Transfer function, state space model.

Torsional Friction

Torsional friction system. Transfer function, block diagram, state space model.

Gears

Gears system. Transfer function, block diagram, state space model.

DC Motor

Permanent magnet DC motor system. Transfer function, block diagram, state space model.

Block Diagram

How to construct transfer function from block diagram and vice versa.

Car Suspension

Car suspension system. Transfer function, block diagram, state space model.

Canonical Forms

Control and observer canonical forms for 1st, 2nd and 3rd order systems.

Representations

Control system representations and conversion between them.

State Space Model

State space model. How to choose variables. How to simulate.

1st Order Response

First order system response formula. Step and frequency responses.

1st Order Ex1

Determine frequency response of known system.

1st Order Example 2

Modify a given system to respond faster.

1st Order Ex3

Modify a given system to reach steady state after 8 sec.

1st Order Ex4

Determine system model from step response measurement.

2nd Order Response

Second order system response. Step and frequency responses.

2nd Order Ex1

Modify a given system to respond faster.

2nd Order Ex2

Design a system with fastest response and no overshoot.

2nd Order Ex3

Design a system to overshoot a little.

2nd Order Ex4

Design a system with fastest response and no overshoot. Analyze failure scenario.

Closed Loop System

System error and unity feedback.

System Identification 1

System identificatin of first order system.

System Identification 2

System identificatin of second order system.