You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Setup the hardware as shown:
34
34
35
35
*Note: The image below has an optional 3D printed insert that goes below the Force Click to give the force resistor support. It is convenient, but not required.*
* Sample Accumulation Number: This takes multiple samples before reporting a result. This reduces the effect of outliers to create a more stable result. 16 samples are used, instead of more, because that is the maximum accumulation size amount (16-bits) the AVR64DD32 supports for a 12-bit reading. (Max 12-bit reading = 2^12 = 4096) * (16 readings) = 65536 = 2^16, which is the size of the accumulation register.
77
77
78
-
{width=444px}<br>From the AVR64DD32 datasheet [page 491](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/AVR64DD32-28-Prelim-DataSheet-DS40002315B.pdf#page=491)
78
+
<br>From the AVR64DD32 datasheet [page 491](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/AVR64DD32-28-Prelim-DataSheet-DS40002315B.pdf#page=491)
79
79
<br>
80
80
81
81
* Left Adjust Result: The 12-bit value read is stored in a 16-bit register. This either left or right-justifies the result
82
82
* Free Running Mode: Automatically starts the next ADC conversion as soon as the last one is finished.
83
83
* Positive Input Selection: As shown in the picture below, the Force Click's Analog Pin, AN, is in the top left position. Since it is in the Curiosity base board's slot 2, that corresponds to the Curiosity Nano base board's 13th pin. On the AVR64DD32, the 13th pin is PORTF3, also known as AIN19, thus Analog input 19.
From Curiosity Nano Base Board Hardware User Guide [page 5](https://ww1.microchip.com/downloads/en/DeviceDoc/Curiosity-Nano-Base-for-Click-boards-User-Guide-50002839B.pdf#page=5) and AVD64DD32 Curiosity Nano Hardware User Guide [page 25](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/UserGuides/AVR64DD32CNANO-Prel-HW-UserGuide-DS50003323.pdf#page=25)
* Change the Input Sense Configuration for the ADC0 pin to Digital Input Buffer disabled
115
115
116
-
{width=616px}
117
-
116
+

118
117
119
118
#### Step #5: Generate the project
120
119
* Click the generate button in MCC by the Project Resources window to create the MCC generated header and source files
@@ -143,7 +142,7 @@ When the resistor is pressed, the LEDs should light up proportionally to the app
143
142
To view the pressure the resistor is reporting, open MPLAB Data Visualizer from the toolbar (The green shield with DV on it). Under connections, select the COM port the Curiosity Nano is connected to and hit play.
144
143
Under the terminal input, select the same COM port. The pressure should now be displaying on the terminal.
0 commit comments