Sensor Controller
TravelingPcGuy
Posts: 2
I am a fairly new builder, I have done some servo controlling, but could use some direct help. I am looking to build an application that should "watch" each contact and identify the lowest contact closure of which the state has no change. The Cycle is reset and the counter is incremented each time ALL the closures are back to a closed state. In the diagram, the lowest contact·number unchanged is "4".
If the Slide AXIS returned to the Normally closed state on all contacts, the counter would return 4,1.
If this process continued a second time, the return would be 4,2 (ETC).
Any ideas about how this app might look?
Thanks,
TPG
If the Slide AXIS returned to the Normally closed state on all contacts, the counter would return 4,1.
If this process continued a second time, the return would be 4,2 (ETC).
Any ideas about how this app might look?
Thanks,
TPG
Comments
I wrote you an SX program (attached if I can figure out how to do that), and tested it for you too!
You might find that because of the speed of the SX, you will count numerous "events" due to switch bounce if the sliders are mechanical devices.
If that's the case, I'll add a de-bouncer for you, but you will need to tell me what is the fastest that the switch states can change so I can get the timing right.
Also, you might want to have a way to reset the event counter?
Have fun,
Peter (pjv)
You were asking for help, and I thought I would respond to help a new beginner out. So I spent some precious time and wrote a program for you to do what I think you were trying to accomplish.
It's now been over 2 weeks since your post, and because of the lack of ANY response, even a "thanks", my current interpretation is that you are not serious or totally unappreciative of the effort others go through on these forums in providing assistance. Unless there are extenuating circumstances, I believe that you are exhibiting·inconsiderate behaviour, and I for one, will place your name in the "don't bother" category.
Have a nice day!
Peter (pjv)
Post Edited (pjv) : 7/15/2005 7:27:55 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You guys are the best! I am super sorry that your help was not implimented earlier! At the very least I sure do owe you a bottle of Jack or something!! I could have not asked for something so great!! I would like you to call me and lets chat about this. Had I known you were going to actually work, I would love to pay you!
I built the application you provided and it is very cool, and super simple however it didn't fit like I thought. I will share more about the idea.
Synopsis: When you go to the casino and you sit and back slip your smart card into the slot... The casino can give you all kinds of stastics about your activity... (I.e. How fast you were playing, how much you were wining and loosing, etc.)
However when I go to the Gym or at home, I have to sit with a clipboard and "count my activity" when I am working out on the machine. Well, I want to automate this count and level of activity. My "paper count" is objective at best. As I tire my overall preformance begins to slow.
My original idea was to "Count" the activity, however everyone on the machine has a different draw length as well as this method does not allow me see the extent of the activity.
So, I had to extend the plan. Now I am way out of my league!! Now before I ask for help, I would love to hear from you about this. You may all have additional ideas.
Complete solution:
Rather than tap the weights of the machine...
I believe that a better approach is as follows:
Connect a 15 Turn Pot. to the main pulley at the top of the machine. The application would measure the resistance to detirmine the direction of the motion, length of the pull and "rest position". The user could sit and pass their RFID or Smart Card with unique ID into the unit allowing for multiple users. This data would be sent via ethernet, wired serial, or wireless serial to a computer. If there were multiple excersise machines each could have a unique ID. As the data is collected or at a later time the data could then be displayed. You should be able to view the activity as a graphical format, or mixed with future applications could be used to figure weigh loss, ideal workouts, energy burned, and other data.
Thanks again for everyone's input and assistance. I especially want to thank PJV for some wild fast work!! I posted this request and less than 4 hours PJV had completed and tested a working application!! WOW,WOW, WOW!!! I am very envious of your talent! Thanks again for all of you help!!
Thanks,
Adam -Travelingpcguy
314-537-0824- (Cell)