This video was fantastic! I'm glad that you discussed the second case as well, as that would have really messed with my project. Thanks!
@haz9398 жыл бұрын
Thanks for the tutorial the datasheet for these devices is quite scary.
@danielspathies89732 жыл бұрын
You helped me finish a school project, thank you so much!!
@MegaMechatronics2 жыл бұрын
Thanks for letting me know it helped!!!
@thenervoussquirrel10 жыл бұрын
Thanks so much for making the video - I now have an LED fading up and down nicely on my bench, fantastic!
@RichardBronosky9 жыл бұрын
Great video. Excellent explanation of how to communicate with the chip. Excellent solution to the starting at middle power problem.
@garrettcox6 жыл бұрын
Awesome. Thanks for the very clear tutorial.
@ice-rv7tz7 жыл бұрын
Bro I don't have time for that I just hot glued a pot to a servo arm and it works perfectly Almost...
@gabrielbrassard89855 жыл бұрын
Oh I know you should use a pot to control the servo too!
@carlos20044 жыл бұрын
this made me laugh because my digital pot is still on the way, and that's actually how i'm running my volume control right now.
@Tannz0rz3 жыл бұрын
That's genius.
@serhatilgazyoner66029 жыл бұрын
thank you so much sir, it's much more easy to understand like this and i need to know all of these as i'm studying biomedical eng. :)
@kaoshavoc5 жыл бұрын
Love the vid. And if I am not mistaken. I think there is a procedure to save a state in the chip so it does not start out in the middle and has a limited number of saves but it is super high.
@DotanBrand9 жыл бұрын
Thank you, this sure spread a light over many things I couldn't understand so far. I was looking for a video that explains how to do it with multiple devices. Can you help?
@caroman67618 жыл бұрын
I bought today a Speaker with integrated Radio. If I turn on the Radio, it's mega loud and through your Video I understand why. Also I haven't enough steps to make it sufficiently low, your Video explain also why. It's very instructive to me, thanks ...
@mattinabinet29859 жыл бұрын
Very helpful tutorial. Subscribed because of this vid. Thanks very much!
@thomasdelbert9 жыл бұрын
Thank you sir! You answered all my questions.
@rayhanparvez21312 жыл бұрын
excellent
@RobertC198502095 ай бұрын
do they make pi compatible version of these that can accept 12 volts?
@LGPhotoArt5 жыл бұрын
Well done video, very clearly explained, thanks.
@FrankLopezx9 жыл бұрын
i have a good question, why all companies use regular Pot to control servos and not use this mcp digital chip ?
@joshuamelton8773 Жыл бұрын
So I understand the operation power is 1.8 to 5v but I'm wondering if I can use this chip to control a heat rod with a thermistor to keep a plate a specific temperature? The heat rod is 120 v using an alternative power from the wall. I guess I'm trying to figure out how I would wire that to this chip or if this chip can work for that? Idk if there is a relay or something I hook to the chip that will vary the voltage output? That doesn't sound right to me though. Thanks anyone for your help I'm still a newb.
@MegaMechatronics Жыл бұрын
If the input channel high impedance that doesn't require any load for sensing (like an arduino input), then you can use it.
@nitiintulak52879 жыл бұрын
I'm hit the like button and subscribed, waiting to see your next tutorial.Thank you.
@christiankleinfeld7635 Жыл бұрын
Can I get the circuit plan and the Arduino code from somewhere ?
@justino60768 жыл бұрын
A little different topic but a related family to the MCP4131 with the MCP 42XXX series you run into an issue where it needs .7vdd to even acknowledge the I/O and Serial input so this would limit the usage on the pi to, the 3.3v rail anyone with an idea for a fix to get this to 5Volts, also experiencing some issues with communication on pi using Pi4J our SPI is outputting the proper 00010011 to write to both pots on the MCP42XXX then we output all 0s or all 1s to just see if the pot is running. (using the 3.3 rail for pi) anyways we are logging the output on a logic analyzer and the outputs are the same during the clock cycles, the only difference is the SPI on pi seems to reset to low when not sending and the Arduino seems to rest at high when not sending. the Arduino works and the pi does not.
@typingcat2 жыл бұрын
How is this better than MCP41010?
@jamesmcauley67415 жыл бұрын
Your code doesn't work. I have tried it on my MCP41XX, and print lines in the setup don't print.
@D4no005 жыл бұрын
you shouldn't connect power source from digital pin, those pins are meant to be used for signal only, since they can output only 40mA at max. In your case there isn't a problem since you don't have a load, but someone might try to connect a motor or something that uses more current and they will fry their arduino. Instead use a transistor to switch the 5V from power supply on/off.
@Enigma7587 жыл бұрын
How do you deal with the fact that the wiper can only handle 1ma max?
@chuckcole79765 жыл бұрын
The datasheet says (on Page 3): "Maximum current into PXA, PXW & PXB pins ............±2.5 mA"
@maartenkeus37804 жыл бұрын
looking for the way of doing multiple Digi pots on one arduino, i read somewhere that its only possible to do 2 at a time but cant figure out that one, could anyone help me further? this tutorial really helped me though, not only to replicate it but as well starting to understand the mechanics of it. thanks a lot for that!
@fcoch76 жыл бұрын
hey men, I have conected one led to the pin 6, that should be the potentiometer wiper, i have upload your first program like you but the led doesn´t work when i send diferent values with SPI.transfer, what is the problem?? I hope you could help me. Thanks.
@SadamFlu9 жыл бұрын
Do you know if you can replace a 5k ohm digital pot where a 4.7k ohm analog pot used to be? Would that work ok? Would I have to crop the extra .3 ohm resistance in code?
@422229 жыл бұрын
I have the mcp4132-503 but only 0,1,2,3 and 5 do something with the resistance on the multimeter. I don't know what im doing wrong. I have the exact same wiring and code as you
@ObiWanKenobi_IceNation6 жыл бұрын
So can the MCP4xx1 series be used as volume control between say a dac and an amp? I'd like to use one in my Raspberry Pi Zero project.
@thinwhitedukenator9 жыл бұрын
Excellent video, thanks for the explanation. My circuit is a little different - the digital pot is to replace a regular pot in a PWM motor speed controller. This has separate power supplies for the arduino and the speed controller. Long story short, I have the B,W,A wire like the original pot was and discovered I didn't need the VDD wired up. This works, but I'm not happy with something just working, I like to know why. Could you explain why I don't need the VDD? Cheers!
@ned4real10 жыл бұрын
Thanks for this video. It was very helpful, I managed to control the MCP4131 with my Arduino UNO. I'm trying to do the same thing now with a Raspberry Pi (model B), but it seems like SPI protocol is way more difficult to use here and the code looks much more complex. Would you mind explaining how to make the same work with a Raspberry Pi?
@baraiyanirav46947 жыл бұрын
i want to use this but i want button control without ardiuno? can it possible?
@ziplock9 жыл бұрын
I'm curious as to if you can use this digital Potentiometer to regulate the voltage on a 9v signal for a LED Driver. I noticed that you were just using the arduino's 5v rail for power on it but will it handle 12v for the output voltage?
@MegaMechatronics9 жыл бұрын
Check out the datasheet to see if your specific application will work. It can't handle much current, something like 25mA
@stevelabarre9 жыл бұрын
What kind of car did you try to interface ? did it work? I'm trying to make a adaptive cruise control for my yamaha bike and to interface the TPS i need a digipot and I was learning more about them and found your video would save me a lot of time if you could tell me if it was possible or did the ECU always detect that you are tampering with the system? Thank you very much COOOL Channel
@MegaMechatronics8 жыл бұрын
+Steve Labarre I am planning on using it to interface to the Weapon XXX deathbike.
@hamedtaha52675 жыл бұрын
nice video, thanks for that
@kchoudhari29577 жыл бұрын
Thank you for such a detailed video on MCP4XX1 series using arduino. Can you please upload another video for Digipot MCP41HV51. I am unable to communicate with Digipot successfully. Can you please help me in this regard. Thank you in advance.
@menghan496310 жыл бұрын
Thanks vert mych for the exellent video! One short question, how to work with multiple digital potentiometers? cause' there is only one SPI.transfer in the code and how to separatedly transfer data?
@MegaMechatronics10 жыл бұрын
Use the CS pin to select what chip you want to receive the command. So all the chips use the same MOSI line and CLK, but each chip gets their own digital signal going to their CS pin. When you want to change a value in any given chip, then you pull it's CS pin LOW -> Send Data -> CS pin HIGH.
@whiletr9 жыл бұрын
Why zero is sent each loop ? Is it protocol requirement, or just redundant line ?
@thinwhitedukenator9 жыл бұрын
+Азис Мразиш I'm no pro at this but I believe the first SPI.transfer(0) is the address. I found this in Arduino's DigitalPotControl example under SPI. // send in the address and value via SPI: SPI.transfer(address); SPI.transfer(value);
@alessandroamedei8108 жыл бұрын
Hi, thank you so much for the video. Can i regulate 10 Volts with this potentiometer? So can i apply 10 volt between P0A and P0B pins to get to P0W a regulated voltage? Thank you so much!!
@MegaMechatronics8 жыл бұрын
Please refer to the datasheet linked in the description. This will ensure accurate information is obtained for your particular application.
@etiennegagnon54797 жыл бұрын
Would it be possible to use both of them at the same time with different resistance?
@snnwstt6 жыл бұрын
From the datasheet, NO, not directly. Vdd max is 7.0V and so, the potentiometer can only handle up to Vdd+0.3 = 7.3 Volt. There are also limitations on amperage (25mA) and power dissipation (they give the formula to compute it in the datasheet) to 400 mW. Datasheet available at many places, such as at dlnmh9ip6v2uc.cloudfront.net/datasheets/Components/General%20IC/22060b.pdf ---- modified with additional info here down.... You can try the X9C104 chip which seems to handle up to 10V, but has a lower power dissipation and lower amperage. (Page 4 of www.intersil.com/content/dam/Intersil/documents/x9c1/x9c102-103-104-503.pdf)
@chuckcole79765 жыл бұрын
From the datasheet: Maximum current into PXA, PXW & PXB pins ............±2.5 mA
@sparkrd1008 жыл бұрын
will work with mcp4011
@aldososa18306 жыл бұрын
Where does the wiper begin when first powered on?
@jtb86314 жыл бұрын
Aldo Sosa, datasheet for similar mcp42xx series says in the middle position.
@alaarabeaezz14039 жыл бұрын
Mega Mechatronics plz help me with that . i made the program for atmega32 but the mcp41010 in proteus did not work and i have a fixed output voltage of 0.2 volt even the the chip is not connected the atmega32. waiting for you
@yasamanmajd78279 жыл бұрын
alaa rabea ezz I have this problem too.what did you do for that.did you solve this problem? if you solved it please help me it is very vital for me my email:y_majd92@yahoo.com
@DavidCook4210 жыл бұрын
Thank you
@antoninomanfre13873 жыл бұрын
Ciao Ottimo video, volevo sostituire il potenziometro meccanico da 2,2K con un MCP4151 ma il minimo è 5K va bene lo stesso o no
@asaposaspa35097 жыл бұрын
thanks
@valveman127 жыл бұрын
Great Video. I have the same Scope. Have you modded it for 100Mhz? It is quite simple. See EEBlog for instructions.
@candrafirmansyah53383 жыл бұрын
Wow mr hahn from linkin park 🤣
@tojorandriamanarivo90142 жыл бұрын
hello Mega Mechatronics! good video. Can you help me to used an Rhéostat MPC4162 ?I can't find the right code on arduino. I have a small enough simple project normally but I can't find the right code. Could you give me your contact so that I can explain to you?
@MegaMechatronics2 жыл бұрын
You may have 'thrown in the towel' a bit too soon here. I suggest first "search engine" something like this: how to wire a rheostat -to double check we understand how a rheostat is typically laid out, from multiple sources makes more confidence. Next, pull up the MPC4162 datasheet then match up the rheostat wiring on a breadboard. Finally, do a bench test by creating a dummy circuit, or dummy load to simulate something quick to make sure the MPC IC is responding as expected. If it's not working on the bench, trace it back to the arduino Inputs/Ouputs, if not, trace back to code finally. Basic literal wiring can also cost hours of debugging, so make sure the wiring/jumpers/connectors are sorted, and check again if you are still having trouble.