User Tools

Site Tools


Sidebar

Dan's Wiki

DokuWiki Instructions (local) DokuWiki Manual
Site Checker (Orphans Wanted)

Edit Sidebar

projects:a4sim:altimeter

This is an old revision of the document!


Altimeter Replacement

Don says the altimeter that the A-4 training came with was not the right one. For learning purposes, I'm creating a new altimeter to resemble it, with digital components.

Having recently started designing with 3D printing, I plan to replace the altitude digit windows with a single OLED display, the barometer with a 128×32 OLED display, the pointer hand with a stepper motor, and the barometer adjust with a rotary encoder.

I'm trying to see if a single Arduino Nano can handle all of this. The concern is that the Rotary Encoder and the Stepper Motor might both need interrupts.


This is an implementation which works with the 2 OLED displays, and a Rotary Encoder. I had to add software to establish a second I2C system to communicate with the OLED displays, because the first I2C system connects with the driver Raspberry Pi.

Nano Pinouts

PinKnown AsWhat is connected to it
6D3Rotary Encoder red
9D6SDA OLED 1, SDA OLED 2
10D7SDC OLED 1, SDC OLED 2
21A2Rotary Encoder green
22A3Rotary Encoder blue
23A4I2C In, SDC, pulled high with 1K resistor
24A5I2C In, SCL, pulled high with 1K resistor
29GroundGround
30Vin7 - 10 volts DC

Rotary Encoder Pinouts

PinKnown AsWhat it is connected to
RedN.O. Switch Pin 1Arduino Nano D3
BlackN.O. Switch Pin 2Ground
GreenChannel AArduino Nano A2
YellowCommonGround
BlueChannel BArduino Nano A3
projects/a4sim/altimeter.1613085412.txt.gz · Last modified: 2021/02/11 23:16 by dwheele