Howto:C172P Cockpit Project: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
m (+- Template:CockpitBuildingCategories → Category:Cockpit building)
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This Howto will develop into a detailed project plan for building a C172P Instrument Panel.  While not a step by step guide, it will include details on the prototyping, design and building of a panel.  The project includes the following major activities:
{{WIP}}
= Open Identified Tasks =
'''The Plan'''
{| class="wikitable"
! Task Description !! Blocking Factors/Action Items/Progress !! Status
|-
| Bench Power Supply
|
* Blocked by Lack of suitable case
* Action: Visit Robinson's Hardware, check out aluminum sheet


I intend to build a complete simulated  [[c172p|Cessna 172P]] Instrument Panel with working instruments, gauges, controls and radios, built from scratch, starting soon.
The project will be compact, about 40 inches wide, with seating and controls for a pilot and copilot.  It will be freestanding, but can also be attached to a table or desk.  I'd like it to be easy to transport so it can be demonstrated to others in a variety of settings.  During the project I'll be learning more about Electronics, 3D Printing, Routing and Milling and using basic machine tools.  I've already started, I have a few drawings and CAD designs.  I am about to do some prototype circuits for things I'm certain to use.  As I go through the project, I'm doing a lot of writing both about the process and the results.  I hope these will be a help to others on the same journey.


* Blocked by: Lack of a Bending Brake
While working on this project I'm working on two related How To sections on the wiki.  This one and one covering cockpit building in general.
* Action: Make a Bending Brake
* [[Howto:Build your own Panel or Cockpit]]




* Action: Bend Some Tin
==== Resources ====
* Action: Test what load Resistor will turn on the power supply
[[Howto:C172P Panel Project - Specifications]]
* Action: Drill Mounting Holes for Load Resistor
* Mount the power supply in the hand built case
* Blocked by: No way to extract power from power supply without cutting wires
* Action Taken Ordered 24 Pin Socket from E-Bay
| Proceeding in part
|-
| Flightgear Rasberry Pi Client
| Ready To Start
* Create Data Structures
** Flightgear Aircraft Property Table
** Cockpit Hardware Table
** Flightgear Connection Table
* Build Test Stubs with data for these tables
* Investigate Exporting/Importing the data from XML files
* Find out if a node server could drive or call the client
*
| Status
|-
| Task Description
| Blocking Factors/Progress
| Status
|-
| Task Description
| Blocking Factors/Progress
| Status
|}


= Description =
'''Prototypes''': [[Howto:C172P Panel Project - Working Prototypes]]
The work product will match an actual C172P cockpit instrument panel as closely as possible given constraints of tool availability, time and money.


Versions:  
'''Drawings and Photographs''' [[Howto:C172P Cockpit Project/Design Drawings and Pictures]]
# A set of rotary encoders and switches in an overlay for a regular monitor
# Expand the project to include items in the radio stack
# Replace the monitor with individual instruments


= Design Alternatives =
'''Spreadsheet of C172 Measurements''': https://docs.google.com/spreadsheets/d/13WAzYXTJ5VtTF4HeXYd2oaQTcCOABuSQmISIwCf_kmU/edit?usp=sharing
* Instruments
** Monitor Overlay
** Individual Instruments
* Multi-value inputs
** using potentiometers and ADC ports
** Using magnetic encoders with:
*** AtMega driven pins
*** SPI
*** I2C
* Display of Numeric and Alphabetic data
** driven by Maxim Max7221 on an SPI interface
** driven directly by an AtMega processor
* Banks of switches and rotary encoders with a multiplexed parallel interface
* Raspberry Pi connected to one or more AtMega Processors via SPI or I2C
* Raspberry Pi connected to a 4 to 16 bit multiplexer to select SPI data
* Raspberry Pi responsible for interfacing raw data to flightgear property values
* Display of numeric and alphabetic data using 7 and 16 segment displays
** drive with AtMega chip and Transistors
** drive with Maxim Max7221CNG Integrated Circuit
* AtMega Processors with port expanders responsible for raw data
* AtMega Processors communicate with Raspberry Pi
** Using SPI
** Using I2C
* Telnet interface to Flightgear runs on Raspberry Pi
** C programming language


 
[[Category:Cockpit building]]
== Code Development Activities
=== Client to Flightgear protocol ===
=== Client to AtMega protocol
=== Pi Client ===
=== AtMega Client ===
=== Magnetic Encoders ===
* For Heading Adjusters on Instruments
* Replacement for Rotary Encoders
* Replacement for Potentiometers
 
 
= Proof of Concept and Prototyping Activities =
 
== Client on PI ==
=== Communication with Flightgear using Telnet ===
* Change the value of a cockpit switch
* Read the value of a Com or Nav Radio's frequency
* Change a standby frequency
* Make a standby frequency the in use frequency
* Dim and brighten the instruments
* Move the throttle
* Move one of the control surfaces
=== SPI ===
* different speeds
* Error Detection and re-transmission
* Client to ATMega
* Client to Max7221
* Client to Port Expander
=== I2C ===
* different speeds
* Error Detection and re-transmission
* Client to ATMega
* Client to Port Expander
== Client on AtMega ==
=== Communication ===
* I2c
* SPI
* Raw Data Protocol
== Data Acquisition ==
* Switch
* Rotary Encoder
* Magnetic Encoder
* Potentiometer
== Control Data ==
* Air Core
* Stepper Motor
* Lighting Level
*
 
 
= Building =
 
== Hardware Choices ==
* AtMega Models
* Raspberry Pi III
* for 7 and 16 segment displays
** Max7221
** or 7 Segment Driver Transistors
* 4 to 16 Multiplexer
* Magnetic Encoder
* Rotary Encoder
* Slider Potentiometer:
* Power Supply: Bench Supply based on an ATX PC power supply
* Knobs
** Heading Adjusters
** Radio Stack Volume
** Radio Stack Frequency Select
** Radio Stack Buttons
** Rotary Switches
** Rocker Switches
** Toggle Switches
** Main Switches
** Magneto Switch
** Flaps Lever: Design the Mechanism to attach to a rotary switch

Latest revision as of 17:08, 15 March 2020

WIP.png Work in progress
This article or section will be worked on in the upcoming hours or days.
See history for the latest developments.

The Plan

I intend to build a complete simulated Cessna 172P Instrument Panel with working instruments, gauges, controls and radios, built from scratch, starting soon. The project will be compact, about 40 inches wide, with seating and controls for a pilot and copilot. It will be freestanding, but can also be attached to a table or desk. I'd like it to be easy to transport so it can be demonstrated to others in a variety of settings. During the project I'll be learning more about Electronics, 3D Printing, Routing and Milling and using basic machine tools. I've already started, I have a few drawings and CAD designs. I am about to do some prototype circuits for things I'm certain to use. As I go through the project, I'm doing a lot of writing both about the process and the results. I hope these will be a help to others on the same journey.

While working on this project I'm working on two related How To sections on the wiki.  This one and one covering cockpit building in general.


Resources

Howto:C172P Panel Project - Specifications

Prototypes: Howto:C172P Panel Project - Working Prototypes

Drawings and Photographs Howto:C172P Cockpit Project/Design Drawings and Pictures

Spreadsheet of C172 Measurements: https://docs.google.com/spreadsheets/d/13WAzYXTJ5VtTF4HeXYd2oaQTcCOABuSQmISIwCf_kmU/edit?usp=sharing