Electronic Components Datasheet Search
  English  ▼

X  

DFR0520 Datasheet(PDF) 8 Page - DFROBOT

Part # DFR0520
Description  Dual Digital Pot (100K) SKU: DFR0520
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  DFROBOT [DFROBOT]
Direct Link  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0520 Datasheet(HTML) 8 Page - DFROBOT

Back Button DFR0520 Datasheet HTML 4Page - DFROBOT DFR0520 Datasheet HTML 5Page - DFROBOT DFR0520 Datasheet HTML 6Page - DFROBOT DFR0520 Datasheet HTML 7Page - DFROBOT DFR0520 Datasheet HTML 8Page - DFROBOT DFR0520 Datasheet HTML 9Page - DFROBOT DFR0520 Datasheet HTML 10Page - DFROBOT DFR0520 Datasheet HTML 11Page - DFROBOT DFR0520 Datasheet HTML 12Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 13 page
background image
const int POT0_SHUTDOWN = 0x21;
const int POT1_SHUTDOWN = 0x22;
const int BOTH_POT_SHUTDOWN = 0x23;
/***********************Customized Varialbes**********************/
//resistance value byte (0 - 255)
//The wiper is reset to the mid-scale position upon power-up, i.e. POT0_Dn =
POT1_Dn = 128
int POT0_Dn = 128;
int POT1_Dn = 128;
int BOTH_POT_Dn = 128;
//Function Declaration
void DigitalPotTransfer(int cmd, int value);
//send the command and the w
iper value through SPI
void setup()
{
Serial.begin(115200);
pinMode(CS_PIN, OUTPUT);
// set the CS_PIN as an output:
SPI.begin();
// initialize SPI:
}
void loop()
{
// change the resistance on the POT0 from min to max:
for (int POT_Dn = 0; POT_Dn < 256; POT_Dn++) {
DigitalPotWrite(POT0_SEL, POT_Dn);
delay(1);
}
// change the resistance on the POT0 from max to min:
for (int POT_Dn = 0; POT_Dn < 256; POT_Dn++) {
DigitalPotWrite(POT0_SEL , 255 - POT_Dn);
delay(1);



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com