Squat counter help

Okay, essentially for my senior design project, at the University i attend, my group is designing a Squat rep counter. Squats as in working out. :smiley:

I have the whole HMI view set up the way we want, im just not sure how to change the numerical value of some of the gauges.

We will have a sensor connected to an arduino board and then to a tablet with VB on it.
The sensor will signal a count up or down based on the button picked. I also need to pass the variable from a number entered by the user to the numerical gauge for the sensor to count down from if the user so decides.

anyone have any advice or examples on how to do this?
Thanks for the help guys!
here is a link to drop box with the project in it. you can build it if you would like

Hi,
Sorry your dropbox was hopeless.
Please attach or include images in the post, using the menu at the top of the forum editor.

So you want the arduino to sense the squats and to act as an input device so the operator can put in a count down figure?

Tom...... :slight_smile:

ryclegman:
The sensor will signal a count up or down based on the button picked. I also need to pass the variable from a number entered by the user to the numerical gauge for the sensor to count down from if the user so decides.

am I to understand that the arduino is not needed, that the sensor does the counting ?
what I would have expected is that the sensor signal a change.
the arduino receives the sensor output and, depending on the state of a switch, will either count up, or count down.
the user can set the display to count the number of squats, or by changing a switch that is connected to the Arduino, and also by inputting a value on a key pad, a dial, a button, a remote tablet or any such device, can input a value to start and then count down from that value ?
the easiest way is for the arduino to control the display and have some sort of input device.a keypad or a dial/encoder or some such.
if you are asking how to use an external device, a phone or tablet, the interface with the arduino to pass values back and forth, the question I would have is why not let the arduino just send out a pulse. the remote device can re-set to zero and count up or down on it's display ?

alright i zipped it up and uploaded it. should actually work now.

https://drive.google.com/file/d/0B4lCeXDMm8JuTDBXWDF0dlRvU2s/view?usp=sharing

link to what it looks like:

http://postimg.org/image/44f8tbdc5/

Well the sensor works with the arduino board and then the board connects to the computer and then should interface with the advance HMI screen. This was advice given to us on how to do it but unclear how to make it work.

Hi,

Use REPLY rather than QUICK REPLY and it has an attachment facility, so you can post your sketch and other files as an attachment, also try insert link.

[http://forum.arduino.cc/index.php/topic,148850.0.html](http://" http://forum.arduino.cc/index.php/topic,148850.0.html")

Tom..... :slight_smile:

TomGeorge:
Hi,

Use REPLY rather than QUICK REPLY and it has an attachment facility, so you can post your sketch and other files as an attachment, also try insert link.

[http://forum.arduino.cc/index.php/topic,148850.0.html](http://"http://" http://forum.arduino.cc/index.php/topic,148850.0.html"")

Tom..... :slight_smile:

using quick reply, you have to hit review. that also brings up the menu.

TomGeorge:
Use REPLY rather than QUICK REPLY and it has an attachment facility, so you can post your sketch and other files as an attachment,

Oh, please don't!

TomGeorge:
also try insert link.

Please do.

Insert code in "code" tags (</> button), links to image URLs using the image (little screen) button.

Okay this is what it looks like. advanced HMI download is bigger than the allowed size so it will have to be grabbed from my google drive!

Hmm. Bodgie link!

You mean this?

Nailed it! thank you! now you guys can see what im talking about!

I understand the logic and can write the code, i just need help figuring out how to actually interact with the two pieces. Any help or suggestions at how it would be better done?

bump

Thump!