Sunday, July 05, 2020

Cerebral Palsy Guidance (CPG)

Recently, I heard from an outreach coordinator for Cerebral Palsy Guidance (CPG), who asked me to share this information. It looks good to me - Please pass this along to others who might be interested. Thanks

"At CPG, our information goes well beyond that of most other resources. We aim to cover cerebral palsy from all angles–from symptoms, causes, and treatment, to daily living information. And very importantly, all of our articles are reviewed and edited by pediatric doctors and nurses (as well as HONcode certified as trustworthy health information)."
If you have questions, please contact CPG directly. -


Wednesday, April 17, 2019

Cumulative Stress Monitor

Here's how I think a "Cumulative Stress Monitor" could be made from existing Adafruit Classic Circuit Playground (CP) “Meditation Trainer” Sketch (Arduino related)....

I'm working on my own model and will keep the world updated as I progress, via this blog post.  Otherwise, you can always contact me at

Here is the Meditation Trainer Sketch that is to be modified.  Please note that it will verify/compile only on Arduino IDE 1.8.5 or below.  The sketch will not compile on more recent IDE’s.  I have a “fix” for this, if you need it. 

Please look at the code above before reading further.

Here is general information on the Meditation Trainer to help you better understand the concept.  Here is general information on the Classic Circuit Playground (CP)

Meditation Trainer Sketch Changes or Additions:  (make new variables as needed)

1.    Change relaxation blue color to yellow color (moderate relaxation).  This relates to “else (tCoh >= 3)” in sketch. See Using the LED Display to understand concept.  Might this help you code yellow?

2.    Change so that Breathing Pacer pixels only work when tCoh >= 3 and do not work when tCoh < 3.  See Breathing to understand concept. 

3.    Measure the ongoing time durations of each of these variables – in each ongoing 30 minutes:

a.     tCoh >= 6, (Hi Stress Level)

b.    tCoh >= 3 and <6, (Medium Stress Level)

c.    tCoh < 3. (Low Stress Level)

4.    Add code – (If (tCoh >= 6 time duration) minus 1/2 (tCoh < 3 time duration)) > 15 minutes, then turn on the onboard CP Buzzer.  Or, (If (tCoh >= 3 and <6 time duration) minus (tCoh < 3 time duration)) > 15 minutes, then turn on the onboard CP Buzzer. 

The concept above is to make a Cumulative Stress Alert.  Examples of concept above….(Make code do the task below, please)

·         30 minutes Hi Stress – ½ X 30 minutes Low Stress = 15 minutes (Buzzer off)

·         30 minutes Hi Stress – ½ X 20 minutes Low Stress = 20 minutes (Buzzer on)

·         30 minutes Medium Stress – 1X 15 minutes Low Stress = 15 minutes (Buzzer off)

·         30 minutes Medium Stress – 1X 10 minutes Low Stress = 20 minutes (Buzzer on)

When conditions are met above, please make the buzzer beep on and off (1 second intervals) at 1000 hz. for a duration of 5 seconds, every 30 minutes, until the “if/then coding” above turns off the buzzer (tCoh conditions above are not met). 

5.    Add code for a tCoh potentiometer, to test the operation of the concepts.  Please use D9 / A9 - This pin can be digital I/O, or Analog Input.  Might this Analog Input Information help you code?  With this Potentiometer, I’d like to change from tCoh = 1 to tCoh=7 from min to max of potentiometer.  I’d also like to view all the time the tCoh on the Arduino IDE Serial Monitor, whether in the test mode (potentiometer) or in actual use.  I’ll use a Panel Mount 10K Potentiometer.

6.    Add code for Bluetooth so that any Bluetooth device can at least read the following:

a.    Analog signal from Circuit Playground pin #6 – (int pulsePin = 7;  // Pulse Sensor purple wire connected to analog pin 7) (D6 / A7 - This pin can be digital I/O, or Analog Input.) – This analog signal is a waveform of the sensed heartbeat.  This could also be a Square Wave, too, depending on Pulse Sensor D/A switch position. 

b.    tCoh – (coherence values total)

Please add Comments in the code how to add future variables, I/O pins, etc. for future “reading” by other Bluetooth Devices.  

I’m using a Flora Bluefruit LE with my CP.  I’m planning on using another Flora Bluefruit LE with another CP.  The two CP’s would “Bluetooth talk” to one another.  In addition, the BLE should be able to wirelessly link to other Bluetooth devices such as Medical Equipment, Computers, Phones, etc.

Might this information help you code?  Circuit Playground & Bluetooth Low Energy and iOS Setup | Bluefruit LE Connect for iOS |

7.    If possible - When conditions are met to activate Buzzer above (#4), add code to send text message to a smartphone.  The text should read “Stress/Pain Alert – Patient 34-2”.  Repeat sending message every 30 minutes until conditions are not met to activate Buzzer.  If not easily possible – please make a digital pin go high when conditions (#4) are met above.  (I’ll interface this digital pin to an existing Nurse Call System) 

General Notes –

·         Please let me know if you have questions – either now or when coding.  Also, feel free to suggest better ways of doing the above.  I’d like to use the parts I mentioned above and the original “Meditation Trainer” Sketch as a start though.

·         Please add comments as you code. 

·         Please try not to block sketch execution with unnecessary delays.

The big picture in doing all this above is to make a Stress/Distress/Pain Monitor for both Patients and Healthcare Workers.  The above is an improved version of my previous Model.  The improved model above uses heart rate variability, instead of skin conductance as used in the previous model, and has additional features not in the previous model.


Tom Garz

Disclaimer - Article is for information only and is not medical advice.

Monday, December 31, 2018

Pain Locator - a "Sorely" Needed Diagnostic Tool

"Where does it hurt?", the doctor asks.

From the patient's answers and manually pressing (Palpation OR Percussion), the doctor makes an "educated guess" as to where the pain is coming from.  This is especially true for those with chronic pain.

Yes, there are Interactive Pain Locators, similar to Symptom Checkers, but not much if anything on sci/tech tools to locate pain.

Also, some Chiropractors have a hand-held device that measures skin conductance and/or temperature around the spine, in hopes of "showing" where the pain is coming from.

How about a Non-Invasive "Pain Locator" Device, perhaps an Electronic and/or Computer device?

  • I'm thinking of a hand-held device to send focused vibrations into the body where the patient generally thinks the pain is located.  
  • I also plan to include biofeedback to "see" when the pain location is triggered.  I think biofeedback would be more precise than patient feedback.  
  • In essence, have a device to do Palpation and/or Percussion - plus - biofeedback to record the intensity of the triggering of the sympathetic nervous system when the pain center is triggered - plus - recording the position of the handheld device, and the angle thereof.
  • Many more features, yet to be discovered.  From what I see so far in my research, we could include sound, heat, vibration, low dose electrical stimulation, etc. to make a multi-dimensional tool to pinpoint the pain location(s).
  • Beyond this, perhaps the tool or technique could identify how much of the "perceived pain" is actually physical and how much is psychological/emotional (stress related pain symptoms).

With this futuristic tool the doctor, and/or maybe even the patient, can figure out where the pain is coming from and treat it accordingly.  All we need to do is make it.  😀

Maybe I'll make a Working Model of this and/or write a book.  I see this tool as "sorely" (pun) needed, instead of the "trial and error" methods currently used to diagnose pain and, even worse, exploratory surgery.

What do you think?  Got any suggestions?  Anyone else working on this?

Below is the research I've found so far.....what do you think?  Anyone got anything else, so I don't "reinvent the wheel"?  We can build on the work of others, now.


SPOC Pain Locator Receives FDA Approval 

Chiropractic gimmickry – Science-Based Medicine

Portable Hands-Free Device to Locate and Release Active Trigger ...

Do you use ultrasonography to localize myofascial trigger points?

Objective Sonographic Measures for Characterizing Myofascial ...

Novel Applications of Ultrasound Technology to Visualize and ...

Diagnostic Aids

Localizing and Assessing Amputee Pain with Intense Focused ... - DTIC

Objective Method for Pain Detection/Diagnosis - DTIC

8 Tests Doctors Use to Diagnose Pain: Myelogram, CT Scan, MRI, and ...

Labs and Diagnostic Tests for Chronic Pain

New Muscle Pain Detection Device to Diagnose Muscles as a Source ...

Apparatus for diagnosing muscular pain and method of using same

Method for direct diagnosis and treatment of pain of muscular origin

Acoustic palpation using non-invasive ultrasound techniques to identify and …

Method for analysis of pain images

Acoustic palpation using non-invasive ultrasound techniques to identify and …

System for instant diagnosis and treatment of soft tissue disorders

Palpation evaluation or diagnosis device, system and method

Seek gloves pattern B ultrasonic appearance of painful trigger point department …

Method and apparatus for diagnosing and assessing central pain

Medical algesia, thigmesthesia quantitative detector

Novel multi -functional stethoscope

Apparatus and method for recording progress notes

An apparatus for determining the trigger points sensitivity and pain threshold …

Method and apparatus for detecting, recording and analyzing spontaneously …

Multi-Finger Palpation Haptic Device - Arduino Forum

A Single-Use Haptic Palpation Probe for Locating ... - GitHub Pages

A Review of Simulators with Haptic Devices for Medical Training

Robotic Palpation Data Sharing

Autonomous Palpation for Tumor Localization ... - EECS Berkeley

Design of a Wearable Fingertip Haptic Device for Remote Palpation

Pain Detection Through Arduino EEG Signalling.mp4 - YouTube

Pain Detector Gives Actual Pain Score | GomerBlog

Validity and reliability of a pain location tool for pediatric abdominal ...

Where it hurts: a systematic review of pain-location tools for children.

Reliability and refinement of a pain location tool for ... - Future Medicine

US20170113063A1 - Phototherapy device with pain location input ...

Pain assessment using the adolescent pediatric pain tool: a systematic ...

Migraine Pain Location and Measures of Healthcare Use and Distress ...

Pain assessment now fits in doctors' Palm

Who is Using PainTracker? - UW Departments Web Server

Pain location and intensity communication apparatus and method

Method for analysis of pain images

Pain migration tracking and display method

System and method for mapping pain depth

Electrical transcutaneous pain suppression and pain location device

Phototherapy device with pain location input.

Pain surveying and visualization in a human bodily region

Systems and methods for pain tracking

Apparatus for expression location of pain

TMD diagnosis support system and apparatus including pain detector

Species pain location determining means

20160019371 System and method for musculoskeletal pain and injury evaluation and treatment


5984368 Patient condition and pain location and intensity communication apparatus and method



Disclaimer - Article is for information only is not medical advice.