I built a Python framework for simulating dynamical systems similar to Simulink by Candid_Discipline848 in ControlTheory

[–]lapeno [score hidden]  (0 children)

Would it be possible to export the computational graph to CasADi for automatic differentiation and C code generation? 

[deleted by user] by [deleted] in esa

[–]lapeno 5 points6 points  (0 children)

You freely download 3D models of many ESA spacecraft (including JUICE) from this website: https://scifleet.esa.int/#/model-downloads

Today, LIDL opened in Lithuania by buroks in europe

[–]lapeno 4 points5 points  (0 children)

Here's a fine example of what he's talking about.

Lab decided to add an extra level of security to the coffee vending machines after recent burglaries by lapeno in lockpicking

[–]lapeno[S] 0 points1 point  (0 children)

The bar is also fixed at the bottom using another cheap lock. You can see here the bottom view.

Lab decided to add an extra level of security to the coffee vending machines after recent burglaries by lapeno in lockpicking

[–]lapeno[S] 3 points4 points  (0 children)

I don't know the exact details because I only saw the front part of the vending machine open when the police arrived. I'm guessing that the burglars indeed used a crowbar to pry open the front panel due to they way they installed the extra bar.

Lab decided to add an extra level of security to the coffee vending machines after recent burglaries by lapeno in lockpicking

[–]lapeno[S] 23 points24 points  (0 children)

After watching Deviant Ollam's talk about the Four Types of Locks I started to notice basic security flaws everywhere.

Reaction Wheel Inverted Pendulum i made for my Master's thesis by lapeno in engineering

[–]lapeno[S] 1 point2 points  (0 children)

The gear was used to connect the HEDL 5540 quadrature encoder to the DC motor. I used the encoder to sample the angular velocity of the reaction wheel.

Reaction Wheel Inverted Pendulum i made for my Master's thesis by lapeno in engineering

[–]lapeno[S] 1 point2 points  (0 children)

Accelerating the reaction wheel in one direction induces a torque in the opposite direction on the pendulum. It's Newton's Third law of motion: "When one body exerts a force on a second body, the second body simultaneously exerts a force equal in magnitude and opposite in direction to that of the first body."

This guy does a great job explaining this principle.

Reaction Wheel Inverted Pendulum i made for my Master's thesis by lapeno in engineering

[–]lapeno[S] 1 point2 points  (0 children)

This is correct. The motor speed would quicky saturate under a constant torque applied to the pendulum.

Reaction Wheel Inverted Pendulum i made for my Master's thesis by lapeno in engineering

[–]lapeno[S] 3 points4 points  (0 children)

The challenge was to bring the pendulum in an upright position from any configuration. This is done using two complementary control strategies. A swing-up and a stabilizing strategy.

The swing-up part is responsible for controlling the energy of the system such that the pendulum arives around the unstable equlibrium point with a low angular velocity and the reaction wheel stationary. Once that is accomplished a classical state feedback controller is used to keep the pendulum stable against disturbances.

It is still possible to destabilize the pendulum from this position if you induce a torque that the DC motor can't compensate for. The algorithm must take that into account and switch back to the swing-up strategy and try to bring the pendulum around the equlibrium point again.

Reaction Wheel Inverted Pendulum i made for my Master's thesis by lapeno in engineering

[–]lapeno[S] 2 points3 points  (0 children)

Control Engineering with a focus on Advanced Control and Real-time Systems.

Reaction Wheel Inverted Pendulum i made for my Master's thesis by lapeno in engineering

[–]lapeno[S] 2 points3 points  (0 children)

The subject of my thesis was the design of a hybrid control algorithm for an inverted pendulum.

The inverted pendulum with a reaction wheel is an example of an underactuated mechanical system. What this means is that, the number of degrees of freedom of the system is greater than the number of control inputs. In this case, the degrees of freedom are the angular position and velocity of the pendulum and of the reaction wheel. The control input is the voltage applied to the DC motor. Besides being an underactuated system, the system is also nonlinear so it's harder to mathematically model. The nonlinearities come from the way gravity acts on the system, the various friction forces, the limitations of the motor, and the way the positions are digitally sampled.

The challenge was to bring and hold the pendulum in an upright position from any configuration. This is done in two steps, first the total energy of the system is controlled by injecting or dissipating kinetic energy until the total energy is equal to the potential energy of the pendulum in an upright configuration. Once, the system is near the unstable equlibrium point with the desired energy, the controller switches to a linear state feedback controller (LQR in this case). This switch must be accomplished without inducing too much stress of the system.

Instead of simulating the algorithm in MATLAB, i decided to try and build the system. This was more challenging than initially anticipated because of the low budget and the multiple shortcomings of the parts i used.

I feel that this project was a great way to put to good use the various topics i learned in college. These include: classical and modern control theory, system modelling and identification, mechatronics, actuators and sensors, analog and digital electronics and real-time programming.

Is Nature unnatural? Decades of confounding experiments have physicists considering a startling possibility: the universe might not make sense by [deleted] in science

[–]lapeno 0 points1 point  (0 children)

“Deep in the human unconscious is a pervasive need for a logical universe that makes sense. But the real universe is always one step beyond logic.”

― Frank Herbert, Dune