Cockpit build

Arduino encoder library

Posted in Cockpit build, Programming on October 18th, 2014 by trenck – Comments Off

Encoder library is published by pjrc


The code

#include "Encoder.h"

 Encoder encoder(2, 4);

 void setup() {
 attachInterrupt(0, doEncoder, CHANGE);
 Serial.begin (115200);
 Serial.println("start");
 } 

 void loop(){
 // do some stuff here - the joy of interrupts is

read more »

MQTT on Arduino Mega 2560 and enc28j60 network module

Posted in Cockpit build, Programming on October 18th, 2014 by trenck – Comments Off


Cabling

ENC CS -> Arduino SS (pin 53)
ENC SI -> Arduino MOSI (pin 51)
ENC SO -> Arduino MISO (pin 50)
ENC SCK -> Arduino SCK (pin 52)
ENC GND -> Arduino GND

read more »

Howto access and publish addon specific variables with FSUIPC

Posted in Cockpit build, Programming on August 1st, 2014 by trenck – Comments Off

Flight Simulator addons often have specific internal variables that are not published in FSUIPC standard offsets. These values could be interresting for cockpit building. For example, A2A P47 addon does not publish turbo RPM value, but this parameter is essential…

read more »