Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 21
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/04 Matthew T. (35)
05/04 Amrit Deshmukh (60)
05/05 Alexandre (32)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Projects
« Previous topic | Next topic »   

muscle stimulator

Move Thread LAN_403
JimmyH
Wed Oct 04 2006, 05:30AM Print
JimmyH Registered Member #358 Joined: Sat Apr 01 2006, 06:13AM
Location: UCSB
Posts: 28
Hey all,

I think this project is close enough to completion to post about it on here, so here goes...

My senior year of high school I hurt my back doing squats, and then wrestling on it until it got worse (upper back- ligament stuff). Long story short, I ended up using the electrotherapy deal on in the trainers place, and I thought that thing was awesome. It was supposed to help it heal and stuff. I don't know for sure how much it really helped my back heal, but it felt really cool, especially with the heatpad. It felt almost like getting a massage or something.

Anyway, I decided to make one. The design process started over a year ago. I originally planned to do it all analog. I kept adding features until it made sense to just do it digital. I layed it out, and was about to order parts when my hard drive crashed and put me at square 1. I decided to take the opportunity to rethink the design (linear or switching power side, digital/analog smarts) and ended up going more than full circle and ending up where I was last time I layed it out.

What I settled on was a MSP430F149 controlled set up with 7 individual half bridges operating as Class-D amplifiers, and a buck-boost converter as a power supply. The MSP430 basically checks the ADC and adjusts the duty cycle on the boost to keep the voltage where it was set, and runs through a look up table so that the pulse width fed to the half bridges averages out to a nice sine wave. The crystal runs at 8MHz, so I only have 47 clock cycles before I need to update the pulse width to the next value (loop cycles at 170khz). With all the calculations and checking the ADC, I had to unroll the loop a bit to get it to run fast enough.

Since I settled on using a uC, I figured I'd have it do all the waveforms commonly used, since the smarts are flexible.

It can recreate the following waveforms:

TENS
Biphasic waveform
50-300uS On time
0-100v peak
1-200hz PRF

EMS
Biphasic waveform
300-500uS On time
0-100v peak
1-200hz PRF

Russian
2 kilohertz true sine wave
10-90% duty cycle
1-200hz PRF
0-50VRMS

Premodulated
4 kilohertz true sine wave
1-400hz beat frequency
0-50VRMS

Interferential
4 kilohertz true sine wave
1-400hz beat frequency
0-50VRMS

Hi Volt
5uS on time
twin peaks, spaced 100uS
1-200Hz PRF
0-500V peak

EMS and TENS are basically identical, with EMS using longer pulses for muscle contractions and TENS using shorter pulses to do close "pain gates" and release endorphins and whatever else they think that does

Premod and Interferential are pretty much the same, except how you get it. My "Premod" is kinda cheating, since I modulate it after, but since the stim unit is floating, it's the same thing. The only real difference is 1 channel vs 2 channels. Premod/interferential was the one that I had used on me.

The half bridges are Nch/Pch bridges, using capacitors to isolate the gates, and resistors to bias the gates at 0v. Like gate drive transformers, this means the gate voltage of the fets are both 0 at the same time, and they've completely turned off before the next one turns on, eliminating shoot through.

The current status is "near done". I had all the modes except Hi Volt working until the ceramics on the 100V rail died (were rated for <<100V) and killed a pin on the MSP430. Hi Volt was having either saturation or shoot through problems when driving a pulse transformer. Other than that, it's just minor code changes like the starting voltage and the min/max PRF; that kind of stuff.

Dave Marshall has been waiting patiently to be hooked up with one since like March, so sorry man, I'll get it done, I promise.

I entered it in TI's MSP430 ez-design contest (Link2 along with the original DRSSTC and a SLR based high voltage capacitor charger (a SBIR project) so you guys can check that out if you want.

I'm not sure exactly what the deal is on attachments, so check out the rest of the pictures/code/layout at Link2




1159939539 358 FT0 Stimblockdiagramnew

1159939539 358 FT0 Img 5189
Back to top
Part Scavenger
Wed Oct 04 2006, 11:31AM
Part Scavenger Registered Member #79 Joined: Thu Feb 09 2006, 11:35AM
Location: Arkansas
Posts: 673
That's pretty awesome! I wish I could come up with junk like that.
Back to top
Michael W.
Wed Oct 04 2006, 02:09PM
Michael W. Registered Member #50 Joined: Thu Feb 09 2006, 04:07AM
Location: Vernon, B.C, Canada
Posts: 324
I have a TENS that I got at a garage sale to mess around with and it was unworking and I still can't repair it....
Back to top
Dave Marshall
Mon Oct 09 2006, 05:08AM
Dave Marshall Registered Member #16 Joined: Thu Feb 02 2006, 02:22PM
Location: New Wilmington, PA
Posts: 554
I injured my back (pinched sciatic nerve) last fall. I dont think the TENS unit I used at the chiropractor's office expedited my recovery any, but it sure did a nice job of providing temporary pain relief.

It looks great Jimmy. I'm looking forward to trying it out when you iron out the kinks.

Dave
Back to top
Steve Conner
Tue Oct 10 2006, 02:47PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
I like how Jimmy used himself as the "development platform" suprised Does it have a kill switch if the uC crashes?
Back to top
JimmyH
Tue Oct 10 2006, 10:20PM
JimmyH Registered Member #358 Joined: Sat Apr 01 2006, 06:13AM
Location: UCSB
Posts: 28
I like how Jimmy used himself as the "development platform" Does it have a kill switch if the uC crashes?


Hehe, my girlfriend was kinda scared when it made my back twitch and stuff wink

No kill switch, but the uC controls the boost, so if it crashes, it wont be able to supply power anyway.
Back to top

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.