Maksimuzz's blog - RC Groups
Maksimuzz's blog View Details
Posted by Maksimuzz | May 21, 2018 @ 01:09 AM | 1,027 Views
As mentioned earlier, it is easy to assume that a longitudinally placed gyroscope can be used to hold the roll. But I would like to check this before the plane is crashed. And I would also like to check the aircraft control algorithms. This feature is provided by the XPLANE flight simulator(Ask me if needed). Since I bought the version of XPLANE-6 in due time, I use it. Why XPLANE? It allows you to output data from the simulated aircraft sensors to other programs or computers by various means. I have chosen the UDP protocol for this. The picture shows a block diagram of the simulation complex.
Name: SimXplaneDia.png
Views: 10
Size: 198.2 KB
An example of one flight and an explanation of the simulator configuration and the autopilot program can be seen in the video. The video shows the various modes of flight of the aircraft and contains instructions for setting up the X-Plane simulator and the autopilot program.

4.1 PPJOY and VSPE.

To control the aircraft in the simulator usually a joystick is used. For training in the management of radio-controlled aircraft, the corresponding simulators are also used. To interface standard remote controllers with simulators, there is a PPJOY program that converts the input data stream of the RS232 interface, created according to certain rules, to virtual joystick control signals. The program also contains a driver, which is defined in the system as a joystick. Description of the program PPJOY can be found in free access on the Internet. Here you can find an application that can work...Continue Reading
Posted by Maksimuzz | May 12, 2018 @ 09:55 AM | 841 Views
3.6 GPS module

A GPS module with a built-in antenna is used. This is a small modul, located outside the shielded box of autopilot. (See previous Fig. with Pitot). The documentation for the module can be found in the GPS folder. The module S3126 is applied. The GPS module is connected to the controller via one of the UARTs. Communication with the module follows the standard protocol NMEA0183. In the 2017_09_02 test, before the launch of the aircraft, the GPS did not work properly, and the aircraft flew very beautifully... but with a wrong course. As it was possible to see from the data of the "black box" TRACK005.LOG GPS "thought" that it is a kilometer from the given point. This can be seen in the flight data from 2017_09_02. It should be noted that in this test I could not yet control the distance to the next flight point before the flight(i.e., the autopilot was turned off). Therefore, the distance of 134 M in the log file did not indicate that the place of the aircraft was correctly determined. The distance to the next point should be about 100 m, the offset is about 0, and the course is 323. However, as you can see, real data appeared only at the moment of takeoff at 14:10:33. And the course turned out to be 150, the distance is 1012M, the displacement is 121M (deviation from the axis, according to which the aircraft must fly in accordance with the task). After this test, a change was made to the program so that the routing data is displayed in...Continue Reading
Posted by Maksimuzz | May 03, 2018 @ 09:32 AM | 1,931 Views
3.3 Altimeter

As an altimeter an absolute pressure sensor is usually used. The MPXA4115A6U sensor is used in this project. The sensor outputs a voltage that is measured by the controller. Before the flight it must be warmed up. The warm-up time is 10-15 minutes. As the atmospheric pressure changes, the altimeter is calibrated automatically before each flight. The sensor has a significant temperature drift. Figure shows the graph of the altimeter drift. Since the speed sensor is also a pressure gauge, the drift is the same.

Name: AltitudeSpeedDrift.jpg
Views: 0
Size: 117.8 KB

The most interesting test of the pressure sensor is undoubtedly a trip to the underground. The data of the black box of the trip is shown in next Figure. About this graph it can be said that the autopilot is switched on on the 12th floor, (about 36 m). Further descent on the elevator, then I went by bus, and then by underground train. The final point of my journey, when I got off the subway, is really on the hill.

Name: Metro.jpg
Views: 0
Size: 228.9 KB

3.4 The air speed sensor (Pitot).

The speed of aircraft is usually measured with a Pitot tube. These things are usually calculated. But it is clear that if you blow to the tube (without touching it with your lips), then the pressure in it will increase. Measuring the pressure in the tube you can estimate the speed of flight. The tube is usually placed either on the wing or on the fuselage (if there is't the pulling screw). For correct measurement, it is necessary that the engine does not pump air directly into the tube. Being...Continue Reading
Posted by Maksimuzz | Mar 22, 2018 @ 02:09 AM | 1,265 Views
3.1 Accelerometr

The sensor is designed to measure of a linear acceleration. As an accelerometer a device ADXL202E (Analog Devices) is used. This is a two-axis accelerometer with output in the form of pulses, the duration of which is proportional to the acceleration. The pulse width is measured by a timer. Only one of the axes (X) is used to measure of the aircraft inclining. The Y axis can be used to calculate the lateral acceleration and its compensation by trimming the rudder position. This feature while is not implemented. This axis(Y) shows the position of the "ball" in the corresponding angular velocity sensor and airplane sliping (For example, Yak-18T, EUP-53).
Name: JEUP-53_web.jpg
Views: 0
Size: 32.8 KB
When turning (under the turn of the pilots is understood any course change of the aircraft), the pilot to reduce the slip usually levitates the pedals and holds the ball in the center position. The drift of the accelerometer when measuring the slope is shown in picture. As you can see, when drifting into the refrigerator for 15 minutes, the drift was -5 degrees.
Name: ADXL202-Pitch.png
Views: 0
Size: 13.8 KB

3.2 Gyroscope

The key element of the panel of any aircraft is the horizon. It is usually built on the basis of a mechanical gyroscope. It shows the roll and pitch of the aircraft in the instrumental flight mode. This project uses the MEV-50A semiconductor gyroscope to measure aircraft roll. However, unlike the classical gyroscope, semiconductor gyroscopes measure not absolute roll, but its derivative - angular velocity. This...Continue Reading
Posted by Maksimuzz | Feb 22, 2018 @ 05:11 AM | 1,287 Views
The functional diagram of the autopilot is shown on a picture. The heart of the autopilot is the LEVEL1 block. This module is a high-priority function and is executed independently of other events every (15.625 ms tested version) 46.875 ms. Its task is to keep the aircraft in the correct flight position.
Name: FunctionalDia.png
Views: 0
Size: 42.4 KB
The input data for the module is the FSSi structure, which contains the parameters Roll, Pitch and Air Speed. A correct flight position we will name roll = 0 and pitch = 0, when Ref signals are absent. Also this module controls the engine controller of the aircraft and ensures the holding of the speed received from the LEVEL2 unit in accordance with the flight task. The Level2 module disturbs the LEVEL1 module by the Ref signals and thus forces it to hold non-zero roll and pitch values that calculated in accordance with the flight task. The speed parameter is directly transmitted from the flight task. The output of the module is a data structure that contains the current position of ailerons, elevator, rudder and rudder (Throttle). This structure in the program is called FSSo, the Module has the name FltStSys (flight stabilization system). It can be fed into the PWMC (Pulse Wide Modulation Controller) if the autopilot mode is activated. Otherwise, a structure filled with a timer is sent to the PWMC according to the measured values received from the HF receiver. This is a traditional control mode for radio-controlled models. The Level2 module is slower, it generates...Continue Reading
Posted by Maksimuzz | Feb 12, 2018 @ 09:42 AM | 2,120 Views
1. Introduction
I started interest RC-planes at 2002 I made , when I had living in Prague. The first aircraft was with a wingspan of 1.2 m, engine 2-stroke ICE. Here is a fragment of a video recording of those times. Once in 2008, I got an accelerometer ADXL202E. Having experience developing devices on the MCS-51 family controller (it was Rubidium frequency standard and data acquisition system), I decided to make an autopilot for the Mentor radio controlled model. First of all, I connected the accelerometer to the controller. For simplicity, I chose a debug card with the AT91SAM7 controller, for the convenience and ease of handling it. It should be noted that I decided not to study anything about autopilots on the Internet, but to do everything myself with "0", so that it would be more interesting.
Name: sam7-h256.jpg
Views: 8
Size: 51.1 KB
Description: Controller board
So, by chance of the case in 2008, I happened to fly by plane and have the opportunity to use a laptop and my controller with an accelerometer on board. Today, any owner of a tablet or smartphone can carry out such an experiment independently, since accelerometers are available in almost all devices.
Name: IMG_0545.jpg
Views: 8
Size: 1.61 MB
Description: At board
That's where I made the first "discovery" for myself, that you can use the accelerometer to stabilize the pitch (since the aircraft cannot gain speed too fast or slow down), but for stabilizing the roll it is not good. Since with a correct turn without slip, the side accelerations are compensated by the aircraft's roll, and the accelerometer does...Continue Reading