I found in your video what I was searching for during months!
@BlueMoonshine2 ай бұрын
You're welcome, please share the tutorial if you can.
@klausziegler602 ай бұрын
Professor, thank you for such a complete, rigorous and informative video. This is a joy, unique in the web
@Yorumcu6315 күн бұрын
Dear Proffesor I was find your channel last night and this morning re-watching again Firstly: You are great teacher and you are describe all details for understand any complex technical questions. I was see first time this kind great tutorilas and describes. I am searching last 10 years electronic circuits but just find your channel ,I think all reason google's search algoritmys Dear proffesor please continue electronic tutorials you knowlodge and learning level amazing, your students very lucky I want make a masseter meter * I need amplify this muscle's signal. I need more cheap Myoware muscle sensor's electronic circuit for connection to MCU (for example PIC/ATMEL maybe Arduino ) can I use ths circuit for this project (also schema iupdated) I wish to you health and great days I am waiting your other great videos too Regards (*The masseter meter is a device used in dentistry, especially for measuring the strength of the jaw muscles, and plays an important role in treatment processes such as bruxism, occlusion issues, and jaw surgery. This device helps evaluate the function of the jaw muscles and monitor their response to treatment. )
@BlueMoonshine15 күн бұрын
Hello, I don't think I will be able to help you. I don't know what MCU is, neither do I know about ATMEL, and I never used Arduino.
@Max_Bio7 ай бұрын
how to combinate EMG with motor drive on a single board?
@amattenetАй бұрын
thank you very much for this complete explanation
@BlueMoonshineАй бұрын
You're welcome, please check my other tutorials.
@AlokSingh-cq4tz7 ай бұрын
THIS WAS AN AWESOME TUTORIAL , I AM USING THIS IN MY PROJECT WORK BUT HAVE AN TROUBLE IN CONNECTION OF THE BATTERY WHERE I HAVE TO CONNECT IT CAN YOU PLEASE UPLOAD THE IMAGE WHERE TO CONNECT THE BATTERY TERMINAL
@AlokSingh-cq4tz7 ай бұрын
HAVE AN TROUBLE IN CONNECTION OF THE BATTERY WHERE I HAVE TO CONNECT IT CAN YOU PLEASE UPLOAD THE IMAGE WHERE TO CONNECT THE BATTERY TERMINAL, AND WHAT IS THE ( SW ) IN THE SKILLSCREEN
@BlueMoonshine7 ай бұрын
This is what I explain at 18'30''. You make a symmetrical power supply by using the LM386. Connect the the two inputs of the op-amp together, and the battery is directly connected to it (positive on pin #6 and negative on pin #4). Then output of the op-amp (pin #5) will serve as the GND for all other op-amps. The + and - of the battery are also connected to all other op-amps of the circuit (V+ and V-, respectively).
@YuvrajSingh-l9p7 ай бұрын
Can you tell whats the whats is battery 🔋 (volt) we have to use
@BlueMoonshine7 ай бұрын
Well, I spent a lot of time on making this tutorial, so your only job is to watch it in order to find out! (Hint: the answer starts at 17:46).
@mahefred549 Жыл бұрын
This is an awesome tutorial. I am trying to wire this up myself and want to know what the approximate voltage should be after each step in your block diagram (for troubleshooting purposes). Could you help me with this?
@BlueMoonshine Жыл бұрын
It is very hard to give a value for the approximate voltage after each stage, because it depends strongly on how much you are contacting the muscle. And even if you knew this approximate voltage, it wouldn't help much in troubleshooting if you don't have an oscilloscope. The signal is a superposition of AC signals, and you won't be able to read it with a multimeter, as such a device only measures a very specific frequency. Now, if you have an oscilloscope, then you don't need to know the approximate voltage, since you will directly see how the signal changes when you contact the muscle.
@mahefred549 Жыл бұрын
@@BlueMoonshine Should the voltage signal coming high pass filter be well over .7 volts? You mentioned in the video that the voltage should be too low to activate a diode with the activation voltage of .7 volts.
@valrousseau7039 Жыл бұрын
@@mahefred549 Yes, but actually no! As explained in the video, we are using a "precision full wave rectifier" that act as a "superdiode", that is to say a diode without threshold. So this superdiode is activated as soon as the signal is non-zero, and the signal doesn't have to be over 0.7 V, it can be much smaller.
@jonkasben7556 Жыл бұрын
Good day! Thank you so much, for a great example of a self-made EMG sensor and detailed academical explanation! I have a question about C4 capacitor, on diagram you mark it as capacitor with polarization and in components list we can see, that it has 220 nF capacity, the problem is that I can`t find a polarized capacitor with that capacity, what should I do? Or maybe it is a misprint in the list?
@BlueMoonshine Жыл бұрын
The symbol is just wrong, it is not a polarized capacitor, just a regular one.
@jonkasben7556 Жыл бұрын
@@BlueMoonshine Thank you a lot!
@jonkasben7556 Жыл бұрын
@@BlueMoonshineOne last question. In components list capacitor capacity are 2.2uF and 220nF ?but on circuit diagram they are 1uF and 150nF. What is the best option?
@BlueMoonshine Жыл бұрын
1uF and 150nF is what I ended up using because I didn't have the others. This is OK as long as you use the RC combination that produces the same cutoff frequency. So, you can either stick to the values given in the diagram, or to the values given in the list of components.
@BlueMoonshine Жыл бұрын
Also, the cutoff frequency doesn't have to be exactly the same ones as mentioned. It is just a rough estimate.
@SankalpJulme28 күн бұрын
hi sir , i wanted to ask if i use a instrumentation amp like INA126p will the circuit work ?
@BlueMoonshine28 күн бұрын
I don't know, I am not familiar with this IC.
@jamelhn93366 ай бұрын
And in the offset selector step i used a 100k Ohm variable resistor the middle leg to the op-amp, and one to the 9volt battery and the last one to the groud. Is that right ?
@BlueMoonshine6 ай бұрын
Yes, this is precisely what is shown at 16'55''.
@rpt170 Жыл бұрын
I want to ask a stupid question. Why include reference electrode in the circuit when it is going to be grounded?
@BlueMoonshine Жыл бұрын
Because the potential of a single electrode is undefined. What is defined is voltage, that is to say a potential difference. So a potential is always defined with respect to some reference potential (which is unknown). When we choose this reference to be the "ground", it only means that we attribute to it the value "zero volt". But still, the current needs to flow through it, because the op-amp cannot directly measure the potential of an electrode. What the op-amp does is that it lets a small (but non zero) current flow through its inputs, and this current has to go somewhere, namely back to the ground.
@rpt170 Жыл бұрын
@@BlueMoonshine Thanks for the explanation.
@BlueMoonshine Жыл бұрын
@@rpt170 You're welcome!
@alpakbac472411 ай бұрын
I am having difficulty understanding which connection is connected to which opamp in the diagram you shared. I want to build this circuit on breadboard first. Can you help me by clarifying these connections?
@BlueMoonshine11 ай бұрын
It's kind of trivial: the video shows you the block diagram, and how each block works is explained in detail with calculations. Also, a picture of the complete diagram is given in the description of the video.
@joyelthomas5986 ай бұрын
Can i use this circuit for analysing the face muscles while we smiling. Can you help me with this. What modifications i have to change while making it?
@BlueMoonshine6 ай бұрын
The circuit is just a prototype that gives the method for detecting muscle activities. Everything is explained with great details in the video, so that anyone can generalize it to any particular application. I'm very busy and already spent a lot of time making this video, and I currently cannot spend more time on it.
@andresrdc7439 Жыл бұрын
Hi sir it's me again. Sorry to bother you. I just have two additional questions so I can finish up the circuit. The first question is: In the Schematic I can see Vp and Vn that I believe stands for Positve voltage and negative voltage... Do I use for Vp the 9v from the battery and for Vn the 0v or negative part from the battery... Or do I use the virtual ground as well.... And my other question is... For the amplifiers, in order to supply the voltage that they require, can I use the battery as well for the positive input and the virtual ground for the other input? Thank you so much beforehand
@BlueMoonshine Жыл бұрын
You use the positive lead of the 9V battery for Vp and the negative lead for Vn for all op-amps. The virtual ground that you get out of the LM386 is to be used everywhere you see the ground symbol on the diagram.
@andresrdc7439 Жыл бұрын
@@BlueMoonshine Thank you so much.
@jamelhn93366 ай бұрын
Hi there thank you for this tutorial. I read the comments and figured out that you used 1uF capacitor in low pass filter with 82k Ohm, but then the cut off frequency will be f = 1.94 So how did it work ? If you can just tell me what resistors and capacitors you used in your filters because i made it and there is a problem in it
@BlueMoonshine6 ай бұрын
These are not the values I used. The low-pass filter is explained from 13'52'' to 15'49'', and the values of the components are given.
@jamelhn93366 ай бұрын
So, the capacitors' values in the schematic photo are false??
@BlueMoonshine6 ай бұрын
@@jamelhn9336 They are not "false", they simply lead to a different cutoff frequency. That should still work!
@joyelthomas5986 ай бұрын
Sir, what is the use of offset selector? , what is the role? Sorry i didn't really catch up from the vedio. Also in the vedio shows 100k pot on the non-inverting terminal but in the diagram 10k divider circuit is used can you clarify this. Which circuit i have to follow?
@BlueMoonshine6 ай бұрын
The offset selector allows you to shift the output signal up or down, in case the device you want to control requires a specific range of voltages. The diagram is wrong, use the circuit in the video.
@joyelthomas5986 ай бұрын
@@BlueMoonshine ok thanku
@a.m.6417 ай бұрын
Great explanation! However, I can't get my head around how the 3-point micro-switch is placed on the PCB, or even which micro-switch to use, could you help me with that please?
@BlueMoonshine7 ай бұрын
I have no clue what you are talking about: There is no 3-point micro-switch in this circuit!
@a.m.6417 ай бұрын
@@BlueMoonshine I'm sorry, on the components list one of the last items says "Sw=3-point micro-switch". That's what got me confused, thank you for the clarification!
@BlueMoonshine7 ай бұрын
@a.m.641 You are right, there was a mistake in the component list, I just fixed it. Thank you!
@a.m.6416 ай бұрын
Would it be possible to use the same circuit to read the heart signal, as an ECG?
@BlueMoonshine6 ай бұрын
@@a.m.641 Good question. I haven't tried, but I guess it should be possible. I will check that.
@poojayeola338022 күн бұрын
Will I get this ckt for proteus simulation
@BlueMoonshine22 күн бұрын
I don't know what ckt means.
@joyelthomas5986 ай бұрын
Sir, one last question, in the components list there are 2 100uf capacitors to improve the stability. But you didn't put any. To improve the stability where i have to put these capacitors. And what stability was increased?
@BlueMoonshine6 ай бұрын
They go at the output of the symmetric power supply that is formed by the LM386. They can improve the stability of the supplied voltage, but in my case, it was not necessary.
@joyelthomas5986 ай бұрын
@@BlueMoonshine so both capacitors have to put at the output of the lm386 ic
@BlueMoonshine6 ай бұрын
@@joyelthomas598 Yes, one between the + of the battery and the output of the LM386, and one between the - of the battery and the output of the LM386.
@joyelthomas5986 ай бұрын
@@BlueMoonshine thank u for you valuable reply.
@BlueMoonshine6 ай бұрын
@@joyelthomas598 You're welcome!
@jomfawad9255 Жыл бұрын
Sorry for bothering again im asking because i made exact sensor sometimes the light goes on when i close my hand and soemtimes its always on and sometimes it doesnt work i dont know whats wrong
@BlueMoonshine Жыл бұрын
Bad connections? PCB not well printed? Bad soldering points? Sometimes adjustable resistors wear out, and you can't get the right setting.
@AlokSingh-cq4tz6 ай бұрын
WHAT COULD BE THE POSSIBILE REASON FOR not GLOWING OF LED if the led is working and how to trouble shoot it.
@BlueMoonshine6 ай бұрын
Well, that's a little bit vague, as the LED is at the output, so anything between the input at the output could be wrong. do you have access to an oscilloscope? If not, it's gonna be hard to troubleshoot it.
@rayllecordeirodanobrega6199 Жыл бұрын
Hello, can you explain why you used a 500k potenciometer and not one with lower resistance?
@BlueMoonshine Жыл бұрын
As explained in the video, this is to have a gain that can be adjusted to a maximum of 50, which allows the output voltage to reach the maximum voltage that can be delivered by the op-amp.
@rayllecordeirodanobrega6199 Жыл бұрын
@@BlueMoonshine Thank you, your video and quick response are being veeery helpful :D
@BlueMoonshine Жыл бұрын
@@rayllecordeirodanobrega6199 You're welcome. Please, share the video!
@stealthzcloakz585011 ай бұрын
This video is great, though I would like to dive a little deeper. Could you please provide me with some resources you used to make this video?
@BlueMoonshine11 ай бұрын
The video logo at the beginning was made by using the raytracing software "POV-Ray", the slides were made with LibreOffice Impress, the equations were made with klatex, and everything assembled with the video editor kdenlive, all these running on Linux.
@stealthzcloakz585011 ай бұрын
Thank you, though I ment what papers you read/ used to research this topic
@BlueMoonshine11 ай бұрын
@@stealthzcloakz5850 None! I'm a physics professor, I teach Maxwell's electromagnetism, and electronics is just an application of it.
@joyelthomas5986 ай бұрын
What is the use of last difference amplifier?
@BlueMoonshine6 ай бұрын
It is to subtract the optional offset from the output signal. This is not needed if you don't use any offset.
@ildjaviviane1432 Жыл бұрын
Can you explain how the lm386 ports work and the connections? if you use lm386 gain? Thanks, and good job!
@BlueMoonshine Жыл бұрын
This is explained at 17:45. The LM386 works exactly like any other op-amp. It amplifies the potential difference between it positive and negative inputs. If the two inputs are connected together, then the difference is zero, and the op-amp outputs a zero potential with respect to its midpoint between its positive and negative power pins. The midpoint between 0V and 9V is 4.5V. This is this value that we take as the "ground". The reason for using the LM386 instead of any other op-amp is that it is designed for having a zero offset voltage (other op-amps need to have it adjusted by adding some resistors) and for having a very low output impedance (which is what we want).
@ildjaviviane1432 Жыл бұрын
So the LM368 would serve as an offset selector, or is it just for power supply? So at the offset, Vs+ would be 9V and Vs- would be 0?
@BlueMoonshine Жыл бұрын
@@ildjaviviane1432 The LM386 is just for the symmetric power supply. It outputs 4.5 V, which is to be used as the ground. The positive side of the battery is Vs+ and the negative side is Vs-. 0V, 4.5V, 9V is the same as -4.5V, 0V, +4.5V since only voltage difference matters.
@mohammedalsaeedi94177 ай бұрын
I just don't get why you used an amplifier in the high pass filter ? Plus if we want to target more than one muscle should we use the same circuit for each muscle ?
@BlueMoonshine7 ай бұрын
As I explain in the video, the signal needs several stages of amplification, so I used an amplifier in the high pass filter to amplify the signal by 15. For more than one muscle, a multiplexing technique can be used so that a single circuit like that can be used for all the muscles. I will make a tutorial for that when I will have time for it. Basically, it will be a technique similar to what I use here: bluemoonshine.fun/Project-AudioSpectrumAnalyzer.php
@mohammedalsaeedi94177 ай бұрын
@@BlueMoonshine i see thank you for the replay
@BookFurnace8 ай бұрын
The website does not seem to work. Could you please re-post the links? That would be extremely helpful.
@BlueMoonshine8 ай бұрын
I just checked and the website works perfectly well.
@alpakbac472411 ай бұрын
I want to control this with an arduino and drive a servo motor. Do you have any ideas what I can do for this?
@BlueMoonshine11 ай бұрын
I don't know anything about Arduino. But isn't Arduino meant to make things easy? It should be a trivial thing to do.
@alpakbac472411 ай бұрын
if i dont have an ocilator how can i see the singals
@BlueMoonshine11 ай бұрын
@@alpakbac4724 It is called "oscilloscope", not "oscillator". The frequencies generated by the muscles are in the range [5 Hz, 400 Hz]. Included in this range is the range [20 Hz, 400 Hz] which are audible by humans. So, if you amplify the signal enough and inject the signal in a speaker, you should be able to hear it. And once the signal is rectified, you should be able to see it simply by connecting an LED.
@joyelthomas5986 ай бұрын
One doubt, our muscle waves lie in the range of 5 - 450 Hz, then why did you take the cutoff frequency of high pass filter as 7.23Hz and cutoff frequency of low pass filter as 10Hz. Why didn't you choose the cutoff frequency of the high pass filter as 5Hz and cutoff frequency of the low pass filter as 450Hz.
@BlueMoonshine6 ай бұрын
By using a cutoff frequency of 7.23 Hz for the high pass filter instead of 5 Hz, you are not losing any significant part of the signal. Regarding the low pass filter, you are misunderstanding the point. The signal has already been rectified before the low pass filter, so it no longer contains "waves" from the muscles activity. The frequencies present in the signal are the frequencies at which you contract the muscle. There is no way you can contract a muscle more than 10 times per second, so any frequency above that is just noise that needs to be eliminated.
@andresrdc7439 Жыл бұрын
Sir, one question. About the diagram, is the very first OpAmp that shows on the upper left corner the LM386?
@BlueMoonshine Жыл бұрын
No, the LM386 is just for the power supply. It is a trivial connection, as can be seen at 17:47. Simply connect the two input pins together, the + pin to the positive side of the battery and the - pin to the negative side. Then the output pin of the LM386 is your virtual ground.
@andresrdc7439 Жыл бұрын
@@BlueMoonshine I understand thank you so much for the fast response... Just one more question, so then the output from the lm386 being my virtual ground will go to the ground as my reference and is the connection that is showing bellow emg1 and emg2?
@andresrdc7439 Жыл бұрын
And if that is the case, all of my ground connections will be shared and will go to this virtual ground?
@BlueMoonshine Жыл бұрын
Yes!
@BlueMoonshine Жыл бұрын
Yes, exactly.
@saravictorialeitedanobrega5563 Жыл бұрын
Can I replace the LM386 with another amplifier?
@BlueMoonshine Жыл бұрын
Maybe. You would need to use an amplifier that has a very low output impedance. Also, some amplifiers output an offset voltage that may be problematic. The LM386 is designed to have a very small offset voltage.
@saravictorialeitedanobrega5563 Жыл бұрын
Tks. Another question, where would the LED be on the diagram?
@BlueMoonshine Жыл бұрын
@@saravictorialeitedanobrega5563 At the output, with a 220 ohm resistor in series.
@saravictorialeitedanobrega5563 Жыл бұрын
@@BlueMoonshine Shouldn't the resistor be grounded in the high pass filter?
@BlueMoonshine Жыл бұрын
@@saravictorialeitedanobrega5563 No, if you ground it, then no signal will go through.
@jomfawad9255 Жыл бұрын
Will there ever be a video on how to connect the sensor to arduino? it'll help alot
@BlueMoonshine Жыл бұрын
I don't think so, I don't know anything about Arduino.
@boussahidoria3366 Жыл бұрын
Hello @jomfawad9255 did you try it with arduino ?
@tiffany-e4k Жыл бұрын
Hi, why didn't you use an instrumentation amplifier?
@BlueMoonshine Жыл бұрын
The gain of an instrumentation amplifier is not large enough. Also, even if it was large enough, it wouldn't work because, as I explained in the video, you need to condition the signal after each step of amplification in order to avoid a saturation.
@tiffany-e4k Жыл бұрын
Oh I understand, another thing, where does the 100K potentiometer go on the diagram?
@BlueMoonshine Жыл бұрын
@@tiffany-e4k It's just for the offset selector. It is to be put in replacement of the voltage divider made of the two 10k resistors at the bottom left part of the diagram, between Vp and Vn. It doesn't really matter whether it is a 10k, or 100k, or 500k potentiometer.
@spock-j4e Жыл бұрын
Does the amplifier not need -VDD to be activated?
@BlueMoonshine Жыл бұрын
What does that mean? Vdd (a.k.a. Vcc) is just a positive supplying voltage and Vss is just a negative supplying voltage. The video gives you all the diagrams with rigorous derivations of all equations, and the circuit behaves exactly as predicted by the equations, so everything is there.
@spock-j4e Жыл бұрын
@@BlueMoonshine Yes, about the negative voltage, shouldn't it be implemented in the circuit to power the amplifier?
@BlueMoonshine Жыл бұрын
@@spock-j4e I really don't know what you are talking about. Can you show me on the diagram where and how you want to "implement the negative voltage"? Send me an email via the contact form of my website: bluemoonshine.fun/Contact.php
@spock-j4e Жыл бұрын
@@BlueMoonshine I'm talking about the negative and positive voltage connections that the amplifier requires, are they simply replaced by the negative from the 9V battery?
@BlueMoonshine Жыл бұрын
@@spock-j4e As explained in the video, the positive for the op-amps is the + of the battery (9V), the negative is the - of the battery (0V), and the ground is the 4.5V that the LM386 gives at its output.
@joyelthomas5986 ай бұрын
Can i replace TL084 with other opamp ic
@BlueMoonshine6 ай бұрын
Yes.
@joyelthomas5986 ай бұрын
@@BlueMoonshine can you suggest any ic
@BlueMoonshine6 ай бұрын
@@joyelthomas598 Well, use the ones you already have. If you don't have any yet and need to order some, then why not using the one I suggest in the video?
@joyelthomas5986 ай бұрын
@@BlueMoonshinethis ic is not available in my near shops. That's why i ask about your suggestion. I have some other opamp ic but some specs are not same with this ic.
@BlueMoonshine6 ай бұрын
@@joyelthomas598 There is of course the standard LM741. Other possibilities includes the TL081, TL082, and LM358. I'm sure there are others.
@jomfawad9255 Жыл бұрын
Does this work with arduino? and if yes can you please provide the code? Thank you
@BlueMoonshine Жыл бұрын
I don't know anything about Arduino, although I'm pretty sure it is possible to use the output signal to control Arduino things.
@osamarabee39272 жыл бұрын
Please share the schematics i have a breadboard i really need the schematics thanx ❤️
@BlueMoonshine2 жыл бұрын
All the schematics are given and explained in the video.
@osamarabee39272 жыл бұрын
@@BlueMoonshine not the pcb i dont have one id appreciat it if you shred the schematics for breadboard
@BlueMoonshine2 жыл бұрын
I'm wasn't talking about the PCB. The schematics, or circuit diagrams, of each stage of the block diagram are shown and explained in details in the video. All you have to do is to place your components on the bread board and write them according to these diagrams.
@waleedsajidbaloch95233 ай бұрын
@@BlueMoonshine you mentioned quad op amp TL084 in the components list. What is the purpose of it. In the circuit you made you used two TL084 and one LM386. The connections in the schematic you shared and components you used is different to the circuit you made. Please clarify
@BlueMoonshine3 ай бұрын
@@waleedsajidbaloch9523 Well, if you watched the tutorial, you can see that you need a total of 8 op-amps (if I remember well) for the circuit. There is nothing that prevents you from using 8 individual op-amps, but using integrated circuits that contains 4 op-amps in a single chip makes it easier. The values of the components are not unique. The tutorial explains clearly how to calculate and choose values that work, and I simply made a particular choice. Regarding the LM386, as is explained at the end of the video, it is if you want to choose the option of using a single battery and turn it into a symmetrical power supply. If you don't want to go for this option, there is nothing that prevents you from using two 9V batteries connected in series, with the ground at the center.