Basicly the code is very complicated for my basic programming skills, it contains librarys and i really am not sure what to do. Obv i have googled librarys/ and im befuddled. I am trying to add a I2C 16x2 LCD to display the battery voltage, and the signal strength (from the video receiver 0 - 1.1v as a percentage) once i can do one i can prob alter it myself for the rest.
I cannot just "post the code" to look at, i have dug out the .ino though
Any pointers/keywords for google or sample code i can start on would be great
Is there some sort of hardware that this is designed to run on? Like for example the multiWii Arduino code runs on multiWii Arduino controller hardware that you can buy online. Is there something you can buy that this code runs on?
I add an LCD character display to almost all of my projects, at least during the design phase, to display the status of inputs and variables. And I always use one with an I2C backpack since it saves pins and is slightly easier to code for.
The tricky part is that there are several brands of I2C backpacks for LCD displays, and they used different pin assignments. There are also multiple branches of the LiquidCrystal_I2C library and some work better than others. I suggest the library created by Francisco Malpartida, you can find it here: https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home That page also contains some usage instructions, which in summary: #include wire.h and LiquidCrystal_I2C.h, create an instance (usually called "lcd") and pass the I2C address to the constructor. In setup() you initialize it with the .begin(x,y) function and pass it the size, columns and rows, then you can turn the cursor on and off, backlight on and off, and position the cursor with .setCursor(x,y).
in loop() you can display your sensor status with the .print function. Example:
lcd.setCursor(0,0);
lcd.print("Batt Voltage:");
lcd.print(battVolts); //name of your variable