I'm trying to develop a wireless charger and I was thinking about controlling the emitter with the Intel Edison board. In order to do it I need to generate two square signals to control a power inverter. These square signals must be in counterphase and able to have a varying frequency within a range of 100 kHz to 200 kHz keeping a constant duty cycle of 50%. What would be the best option to generate these signals if it is possible? I have seen that it is possible to generate PWM signals with these frequencies using mraa's PWM class, but this does not allow me to make a smooth frequency variation, since the period can only be expressed in s, ms or us (ie. 5 us -> f=200 kHz; 6us -> f=166 kHz).
Thanks in advance.
We'll be more than glad to help you with this.
I'm wondering if you have consider trying with Fast Memory Mapped IO. I would suggest you to check the following link http://www.i-programmer.info/programming/hardware/8770-exploring-edison-fast-memory-mapped-io.html http://www.i-programmer.info/programming/hardware/8770-exploring-edison-fast-memory-mapped-io.html, it explains how it works and offers some examples to implement it. Hopefully you'll get better results with this.
Let us know if it works.