Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2024, 03:09:39 03:09


Login with username, password and session length


Pages: [1] 2  All
Print
Author Topic: generating a weird signal ...  (Read 6686 times)
0 Members and 2 Guests are viewing this topic.
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« on: February 02, 2013, 08:41:27 08:41 »

Hi,  may i ask you something?

How can you generate a 3 states ( +Vo, gnd -V) signal (kinda RZ signal)  (of course the 200Hz pwm'ed signal is not a problem wth a tiny 3V pic10 ...)  with the following restrictions... only a 3V batt allowed and output must feed 0.5mA max ...

I was thinking about current sources and a 3state switch  array (to draw current from +V to the output load, then  the 'hiz' state with the load connected by itself to ground and then the -V state with the current flowing towards -V ... (i mean 3    0  -3V)

But i have some doubts about that solution and in the choice of the correct 3V regulator

(i'll upload the schematic of my idiotic idea as soon as i can )


best regards

Tuco!
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
Ichan
Hero Member
*****
Offline Offline

Posts: 833

Thank You
-Given: 312
-Receive: 392



WWW
« Reply #1 on: February 02, 2013, 08:35:37 20:35 »

Not a very clear explanation.

You can generate negative supply (-3V) from positive supply (+3V) using ICL7660 or similar ic, then use an op-amp (supplied by +3V/-3V) configured as a comparator with +1.5V reference voltage - so the output is about -3V for input below +1.5V and about +3V for input above +1.5V.

-ichan
Logged

There is Gray, not only Black or White.
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #2 on: February 02, 2013, 10:16:11 22:16 »

Maybe a charge pump is what you need (like Ichan's ICL7660).  It is a very simple way to create boosted or negative voltages.  You can probably control the charge pump with your small PIC
Logged
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 904



« Reply #3 on: February 03, 2013, 01:54:27 01:54 »

An H-bridge driver will probably work. 3V and GND is all you need if I am correctly GUESSING what you are trying to do.


---------------------------------
A                  B                        I
I                   I                     ----- 3V
---LOAD-------                       --
I                   I                        I
C                  D                       I
---------------------------------

AD +3V
BC -3V
CD  GND/LOADSHORT
« Last Edit: February 03, 2013, 02:02:45 02:02 by solutions » Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #4 on: February 03, 2013, 09:03:10 09:03 »

yop !! yes you were so right i forgot that ^^...

:p now i'll write the pic10 testbench code ^^

btw, what could have if i connect this electrical outs  to a frog's leg ^^ !!! :p  (Evil Tuco moment ) (anyway , how much ohms does it have a load like that ??)
« Last Edit: February 03, 2013, 09:09:05 09:09 by TucoRamirez » Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 904



« Reply #5 on: February 03, 2013, 11:14:08 11:14 »

yop !! yes you were so right i forgot that ^^...

:p now i'll write the pic10 testbench code ^^

btw, what could have if i connect this electrical outs  to a frog's leg ^^ !!! :p

I don't know. A Frenchman with electrical burns?
 Tongue

You can have an extremely low source impedance with it...all depends on your switches. Just watch out for "shoot-through" (AC or BD on, even momentarily)

p.s. don't abuse live animals
« Last Edit: February 03, 2013, 11:28:30 11:28 by solutions » Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #6 on: February 03, 2013, 12:08:09 12:08 »

so the "shoot through" is what i see as the spikes on the output?? (sorry but i 'm a krappy english and french speak/writing ape )

hehe yes i want to cause pain to french people ^^^i m jokin'

anyway the load is not inductive so i think i can modify it yo insert a "flipping"  current source to limit the I_max
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 904



« Reply #7 on: February 03, 2013, 06:33:09 18:33 »

I don't know why you want "current flipping" when current is only in one direction if you pick the right place in the circuit

One depletion mode device, with appropriate Idss, might do what you want without "flipping" anything. Or you can put a current source in its place, etc


---------------------------------
A                  B                        I
I                   I                     ----- 3V
---LOAD-------                       --
I                   I                        I
C                  D                       I
---------------                        I
         I                                   I
         I                                   I
      - -                                   I
     I                                       I
     I                                       I
  --I     D-mode FET                  I
  I  I                                       I
  I  I                                       I
  I   --                                    I
  I     I                                    I
  I     I                                    I
  -------------------------------
  
« Last Edit: February 03, 2013, 06:36:06 18:36 by solutions » Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #8 on: February 03, 2013, 10:33:45 22:33 »

In fact i want to have the +3V 0  -3V signal driven by a pwm and tricky logic as in your h bridge, but the current drawn to the charge is kinda weird to my understand , in fact is a ... ok lets face it is not muscle but living tissue ...  and as long as the load is a freaking dynamic moving changing load, i want to guarantee enough current from the givem impulsions to cause enough pain to the rat (i wanted to say the undergraduated students ^^)

and no its not an orgasm usb powered smart gadget  ^^
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
dotm
Active Member
***
Offline Offline

Posts: 180

Thank You
-Given: 81
-Receive: 75


$$$


« Reply #9 on: February 04, 2013, 12:00:13 00:00 »

well you did not say how long you you want that 0.5mA max to be held (in seconds)
what percentage can the desired +/- 3V change when loaded with the maximum current?
can the reference ground be virtual?
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #10 on: February 04, 2013, 03:45:19 03:45 »

oki,  the current peak must be held for tenths to hundred of milliseconds...  the current can range from  100uA to 500uA  and no matter about ground reference to the output.
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
dotm
Active Member
***
Offline Offline

Posts: 180

Thank You
-Given: 81
-Receive: 75


$$$


« Reply #11 on: February 04, 2013, 04:58:52 04:58 »

I must admit that H-bridge solution seems to be brilliantly elegant, very smart. As i understand it, the current given (+/-) and feed trough (gnd), is only limited by the Fet used, resulting to a small output impedance. I'd propably use some sort of a software-pwm to ensure that the rising edge of the susequent switch state wont fall together with the falling edge of the precedent state.
« Last Edit: February 04, 2013, 05:01:24 05:01 by dotm » Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #12 on: February 04, 2013, 05:08:51 05:08 »

what about this modification?
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #13 on: February 04, 2013, 11:09:18 11:09 »

Are you really stimulating live tissue?  We used to do this a lot in our lab.  We did transcutaneous (through the skin) which required much higher voltage).  We also did intramuscular (stimulating using needles in the muscle tissue).

Normally for stimulating tissue a current source is used.  What exactly are you trying to do?
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #14 on: February 04, 2013, 11:26:05 11:26 »

send negative and possitive current/voltage peaks to brain tissue .
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #15 on: February 04, 2013, 06:32:39 18:32 »

send negative and possitive current/voltage peaks to brain tissue .

Yeah you should ONLY do that with a current source.  The results will be inconsistent otherwise.  Even after a short amount of stimulation the impedance of the tissue will change as the potassium and calcium channels (and some other channels) open/close with longer term adaptation to the stimulus.  Longer term stimulation will be inconsistent too as the electrodes are attacked and partially encapsulated by the immune system.

Is this for real research or just for fun?  What region of the brain are you stimulating?  Are you stimulating deep brain tissue or cortical layers?

I find this stuff very interesting Smiley
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #16 on: February 04, 2013, 07:51:00 19:51 »

I'm trying to win a place in a new res. Group where i'm studying.  Back to the game...  the h bridge seems to me to be ok but mos switched paths make me lose current...

Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #17 on: February 04, 2013, 08:25:10 20:25 »

I'm trying to win a place in a new res. Group where i'm studying.  Back to the game...  the h bridge seems to me to be ok but mos switched paths make me lose current...



are you putting in dead time with your PWM signal?
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #18 on: February 04, 2013, 08:27:36 20:27 »

i'll start to do that next week, in the meantime i still have doubts about how to ensure enough ( but low anyway )  current while switching on the load ...
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 904



« Reply #19 on: February 05, 2013, 03:17:13 03:17 »

I think PWM will be quite useless, unless you are into eating cooked brains (some cuisines do).

I think you need to FM current-impulses.

Those same circuits will work for this.

Like all great scientists have done, refine the method on yourself before exposing another living (or dead) being to your creations

Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #20 on: February 05, 2013, 08:54:01 08:54 »

fm current impulses ?  ?  what are you sayin' ?   you mean sending the pwm-like signal but in FM mode for a given pulse duration??? or attack directly the current source???
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 904



« Reply #21 on: February 06, 2013, 02:30:27 02:30 »

Impulses. Change the off-state spacing only. PWM, but fixed on-state time.
Logged
Gallymimu
Hero Member
*****
Offline Offline

Posts: 704

Thank You
-Given: 152
-Receive: 214


« Reply #22 on: February 06, 2013, 05:01:30 05:01 »

speaking of your signals, what frequency, pulse width, burst size, and waveform shape are you planning on using?  The effectiveness of neural stimulation is pretty dependent on these parameters.  There are TONS of publications on this stuff and how to do it effectively.  Most of the good papers require journal access but here is one that has some useful info.
http://students.washington.edu/zanos/literature/Motor%20cortex/Cortical%20electrical%20stimulation/Cogan%202008%20-%20Stimulation%20and%20recording%20electrodes%20%5BR%5D.pdf

We did some good work stimulating the pleasure centers of rodent brains to the extent that you could get a starving rat to prefer pressing the lever to deliver pleasure stimulation over eating food.  Interestingly (and luckily) the same region in the human brain doesn't elicit the same extreme response.
http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3008353/
Logged
TucoRamirez
Senior Member
****
Offline Offline

Posts: 307

Thank You
-Given: 257
-Receive: 115


Tuco ... dead or Alive


« Reply #23 on: February 06, 2013, 06:59:27 06:59 »

pleasure centers  Shocked ... oh yeah !!!  Tongue

as i know, i need to supply less than +/-300uA max for a  moving " enemy"   ^^ load of 1k max... frequency to be tested but somewhere between 100Hz and 800Hz..

so burst size  (or pulse width) for each peak to be calibrated too  between 5% and 30% of f ^^

I think i'll see a frog or a mice attached to the jtag port ^^ i already havea an usb memory ^^  hehehe  ... ( i think i'll not test-on-myself like the ecg !!! )

Posted on: February 06, 2013, 07:57:36 07:57 - Automerged

btw first link is veeeeeeeeeeery interesting
Logged

Whoever double crosses me and leaves me alive... he understands nothing about Tuco.
solutions
Hero Member
*****
Offline Offline

Posts: 1826

Thank You
-Given: 656
-Receive: 904



« Reply #24 on: February 06, 2013, 08:08:39 08:08 »

Mouse



Mouse



Only one needs a wire up its ass to be happy. I'll let you figure out which one.
Logged
Pages: [1] 2  All
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC