Through UART communication, a number from 1 to 7 is sent, indicating the frequencies set in the code, which are from 100 Hz to 700 Hz, then through a pin I generate a PWM signal which varies in time to generate a sine wave of the frequency that was requested.
Only physical tests were carried out with the circuit, a Bluetooth antenna was added to the UART communication port, and a low pass filter was added to the output of the system to improve the signal a little and then it was measured with the oscilloscope and I verify that it delivers the requested frequencies.
-Bluetooth HC05. -oscilloscope. -A low pass filter.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | uart_rx | uart_tx | no use |
1 | no use | no use | no use |
2 | no use | pwm_outx | no use |
3 | no use | no use | no use |
4 | sw_11 | no use | no use |
5 | sw_01 | no use | no use |
6 | rst1 | no use | no use |
7 | no use | no use | no use |