RandomPump = random(currentPressure, pumpPeriod) // if pressure is already higher than random pump, recalculate with current reading as the min. Serial.print("randomPump ") Serial.println(randomPump) RandomPump = random(200, pumpPeriod) // Random pump time on generation This is probably an awkward way to input data but it's the only way I have found. Int currentPressure = (analogRead(pressurePin)-SensorOffset) // Pressure check 1 I've tried various types for 'h' and other ways to get what I need such as String h 1 and String h What I need: User inputs some characters but is not allowed to repeat any. ESP32 crash executing Serial.println of a string Using Arduino Programming Questions tomsc May 16, 2022, 4:39pm 1 Hey, i have some problem with my code: the ESP32 crash when i try to print out the content of one item of the String. This module picks up the signal of the GPS satellites that orbit above its position and by using mathematical Trilateration and presice timing it can calculate reliably its 3D position. If ( abs (newPumpPeriod - oldPumpPeriod) > 2) This component is a GPS module that works with 5V voltage input and it is compatible with arduino boards. Long pumpPeriod = map(pumpReading, 1023, 0, minPump, maxPump) Here is the section of code where the prints are located. but when it messes up, the code itself works normally, but won't print values, and i've never seen it do this before. If i apply a 2 more serial prints on other values in my code just a few lines down, then all of the serial prints are correct as it should be, but it's not working on that one value by itself. I listed it as an Int as the values are limited to 3 digits. If i attempt to serial print one of the values from my code the variable of the print part shows 16 squares. arduino - sent JSON file from ESP32 cam to Firebase but i get error: no matching function for call to 'FirebaseESP32::pushJSON (FirebaseData&, String&, String&)' - Stack Overflow As of May 31, 2023, we have updated our Code of Conduct. yesterday i discovered a problem that doesn't make any since to me.
0 Comments
Leave a Reply. |