-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arduino R3 is incapable of running current Fuzzy Logic code #305
Comments
Lee experimenting with Wokwi simulating the MoonRatIi on an R3See: https://wokwi.com/projects/405744143993619457 I am worried I am not using the same code as is Robert. Simulation Compiles with Fuzzy Logic, OLED begin error.At run time I get an error "Error while initializing OLED" Notes on code changes to R3In the code I have: changed within the code the #define for R3
When I do so the code compiles so I conclude that running the Fuzzy Logic code is possible. I have compared and contrasted the code which I believe to be initializing the OLED and do not find differences against examples which compile and run. Because I saw it in other code examples I found, I added the line: "#include <SPI.h>" in Setup(), I have commented out some IO pin initialization for heater and buzzer that was before the OLED setup. However, the run time "Error while initializing OLED" remains. |
We are no longer using the R3 and have moved to the R4. |
Reopening and Trying to Duplicate Problem in MaryvilleJournal of TestingLee has installed the eFILL library Lee has found example codes from the eFILL library Lee has set the IDE for UNO and opened and compiled the example code from the eFILL library The compiler reports:
Load and RunLee loaded the code into an R3 and ran it. ConclusionLee is unable to duplicate the problem "Arduino R3 is incapable of running current Fuzzy Logic code". CC: |
Lee is right. I have tried to compile both Horacios most recent code and mine, and both seem to load into the R3. I can't explain if my creation of this issue was in error was based on some legitimate reason that I have forgotten. I am closing this issue for now. |
Probably because of memory.
It is very clear that just by uncommenting certain code, which is not executed until AFTER the OLED is initiated, we can prevent the OLED from initiating. This is code that allocates the "Fuzzy" objects.
I conclude that the Fuzzy logic will run on an R4, but not on an R3.
However, that analog temperature read basically doesn't work on an R4. (It is not clear to me that it works on an R3.)
So we are stuck. I am going to implement a PID controller on an R3; I believe there is a high probability that that will work, but I will check all the hardware features (esp. the temperature read) first.
The text was updated successfully, but these errors were encountered: