cause of the pandemic situation, i bought a lasertag System for my family, to give them some "Special-Events" and fun to stay in motion.
For the system, there is a great Open-Source-Project that i would like to use.
I bought the hardware and prepared everything.
Never before, I used Arduino before and read tons of stuff to make the required ino files "work".
With the exception of one, they all are working now.
Here some more information about this:
SOURCE of the **.ino: raw.githubusercontent.com/LaserTagMods/JEDGE/main/JEDGE%205.0/TAGGERS/TAGGER.ino
( Cause of a difference to the used libraries of the author and mine, I had to change:
ESP_IF_WIFI_STA to -> WIFI_IF_STA )
Wire
I got this error message:
C:\Users\Daniel\Documents\Arduino\TAGGER.ino\Tagger\Tagger.ino: In function 'void ProcessIncomingCommands()':
C:\Users\Daniel\Documents\Arduino\TAGGER.ino\Tagger\Tagger.ino:1301:63: warning: large integer implicitly truncated to unsigned type [-Woverflow]
if (incomingData2 == 2128) { pblives = 5; PlayerLives = 32000; EEPROM.write(8, PlayerLives); EEPROM.write(11, pblives); EEPROM.commit(); AudioSelection="VA6V"; Serial.println("lives5");}
^
Sketch uses 1623245 bytes (123%) of program storage space. Maximum is 1310720 bytes.
Global variables use 55800 bytes (17%) of dynamic memory, leaving 271880 bytes for local variables. Maximum is 327680 bytes.
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
Compilation error: text section exceeds available space in board}
I am already trying to make it work now for weeks.
Lots of combinations of libraries have been in use since the beginning.
I do not know how to fix this.
Hopefully i ask now here for your help
Which board are you using? 1MB of flash seems low for an ESP32; I thought even minimal boards had 2MB. There are some options in the tools menu for changing the partitioning of flash between "program memory" and "SPIFFS" (file system) - perhaps you can play with those to get things working.
im a total newbie Arduino user. The Code is from an Open-Source to "upgrade" the functionality of my lasertag weapons. Im not sure, do you mean i should change the expression in the code to "? :-/
A byte of (EEPROM) memory can hold numbers from 0 to 255. I don't think you can write the value 32000 into EEPROM with EEPROM.write() and expect to get 32000 out again with EEPROM.read().
I bought these: "KeeYees 2 Stücke ESP32 Mini WiFi + Bluetooth Internet Modul WLAN Entwicklungsboard Chip ESP-WROOM-32 für NodeMCU für Arduino" on amazon ( the forum didn`t allow me to post the link another time)
..but there are not in list, so i choosed the "NodeMCU-32S", cause i read that it should be the most compatible option
I apologize for the inconvenience @verpeilimon. The forum software's automatic spam detection system is sometimes a little bit overzealous. This is why human moderators review every automated action it takes.
The problem should now be resolved and you should be able to go back to post links as you like. If you have any further problems with it, please let me know and I'll investigate.
It's true that it's "most compatible", but that also means that it's specified as having the minimum amount of memory and etc.
Probably you should try the "ESP32 Dev Module" near the top of the list, which seems to have maximum options. The disadvantage is that you might have to set some of the options "correctly" before it will work...
I always use the board "ESP Dev Module" and had no problems yet. I haven't analysed the specifics of the different board-definition. My guessing is it adds alternative IO-pin-names and adjusts flash-memory size. But I never encountered a real problem.
first i have to ask you to excuse my late reaction.
I tried lots of runs, willing to solve the problem.
It seemed that nothing was working. Later i reinstalled the software and tried again.. and again...and so on..
That really really frustrated me and i tried a short break .
Last week, i tried starting from zero and uninstalled the software, cleared chache and temporary files, etc... downloaded a new version of "arduino ide".
With the libraries etc. just downloaded and configurated from new... it immediatly worked :-). Your clues helped me to solve this, espacially the following ones:
Using "ESP32 Dev Module",
Activation of „Partition Scheme“ -> „Minimal SPIFFS ( Large Apps with OTA )
Many many thx for your support. I `m really happy about the solution and looking fro a source to learn a little bit "C", cause i would like to add the possibility of using "RFID" .