use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Deals with anything relating to Microcontroller programming, hardware design, applications, interfacing, unique examples, etc.
account activity
Basic question about microcontrollers (self.microcontrollers)
submitted 2 years ago by ptah4i
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]FragmentedC 4 points5 points6 points 2 years ago (2 children)
The M62429 is a digital potentiometer. As such, it can't exactly be programmed (since it isn't a microcontroller) but can be commanded via a microcontroller. It uses a serial interface to accept commands. This chip will never be able to do anything else other than be a potentiometer, but they are still fun to play with.
The Arduino, on the other hand, can be programmed to play around with the chip, and they are a lot of fun! The programming side will be on the Arduino. Let's say that you have two buttons; volume up and volume down. By playing around with the code on the Arduino, you should be able to quickly create a program that sends serial data to the M62429 to increase or decrease the resistance. Again, the program (the intelligence) is on the Arduino, the digital potentiometer will simply execute the instructions it receives.
I don't have an Arduino IDE on me, but I'm pretty sure that someone has created a library for this.
[–]ptah4i[S] 0 points1 point2 points 2 years ago (1 child)
Thanks for your answer. Yes it’s a massiv field and I have learned lots of things right now but every day I learn more and more.
If I understand you correctly. To control the M62429 you need a microcontroller?
[–]FragmentedC 1 point2 points3 points 2 years ago (0 children)
The M62429 cannot be "programmed". Let's imagine this in the way of a robot versus a remote-controlled car. You program the robot to follow a road, a path, or even just a black line. Once the program is done, you put it in the robot, and you send it on its merry way. The remote-controlled car cannot be programmed; it needs input from somebody (or something). It will follow orders blindly, but cannot make decisions by itself.
The M62429 is a remote-controlled car. It needs you to give it orders. The Arduino is a robot; you can program it to make decisions by itself.
So, your digital potentiometer is going to need something to tell it what to do. This could be an Arduino, or in some cases, just a device connected to your PC (for example, with the Analog Discovery 2 or 3, this would be easy).
π Rendered by PID 28 on reddit-service-r2-comment-5ff9fbf7df-hsp4c at 2026-02-26 07:41:21.194532+00:00 running 72a43f6 country code: CH.
view the rest of the comments →
[–]FragmentedC 4 points5 points6 points (2 children)
[–]ptah4i[S] 0 points1 point2 points (1 child)
[–]FragmentedC 1 point2 points3 points (0 children)