Looking for an easy way to "write"
KeithK
Posts: 5
I just got my propeller kit with a manual and I didn't see anything in the book that covered the "write" function found in the bs2p. Am I missing something? I am working on using the propeller to replace a bs2p project that I built several years ago. I need to be able to use a menu to select several values and then have them saved to the eeprom for later use. It's·being used to control a bleed valve that needs to maintain the same setting between power ups. It will also need to be able to save values that are created while the program is being ran.
Let me try to explain it a little better with a description of the application. An lcd with buttons is used to set a pressure value in psi. There is an analog pressure sensor that gives feedback as to what the actual pressure is. There is a valve that is adjusted with a servo that will open or close as needed to hit the pressure target. Once the pressure target is hit and maintained, the value that was sent to the servo is saved to set the baseline for the next time the application is started. It will then start over with adjusting as needed to maintain the desired pressure.
If I don't record the value that is sent to the servo, it will have to relearn where it needs to be every time.
Any ideas on how I can get it to write to the eeprom in a simple manner?
Thanks,
Keith
Post Edited (KeithK) : 11/25/2006 4:29:34 AM GMT
Let me try to explain it a little better with a description of the application. An lcd with buttons is used to set a pressure value in psi. There is an analog pressure sensor that gives feedback as to what the actual pressure is. There is a valve that is adjusted with a servo that will open or close as needed to hit the pressure target. Once the pressure target is hit and maintained, the value that was sent to the servo is saved to set the baseline for the next time the application is started. It will then start over with adjusting as needed to maintain the desired pressure.
If I don't record the value that is sent to the servo, it will have to relearn where it needs to be every time.
Any ideas on how I can get it to write to the eeprom in a simple manner?
Thanks,
Keith
Post Edited (KeithK) : 11/25/2006 4:29:34 AM GMT
Comments
You do have a second EEPROM to write your data out to, right?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com