Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of digipot by
Diff: digipot.cpp
- Revision:
- 1:0b0025664bb7
- Parent:
- 0:57bdd27601ad
- Child:
- 2:520eb3d16c18
--- a/digipot.cpp Fri Apr 03 20:04:16 2015 +0000 +++ b/digipot.cpp Fri Apr 03 20:29:42 2015 +0000 @@ -5,8 +5,8 @@ static int id = 0x04; //Module CAN ID, to be assigned by keypad team. static double input_amp = 3.3; //input analog signal is 3.3V -static double R1 = 10; //Opamp resistor between output and inverting-input -static double R2 = 5.6; //Opamp resistor between inverting-input and ground +static double R1 = 9.84; //Opamp resistor between inverting-input and ground +static double R2 = 5.47; //Opamp resistor between output and inverting-input static double gain = 1 + R2/R1; //Non-inverting opamp gain //Debugging Variables
