use arduino to help my daughter

radman:
The idea is that 25% of the time when the child walks on her toes she will do so for X seconds or more without generating any spurious transients.

My problem with this theory is that the foot will be being accelerated in three axis and some of these accelerations will be along the axis that the tilt switch is sensing. As I see it, whenever the foot is off the ground the tilt switch is effectively useless. It's just not sensing what we want to sense, which is which part of the shoe is touching the ground.

radman:
Okay, made a bit of progress.
Despite the veils between the realms thinning I was unable to obtain a child on which to experiment ]:smiley:

As a result I had to conduct a test on myself. There were some strange looks, but no comments, as I padded around barefoot with a buzzing multimeter in my hand and a mercury switch stuck to my heel with a big blob of blu tack.

The results were reasonably encouraging. Unfortunately it was not possible to walk on tip toe without generating transients as I had hoped, however it seemed as if I could obtain two distinct and simple signatures.

For normal walking the multimeter buzzed more or less continuously (i.e. tilt switch contact made) with brief gaps when my foot impacted on the ground.

For walking on toes the inverse appeared to happen. The multimeter was silent more or less continuously (i.e. tilt switch contact broken) with brief buzzes when my foot impacted on the ground.

The mercury switch I managed to get hold of is sensitive in 2D so the 'ball' type switch I have ordered (currently out of stock) may in fact be better.

This was a very quick test and I am not sure how clean the two signatures are but I think it should be possible to tell them apart in software. The results for a child will be different. A child's smaller feet and shorter legs will move with a different rhythm and their lesser weight will result in less jarring on foot impact.

The system will be quite sensitive to getting the angle of the switch correct I think. More experimentation required.

Thanks for providing an update with your testing Radman. I haven't gotten my shipment of tilt switches yet (won't be until Nov 28th) as a friend will be hand carrying them from the US. Good to see the results are encouraging. Please do post an update when your ball tilt switch arrives.

PeterH:
My problem with this theory is that the foot will be being accelerated in three axis and some of these accelerations will be along the axis that the tilt switch is sensing. As I see it, whenever the foot is off the ground the tilt switch is effectively useless. It's just not sensing what we want to sense, which is which part of the shoe is touching the ground.

A doubting Peter :slight_smile:
Try taking another look at this video;

use arduino to help my daughter - #35 by system - Project Guidance - Arduino Forum

To me it looks as if, when the child is walking on tip-toe, the sole of the foot is constantly making an angle of 60deg (or at least 45deg) to the floor. That is really quite an unusual way to keep your foot, which made me think a tilt switch might do the job.

When I was messing about with my multimeter I had the tilt switch arranged so that with the foot flat on the floor the switch was closed with the contacts pointing down towards the heel. Forward and upward accelerations would therefore tend to keep the switch closed.

I just saw this and thought of you (as they used to say in the UK adverts for the Post Office)

Thanks Grumpy Mike. I had seen that also during my research and it's one of the candidates to replace the tilt switch (in case it doesn't work). I haven't received my package yet, hopefully next week so I can begin this project.

Finally got my package today, time to begin this project this weekend. I will be posting updates as I go along.

Time for an update.

So just a brief recap for anyone who's interested to read what this project is for: (you can also refer to my 1st post on page 1 of this thread)

The goal is to remind my 7 year old daughter who is an Idiopathic Toe Walker to not walk on her tiptoes.

My daugher's walking sample vid - - YouTube

The idea is to remind her to walk normally by using a small vibrating motor mounted on the Arduino whenever the tilt sensor detects she is walking on tiptoes. Since this is the 1st proto, I am using the LED on the protoshield as a visual cue (for now) while I am still testing (as the LED is easily seen on the camera, a small vibrating motor will be difficult to see on camera if it turns on).

Hopefully when I've gotten the final values in the code and when everything is done, I can simplify the circuit and transfer all the components to a smaller PCB (coin-size) so it can be easily attached to her shoe - any help in how to do this will very much appreciated :slight_smile:

Arduino Uno sourced locally from Circuit-Help and a Protoshield and Tilt Sensor from Sparkfun.

Circuit-Help - Facebook)
Protoshield Kit- https://www.sparkfun.com/products/7914
Tilt Senor - Tilt Sensor - AT407 - SEN-10289 - SparkFun Electronics

continuation.....

So I assembled the Protoshield Kit this morning and wired up the tilt sensor using the instructions and debouncer code from Adafruit here - Using a Tilt Sensor | Tilt Sensor | Adafruit Learning System

I tweaked the debounce value in the code from 50 to 750 (milliseconds) and came up with this short video. Pardon the dark video, I had to dim the lights so the LED on the Protoshield can easily be seen. The faint LED is from the Uno, it has no use in this project.

The cam is a bit shaky as I was trying to film my foot/leg from a top angle.

EDIT: Was able to make a better video tonight, side view

For testing, I mounted the Uno/Protoshield on my foot using tape. The tilt sensor can be seen near the heel of my foot.

Hi.
I am new to the world of Arduino but not both of the sensors. Sorry for my English , not my native language.
Sounds like a good idea to use the tilt sensor, but if I may I would like to add another . Displaying mechanics problem and trying to prevent erroneous notices, I think the use of a sensor flex the foot support area could help . Something like this:

Here is an example of many that exist :
http://arduinobasics.blogspot.com.es/2011/05/arduino-uno-flex-sensor-and-leds.html
I think it would increase both programming and implementation in the shoe without too much difficulty but a combination of the 2 sensors to make sure the ankle is elevated while there is a bend in the front could be a good solution , especially to avoid false positive .
If there is no inclination ankle flex in the front , for example to sit with your feet backward or forward flexion of the ankle without inclination , for example to support your feet against a cabinet , chair, etc, would not be necessary to activate the vibrator .
Sounds like a great idea to help your daughter and I apologize if I've intruded in an already advanced thread being a newbie in arduino .

Greetings .

humeando - thanks for the link, I think I came across your blog when I was researching the bits to get for this project. Your english is fine as it is btw :slight_smile:

Ok, being a newbie at coding, I think I am going to need some help.

I am currently using the debouncer located code here - Using a Tilt Sensor | Tilt Sensor | Adafruit Learning System

I have seen this simple circuit and code ( How to Build a Vibration Motor Circuit ) that I can possibly combine with the debouncer code I am currently using to effectively turn on the motor, instead of an LED.

Can anyone kindly help me with the code if I am planning to replace the LED I have in my videos with the small vibrating motor?

Just came across these, and since I am relatively new to arduino I am not sure if these would work at all with arduino, but it seems that if it would work, it would be able to do what you need, measure the angle of your daughter's foot while walking.

It comes analog or digital and runs on 8 - 30 volts, so a 9 volt battery would power both the arduino and the sensor.

http://www.futureelectronics.com/en/sensors/angular-position.aspx

http://www.turck-usa.com/Products/Sensors/Inclinometer/

maybe someone here has worked with these and can tell us if they work with arduino, looks to me like they should, and they are affordable.