No video

Digital Potentiometer Tutorial Arduino MCP4131 DAC Raspberry Pi

  Рет қаралды 85,002

Mega Mechatronics

Mega Mechatronics

Күн бұрын

Пікірлер: 68
@slc334s
@slc334s 9 жыл бұрын
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!
@haz939
@haz939 8 жыл бұрын
Thanks for the tutorial the datasheet for these devices is quite scary.
@danielspathies8973
@danielspathies8973 2 жыл бұрын
You helped me finish a school project, thank you so much!!
@MegaMechatronics
@MegaMechatronics 2 жыл бұрын
Thanks for letting me know it helped!!!
@thenervoussquirrel
@thenervoussquirrel 10 жыл бұрын
Thanks so much for making the video - I now have an LED fading up and down nicely on my bench, fantastic!
@RichardBronosky
@RichardBronosky 9 жыл бұрын
Great video. Excellent explanation of how to communicate with the chip. Excellent solution to the starting at middle power problem.
@garrettcox
@garrettcox 6 жыл бұрын
Awesome. Thanks for the very clear tutorial.
@ice-rv7tz
@ice-rv7tz 7 жыл бұрын
Bro I don't have time for that I just hot glued a pot to a servo arm and it works perfectly Almost...
@gabrielbrassard8985
@gabrielbrassard8985 5 жыл бұрын
Oh I know you should use a pot to control the servo too!
@carlos2004
@carlos2004 4 жыл бұрын
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.
@Tannz0rz
@Tannz0rz 3 жыл бұрын
That's genius.
@serhatilgazyoner6602
@serhatilgazyoner6602 9 жыл бұрын
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. :)
@kaoshavoc
@kaoshavoc 5 жыл бұрын
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.
@DotanBrand
@DotanBrand 9 жыл бұрын
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?
@caroman6761
@caroman6761 8 жыл бұрын
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 ...
@mattinabinet2985
@mattinabinet2985 9 жыл бұрын
Very helpful tutorial. Subscribed because of this vid. Thanks very much!
@thomasdelbert
@thomasdelbert 9 жыл бұрын
Thank you sir! You answered all my questions.
@rayhanparvez2131
@rayhanparvez2131 2 жыл бұрын
excellent
@RobertC19850209
@RobertC19850209 5 ай бұрын
do they make pi compatible version of these that can accept 12 volts?
@LGPhotoArt
@LGPhotoArt 5 жыл бұрын
Well done video, very clearly explained, thanks.
@FrankLopezx
@FrankLopezx 9 жыл бұрын
i have a good question, why all companies use regular Pot to control servos and not use this mcp digital chip ?
@joshuamelton8773
@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
@MegaMechatronics Жыл бұрын
If the input channel high impedance that doesn't require any load for sensing (like an arduino input), then you can use it.
@nitiintulak5287
@nitiintulak5287 9 жыл бұрын
I'm hit the like button and subscribed, waiting to see your next tutorial.Thank you.
@christiankleinfeld7635
@christiankleinfeld7635 Жыл бұрын
Can I get the circuit plan and the Arduino code from somewhere ?
@justino6076
@justino6076 8 жыл бұрын
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.
@typingcat
@typingcat 2 жыл бұрын
How is this better than MCP41010?
@jamesmcauley6741
@jamesmcauley6741 5 жыл бұрын
Your code doesn't work. I have tried it on my MCP41XX, and print lines in the setup don't print.
@D4no00
@D4no00 5 жыл бұрын
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.
@Enigma758
@Enigma758 7 жыл бұрын
How do you deal with the fact that the wiper can only handle 1ma max?
@chuckcole7976
@chuckcole7976 5 жыл бұрын
The datasheet says (on Page 3): "Maximum current into PXA, PXW & PXB pins ............±2.5 mA"
@maartenkeus3780
@maartenkeus3780 4 жыл бұрын
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!
@fcoch7
@fcoch7 6 жыл бұрын
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.
@SadamFlu
@SadamFlu 9 жыл бұрын
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?
@42222
@42222 9 жыл бұрын
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_IceNation
@ObiWanKenobi_IceNation 6 жыл бұрын
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.
@thinwhitedukenator
@thinwhitedukenator 9 жыл бұрын
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!
@ned4real
@ned4real 10 жыл бұрын
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?
@baraiyanirav4694
@baraiyanirav4694 7 жыл бұрын
i want to use this but i want button control without ardiuno? can it possible?
@ziplock
@ziplock 9 жыл бұрын
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?
@MegaMechatronics
@MegaMechatronics 9 жыл бұрын
Check out the datasheet to see if your specific application will work. It can't handle much current, something like 25mA
@stevelabarre
@stevelabarre 9 жыл бұрын
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
@MegaMechatronics
@MegaMechatronics 8 жыл бұрын
+Steve Labarre I am planning on using it to interface to the Weapon XXX deathbike.
@hamedtaha5267
@hamedtaha5267 5 жыл бұрын
nice video, thanks for that
@kchoudhari2957
@kchoudhari2957 7 жыл бұрын
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.
@menghan4963
@menghan4963 10 жыл бұрын
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?
@MegaMechatronics
@MegaMechatronics 10 жыл бұрын
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.
@whiletr
@whiletr 9 жыл бұрын
Why zero is sent each loop ? Is it protocol requirement, or just redundant line ?
@thinwhitedukenator
@thinwhitedukenator 9 жыл бұрын
+Азис Мразиш 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);
@alessandroamedei810
@alessandroamedei810 8 жыл бұрын
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!!
@MegaMechatronics
@MegaMechatronics 8 жыл бұрын
Please refer to the datasheet linked in the description. This will ensure accurate information is obtained for your particular application.
@etiennegagnon5479
@etiennegagnon5479 7 жыл бұрын
Would it be possible to use both of them at the same time with different resistance?
@snnwstt
@snnwstt 6 жыл бұрын
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)
@chuckcole7976
@chuckcole7976 5 жыл бұрын
From the datasheet: Maximum current into PXA, PXW & PXB pins ............±2.5 mA
@sparkrd100
@sparkrd100 8 жыл бұрын
will work with mcp4011
@aldososa1830
@aldososa1830 6 жыл бұрын
Where does the wiper begin when first powered on?
@jtb8631
@jtb8631 4 жыл бұрын
Aldo Sosa, datasheet for similar mcp42xx series says in the middle position.
@alaarabeaezz1403
@alaarabeaezz1403 9 жыл бұрын
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
@yasamanmajd7827
@yasamanmajd7827 9 жыл бұрын
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
@DavidCook42
@DavidCook42 10 жыл бұрын
Thank you
@antoninomanfre1387
@antoninomanfre1387 3 жыл бұрын
Ciao Ottimo video, volevo sostituire il potenziometro meccanico da 2,2K con un MCP4151 ma il minimo è 5K va bene lo stesso o no
@asaposaspa3509
@asaposaspa3509 7 жыл бұрын
thanks
@valveman12
@valveman12 7 жыл бұрын
Great Video. I have the same Scope. Have you modded it for 100Mhz? It is quite simple. See EEBlog for instructions.
@candrafirmansyah5338
@candrafirmansyah5338 3 жыл бұрын
Wow mr hahn from linkin park 🤣
@tojorandriamanarivo9014
@tojorandriamanarivo9014 2 жыл бұрын
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?
@MegaMechatronics
@MegaMechatronics 2 жыл бұрын
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.
How to Arduino BMS - Part 1 Battery Monitoring System LiPo LiFe
9:31
Mega Mechatronics
Рет қаралды 74 М.
The Ultimate Guide to using Motors in Robotics (including ROS, Raspberry Pi)
25:56
Whoa
01:00
Justin Flom
Рет қаралды 31 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 53 МЛН
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 16 МЛН
How a DigiPot or Digital Potentiometer works Tutorial
21:34
eTech Tom
Рет қаралды 15 М.
12-bit DAC Arduino MCP4725 How To Use It - Stable Voltage Reffrence
11:21
Op-Amps  - Using Operational Amplifiers
44:21
DroneBot Workshop
Рет қаралды 280 М.
Digital Potentiometer and Rotary Encoder Direct Control X9C103
14:05
The Raspberry Pi Pico WAS Overrated! But that changed!
10:18
GreatScott!
Рет қаралды 606 М.
MCP42100 Digital Potentiometer with Arduino
12:01
Gadget Reboot
Рет қаралды 24 М.
Whoa
01:00
Justin Flom
Рет қаралды 31 МЛН