Hi everyone i was wondering if it would be possible to create a custom version of the ide with a simple to use gui. I am working on a project that i would like to have a piece of custom software for that allows me and other users to very quickly change a few perameters of the sketch (servo positions, delay timings that sort of thing) without having to go into the full sketch and fiddle about with the code, i was looking into the possibility of using a pyhon program utilising the firmata libraries but then it occured to me that the ide is open source and coded in java i do belive so i was thinking of having the sketch auto loaded and then creating a custom front end for the ide that has drop down boxes to select different values for the required adjustments... is this possibility or is their an easier way i am missing ?
How about having the parameters saved to EEPROM and changing them using the Serial monitor or via Bluetooth to a custom app or via a web page using a browser or by using the Blynk app ?
Any of those would be easier than creating a custom version of the IDE and would not involve recompiling the sketch when a parameter is changed
All your settings can be in a .cpp or .h file (I'm not sure which extension is the most appropriate).
As for a custom GUI, I guess a Word or libraoffice Macro would be the easiest, or even excel. Otherwise any computer based programming language could create a GUI.
It would still have to be compiled.
first step you could try : add a new tab named config.h and put all the relevant user configurations in that config.h tab.
don't forget to #include "config.h" in your main tab.
Doesnt eeprom only have a limited number of writes though
Thanks i will look into this
Thats intresting i shall add that to the list of possibilites
Yes, but how often and over what period do you expect your users to change the parameters ?
If you are worried about using EEPROM then consider saving the parameters to SD card or if the parameters are not to be retained after power down or reset then don't bother saving them at all
Extending @UKHeliBob 's thoughts.
You could use an SD card, write the data from a PC (or MAC?) to the card, on bootup your application could read the card and apply your new settings.
OR
You could get a board with bluetooth and write a small application on your phone to change the settings.
100,000 for a cell; how often do you want to change the parameters. Just don't update the eeprom every cycle of loop() with e.g. EEPROM.write().
Use EEPROM.put() and EEPROM.get() so you don't have to fight with anything larger than a byte. And EEPROM.put() will only write changed bytes, not unconditionally.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.