From 6f88df37458297e7871d970baf71c6a37b591c95 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 24 Sep 2020 22:54:49 -0400 Subject: add readme, design sketches and more --- README.rst | 59 + cessna-knobox-circuit.svg | 6309 +++++++++++++++++++++++++++++++++++++++ cessna-knobox-enclosure-v77.f3d | Bin 0 -> 751342 bytes cessna-knobox-enclosure1.svg | 1115 +++++++ cessna-knobox-enclosure2.svg | 586 ++++ cessna-throttle-v39.f3d | Bin 0 -> 249355 bytes holder.stl | Bin 0 -> 75184 bytes slider1.stl | Bin 0 -> 52784 bytes slider2.stl | Bin 0 -> 58784 bytes 9 files changed, 8069 insertions(+) create mode 100644 README.rst create mode 100644 cessna-knobox-circuit.svg create mode 100644 cessna-knobox-enclosure-v77.f3d create mode 100644 cessna-knobox-enclosure1.svg create mode 100644 cessna-knobox-enclosure2.svg create mode 100644 cessna-throttle-v39.f3d create mode 100644 holder.stl create mode 100644 slider1.stl create mode 100644 slider2.stl diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..aab9690 --- /dev/null +++ b/README.rst @@ -0,0 +1,59 @@ +Ted's Cessna Knobox +=================== + +Materials +--------- + +- a friction-locked throttle knob (I used ) +- a vernier-style mixer knob (I used ) +- hardboard, 3.5mm in thickness +- M3 screws x4 for securing the potentiometers to the holders +- M2 screws x4 for securing the knob ends to the potentiometer sliders +- (M2.5/M3 screws + nuts) x4 for securing the holders to the enclosure +- you'll need to laster-cut the hardboard and 3D-print the holders/sliders + +3D Printed Components +--------------------- + +- Holders: ``holder.stl`` +- Sliders: ``slider1.stl``, ``slider2.stl`` + +Enclosure +--------- + +- Part 1: ``cessna-knobox-enclosure1.svg`` +- Part 2: ``cesnna-knobox-enclosure2.svg`` + +Circuitry +--------- + +- Configure the potentiometers as voltage diviers: + + - Connect two ends to have 3.3v difference in voltage + - Connect the pivot pins to A1 and A2 of the microcontroller + +- Configure the switches as pull-up inputs: + + - Connect the middle pin of all switches to the ground (G/GND) + - Parallel one side of the resistors (15K x5) to be 5V (5V pin) + - Connect the other side of each resistor as shown in the diagram: + + - One (left/right) pin from each of three switches connects to A8, A9, A10, respectively + - Pins (left & right) of the fourth switch connect to B14, B15. + - Note: the lower right switch is a SPDT switch that springs to off when no + pressure is applied. It could be used as flap control. + +.. raw:: html + +
+ +
+ + +Firmware +-------- + +- (optional) To build the firmware from source, run ``./build_image.sh`` (make sure you + have Rust/Cargo installed on your computer) +- Or you can use a pre-built image already available at ``./cessna-knobox.bin`` +- Flash the image to the microcontroller using ST-link (you can either use the tool provided officially by ST, or do it in openocd) diff --git a/cessna-knobox-circuit.svg b/cessna-knobox-circuit.svg new file mode 100644 index 0000000..60d2579 --- /dev/null +++ b/cessna-knobox-circuit.svg @@ -0,0 +1,6309 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + G + G + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +