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: content/hardware/05.pro-solutions/solutions-and-kits/opta/tutorials/getting-started/content.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -285,7 +285,7 @@ The 8 inputs pins can be used as digital (having the logical values of LOW or HI
285
285

286
286
287
287
Now let's try a sketch that will read the analog inputs on the Opta. The inputs can operate in a range between 0 and 10V.
288
-
The max voltage managed by the microcontroller is 3V. This maximum voltage needs to be put into relationship with the maximum resolution factor that we want to chose which can be selected within a range between 16bit (65535) and 12bit (4095).
288
+
The maximum voltage managed by the microcontroller is 3V. This maximum voltage is important to calculate the voltage of the input using it in conjunction with the resolution factor of the ADCs. That resolution can be selected inside the program within a range between 12bit (4095) and 16bit (65535).
289
289
To get and display the proper voltage value read by the input, we need to convert the value read by the analogRead function and apply a rescaling factor of 0.3 which is determined by the internal voltage divider.
290
290
The sketch will read the inputs on the analog pins A0, A1 and A2 and then print the result in the serial monitor.
0 commit comments