mirror of
https://github.com/EFeru/hoverboard-sideboard-hack-GD.git
synced 2025-07-27 17:49:32 +00:00
/*! \file readme.txt \brief description of the OPA_amplify example */ /* Copyright (C) 2017 GigaDevice 2014-12-26, V1.0.0, platform GD32F1x0(x=3,5) 2016-01-15, V2.0.0, platform GD32F1x0(x=3,5,7,9) 2016-04-30, V3.0.0, firmware update for GD32F1x0(x=3,5,7,9) 2017-06-19, V3.1.0, firmware update for GD32F1x0(x=3,5,7,9) */ This demo is based on the GD32190R-EVAL board. It will show how to use the OPA2 to amplify the input voltage.The input voltage is connected to the JP8 Pin 1. The amplifier output pin can be configured to the ADC sample channel 13. We can adjust the VR2 to change the magnification. The amplified voltage can be measured on the JP8 pin 2 with a universal meter or oscilloscope. Amplified voltage can also be sampled by ADC1 and printed out through the serial port.