background preloader

Processing

Facebook Twitter

Fun Programming. Tim Lightfoot. Artificial Horizon+ Compass. Hi: I did a few modifications to what appears on the video, like decreasing the precision of the variables and rotating the Pitch scale instead of the Bank one.

Artificial Horizon+ Compass

I had the CircularScale(); function already written from a previous project and decided to reuse it here instead of going PVectors. Here is the code: //Artificial Horizon+Compass by Adrian Fernandez 4-19-2013 //Built with Processing 1.5.1 int W=1350; //My Laptop's screen width int H=690; //My Laptop's screen height float Pitch; float Bank; float Azimuth; float ArtificialHoizonMagnificationFactor=0.7; float CompassMagnificationFactor=0.85; float SpanAngle=120; int NumberOfScaleMajorDivisions; int NumberOfScaleMinorDivisions; PVector v1, v2; //For testing only void setup() { size(W, H); rectMode(CENTER); smooth(); //strokeCap(SQUARE);//Optional } void Plane() { fill(0); strokeWeight(1); stroke(0, 255, 0); triangle(-20, 0, 20, 0, 0, 25); rect(110, 0, 140, 20); rect(-110, 0, 140, 20); }

‎www.local-guru.net/processing/gauges/gauges.pde. Watch the Online Video Course Interactive Data Visualization with Processing. Analog Clock Part 1. Let's make an artificial horizon display from an RC autopilot. Quote: No problem.

Let's make an artificial horizon display from an RC autopilot

It's ok with me if we have to let it calibrate for a few seconds in wings-level flight. I don't expect to be able to boot it up in the midst of a spiral dive... But that brings to mind one more feature that we could tack on, besides an artificial horizon and a heading indicator. A turn rate indicator built around a one-axis gyro (piezoelectric rotation rate sensor) has the unique advantage that it can be up and running with no calibration phase, as soon as it is switched on, even in the midst of a spiral dive etc. The idea is to give the pilot something that will work even when the system is switched on the in the midst of a spiral dive etc, or if the artificial horizon crashes due to hardware or software glitches or for any other reason.

An alternative philosophy would be to relegate the turn rate indicator feature to a completely separate piece of hardware, for better redundancy. Summary of desired features-- Virtual fpv/drone plane dashboard. New FreeIMU Library Processing GUI. Dials, Meters, BarGraph, Digit Displays, Indicators? Library or approach? Hello Everyone, I'm working on measuring several variables in a control environment with Arduino.

Dials, Meters, BarGraph, Digit Displays, Indicators? Library or approach?

I need to use processing to create a control and indicator panel with digital numeric displays, round "meter" displays, Bar-Graph type displays, and controls. I've looked at the great slider libraries like These are mainly for User INPUT. I need to display OUTPUT in various ways. Can anyone point to libraries that implement stuff like this?

I'm just starting and don't want to reinvent the rotary load-carrying device... Thanks! How to create a graphical interface for the Tinkerkit Gyro module (processing) Hello!

How to create a graphical interface for the Tinkerkit Gyro module (processing)

I have connected arduinoUno with tinkerkitShiekd and tinkerkitGyroscope(64). The sensor works fine and I get the reading in arduiniIDE but I need to graph the outcome so I have installed Processing and I have tried with the coded posed in arduino.cc for tk gyro and processing. No lucky. I get the below error:Exception in thread "Animation Thread" java.lang.NullPointerException at GyroGUIfromArduino.draw(GyroGUIfromArduino.java:100) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:662) I know that this forum is more for c++ but as the processing code comes from this site and a workshop with Vanzati, I thought that maybe someone has got the answer for my problem The code is as follows (Processing marks the line text("[Y] GYRO_Y speed: "+temp[1]+"°/s", 10, 70); ): /* -------+ TinkerKit!

Look on the product page for the Gyroscope specifiations: created 17 Sept 2011 by Federico Vanzati. JustGage.com. 066 - Supervisório em Processing - PShape + Corel Draw + Adobe Ilustrator. Examples. BMA180 is a three axis accelerometer used with an arduino. The BMA180 is a 3 axis accelerometer with I2C interface.

BMA180 is a three axis accelerometer used with an arduino

Looking to buy or find the datasheet. Look here.Wide variety of measurment ranges (±1g, 1.5g, 2g, 3g, 4g, 8g and 16g)14- or 12-bit ADC conversion2 selectable I2C addresses 0x40 & 0x41Programmable integrated digital filters (no external components necessary)8 low-pass filters1 high-pass filter1 band-pass filter Programmable interrupt features: Wake-upLow-g detectionHigh-g detectionTap sensingSlope detection2 main standard modes: low-noise and low-powerSleep modeWake-up modeSelf-test capability Dimensions: 0.80 x 0.40″ BMA180 Pitch and Roll Accelerometers can be used for measuring both dynamic and static acceleration. In order to define the angles of the accelerometer in three dimensions the pitch, roll and theta are sensed using all three outputs of the accelerometer.

Unfortunately, this theory can only be applied when the accelerometer is completely static. Many people use gyro’s to complement the accelerometer data. [/spoiler]