Availbale Products, Material- and Service suppliers > Do It Yourself

Open Source 3 Channel Frequency Generator

<< < (7/7)

europeanhillbilly:
Just measured the output of the Arduino PWM.
Frequency and duty cycle are dead on, measured with a Fluke 124 40Mhz oscope.
Great stuff :)

Now how would I attach a mosfet to switch 60V or more? Possibly with an optocoppler or something to keep the 60V from getting to the Arduino?

Thanks alot Yucca, great work

Yucca:
Hi EHB,

Sorry for the delay in replying. Glad you got it going OK. yes freq and DTC are spot on thanks to using the hardware PWM circuit within the arduino chip. And because the arduino board uses a crystal clock it is almost jitter free and very temperature stable.

For switching at 1MHz use any old N channel FET like IRF730 which goes up to 400v. Use that to chop your neg line.

You could use an optocoupler to protect your MCU yes that´s a good idea. You could tie the FET gate to ground using a resistor and then wire the optocoupler output to the gate. Higher resistance value will give faster turn on and slower turn off and vice versa.

For the stuff I´m doing I like to have as fast rise and fall times as possible so I use a UCC27322 FET driver it also provides a level of protection for the MCU and has a built in charge pump so it even works fast off the MCU 5v supply. Some fast FET drivers need plus and minus 12v supply to achieve the fast switch.

Note, there are a couple of blind spots in the PWM output where certain frequency selections cause no output, this is a bug in the algorithm that sets up the hardware timers and I will try and remedy it soon.

Yucca.

Navigation

[0] Message Index

[*] Previous page

Go to full version