I would really like to get OTA working here as it's freezing outside and I have to go there to update the software in the greenhouse control system.
So please, can we have a 'how to' step-by-step guide to OTA? Please?
S.
I had the same problem with "Emakefun LGT-RF-Nano für Arduino Nano V 3,0 RF-NANO LGT8F328P Integrieren NRF24l01 + Micro USB Nano Bord mit Antenne Interface"
Using the default Compiler the Serial Messages were not working properly.
I used this https://github.com/nulllaborg/arduino_nulllab Board Package and it worked(at least the serial issue). The rest I still need to test.
I hope this helps some hours of trouble.
Hello Jeelet,
Thank you for the encouragements.
Your advice to save (protect) the Oled screen is also welcome, thank you.
My code expects it, the text is mini and moves every 3 seconds. Press a key and the menu returns.
Cordially.
@isded from what is explained in this page it seems it is based on the Semtech SX1278 :
https://www.makerfabs.com/sx1278-lora-module-433m-10km-ra-02.html
It's an awfully convoluted way of doing things but suspect your error lies in misunderstanding calculations mixing ints and floats and something screwy with your resistor bridge - It is always worth checking the bridge with a multimeter and raw voltage to verify the expectation.
If you have 3v at the top of your voltage divider, you should be getting 0.9593v applied on the ADC pin which will be read as 892 against the 1.1v internal reference.
The easiest way I found was to define a multiplier needed to derive the raw voltage, in this case (((R1+R2)x1.1)/R2) - For your resistor arrangement the max you can read is 3.4404v before exceeding the 1.1v internal reference.
To reverse the ADC reading of 892 to raw voltage is (892x3.4404)/1023 = 2.9984 v.
Perhaps this is a simpler way to do it
float MULTIPLIER= (((1000+470)*1.1)/470);//Resistor bridge values in k and Vref
int sensorValue = analogRead(BATTERY_SENSE_PIN);
float batteryV = (sensorValue * MULTIPLIER)/1023.0; //Note the trailing decimal point on the 1023 for calculations involving floats