Close
0%
0%

Pain Machine

An apparatus to assist in the study and collection of data on the subject of pain.

Similar projects worth following
Everybody experiences it, but we still don't understand it completely.

On a scale of 1 to 10, how bad is your pain? That's pretty much the best that medical professionals have to help assess and make recommendations to treat your pain. Kinda crappy, huh? Is my 5 the same as yours? Not likely. Is my 10 today the same as it may be tomorrow? Who knows. Will I change my reporting if I think my doctor will give me more pain relievers, as a result? Will I cry uncle more quickly if I don't think pain relief will come quickly enough to keep me from crying like a little girl? Likely.

The cold pressor has long been used to study pain. It is, most simply, a bucket of cold water.

My project uses a modified cold pressor that is.....wait for it.... connected, so results can be shared more quickly and easily. It is more controlled. It is also a simulator for pain relief. Think of it as a sort of morphine pump simulator. It's basically the coolest thing in my workshop.

The system of solenoid valves, pumps, and etc. is what is at the heart of the apparatus.  The cold water and hot water circulate separately, until the software reverses the valves and causes hot water to flow into the cold water carafe.  That is what provides the simulated pain relief.  It actually feels quite nice....almost addictive.

Rough System Design - 

  • 1 × Arduino ATmega 2560 Controller
  • 4 × Gravity Solenoid Valve
  • 2 × Pump
  • 4 × Temperature Sensor Dallas 1wire
  • 1 × Ethernet shield

View all 8 components

  • Microprocessor & Code

    Scott08/20/2014 at 23:36 0 comments

    I am currently using the Arduino ATMEGA 2560 to control the device.  There is a momentary switch that initiates a hardware interrupt to reverse the solenoids and provide the simulated pain relief.  The water pumps run continually, but are also controlled via the MC.  There are several temperature sensors that allow for temperature regulation & etc.  I have a float switch to determine when to begin logging data from the device to the web.  I have not decided where to log data, yet.  My hope would be that a research school would host the data and allow other institutions to contribute.  For backup purposes and to allow for conducting tests in areas without reliable web access, I plan to log data to a microSD card.  The software I have thus far is very very simple.  I have uploaded code to BitBucket and plan to make it available, as soon as I do a better job with commenting the code and explaining some potential use-cases.

  • Hot & Cold Water Device

    Scott08/20/2014 at 22:51 0 comments

    One issue with the original design was that it required ice water and hot water from an external source to work.  I have designed a device that I hope will solve the logistical problems involved in replicating experiments that way by using multiple Peltier coolers to both heat and cool the water to acceptable temperatures.  I scavenged parts from two wine chillers to make the bulk of this device.  Current draw should be somewhere just below 12 amps at 12 volts, so I will need to be upgrading my power supply!

    My hope is that I can achieve an adequate difference in temperatures quickly enough to be able to conduct one test per half hour.  We will see!

  • Problems along the way.

    Scott08/13/2014 at 17:43 0 comments

    So, I have tried several combinations of solenoid valves and finally settled on 12v DC gravity type valves.  They require very low pressure to activate, as opposed to sprinkler and even other allegedly "low-pressure" valves.  The Iwaki impeller type pumps that I am using do not supply enough pressure in this system to activate anything but the gravity type solenoids.  Not a big deal, but I would have saved some money had I done a little bit of homework and read the specs on the other solenoids.  My bad.

    Initially the system used ice cubes and hot water from a tap to provide the hot and cold water needed for the test.  This works, but it is less easy to control temperature as a variable and it requires ice cubes and hot water access for repeated tests.  I am scavenging some wine chillers for their Peltier devices and aluminum carafes.  I hope to take advantage of these to more systematically control the hot and cold water.

    I drilled holes in threaded plugs for the temperature sensors.  I simply epoxy in the sensor and voila!  This seems to work just fine, but I have placed epoxy on the outside of the plug and it tends to be too thin in spots and flake off.  I believe it to be cosmetic only, but who doesn't want their pain-inducing medical device to be as pretty as possible?  I will be looking for a solution to this.

    I purchased pipe fittings from a variety of sources and have found some significant quality differences along the way.  Some, but not all, of the less expensive fittings require a much tighter fit to not leak.  Some leak, regardless of the hose clamp tightness.  This isn't a big deal, but I would be careful when sourcing parts, if I were planning to build many of these.

    As far as hose clamps go, the automotive style clamps really seem to work well compared to plastic type clamps.  They are around $1 each at the local auto parts store, but have seemed to be worth the expense.

    Hope this provides you with some visibility to some of the obstacles that I have encountered!

  • In the beginning.

    Scott08/13/2014 at 15:21 0 comments

    I began by constructing the water chambers from PVC pipe.  It is very easy to work with and relatively inexpensive.  I found that I needed to buy an automotive tap and die set, so I could add smaller fittings for the hose connections and sensors.  

    There are two chambers; one is for cold water where you place your hand and the other is for hot water.  The premise here is that you place your hand into the cold water far enough for the water level rise to trigger a float switch and begin data logging.  While there are several different options for data collection beyond that point, the initial plan is for you to press a button as you experience different levels of pain.  When you can't handle the pain anymore, a hardware interrupt associated with the switch will reverse the flow of water (using solenoid valves) and flood the cold water chamber with hot water.  It really feels quite pleasant!  This is intended to simulate the effect of a pleasure or euphoric kind of pain reliever. 

    You may vary the time between the subject's pressing the pain relief button and the system's actual deliver of relief to study how perceived or actual delays in pain relief might contribute to the subject's subsequent self medication.  There are many other ways to vary the program in order to advance our knowledge of pain using the pain machine.  Incidentally, I think we need a much cooler name than "Pain Machine".  Any ideas are welcome in the comments!

View all 4 project logs

Enjoy this project?

Share

Discussions

Scott wrote 10/12/2014 at 02:29 point
Sorry the reply took so long. I just noticed the comment.

I was inspired to build this, because a student pursuing a Masters in Psychology got me interested in it. Thanks for the advice, too!

  Are you sure? yes | no

DainBramage wrote 10/12/2014 at 02:53 point
No problem and you're welcome. :)

  Are you sure? yes | no

DainBramage wrote 10/01/2014 at 04:50 point
Very nice project!
What was your inspiration for building this? (if you don't mind me asking)

A couple of suggestions: An Astron brand linear power supply such as their RS-20 model would work quite well for this. They are robust, reliable, and have a very clean DC output (I use them for my ham radios). My other suggestion is that you look around for an epoxy specially formulated for plastics. That should solve the flaking problem, as it will bond properly to the PVC.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates