I am interested in one thing; why did you decide to generate the sine signal from the MCU directly?
In this way, you took even 8 pins!
Among them is a UART port as well as some very useful PWM pins.
Some are directly tied and controlled by timers.
Too many resources wasted. Hence the two Nanos.
I'm not saying it's bad, it can be done that way too, why not.
I'm just wondering why you didn't just use one PWM pin and still shape it with a discrete solution out of MCU.
Even more; wouldn't it be interesting to drive the TX directly with a square signal?
So much for now, I didn't get to analyze everything.
But you certainly gave a very good starting point for upgrades!
Great idea!

Leave a comment: