Arduino - digital potentiometer MCP41100

preview_player
Показать описание
This is the basic test of communication between Arduino and digital potentiometer.

Source code
Рекомендации по теме
Комментарии
Автор

Carra, if you want to use MCP41100, correct value of address is 0x11 (BIN 00010001). Look at figure 5-2 in datasheet. Command byte is X X C1 C0 X X P1 P0. You want to write, so C1=0 and C0=1. You have just one possible pot, so P1=0 and P0=1.
Your value 0x10 means write and dummy code, so nothing happens after your command. But digital pot is not recommended to use with LED. It has high resistance. Try use PWM to change the light of LED.

RoboUlbricht
Автор

Hi Robo

I've tried and tried many times... this not work!
I think the command byte has the wrong value for 41100.
I've tried with 0x10 instead of 0x11 and the pot seems to recognise command but my led don't change its light...

cheers

carranen
Автор

Can this thing act as a pot for 0-12v vdc

hunterpruett