I want to know how to create code or what function to use in MATLAB that will allow me to send PWM signal of 10 kHz and duty cycle of 55% to one of the output pins on the arduino uno.
It Must Be In MATLAB Environment.
Please if you one can help me that will be great this is for my project.
I had looked at the link. i just want to explain little more just so i make sure that am asking the right question.
I had simulated a polarization fuel cell curve characteristics in matlab that are composed of "Voltage" and "current" that mimic the fuel cell for 50 watt system.
Using the MATLAB interfacing with arduino am able to use the ACS712 current sensor to read the current each time the load chances on the output of the buck converter. i was able to write this program in Matlab to read current and to compare it to the fuel cell current value that i upload to matlab with specified duty cycle for each current value.
Now my problem is am not able to some how send that given set duty cycle from matlab with set frequency of 10 khz, the only thing to keep in mind is the duty cycle will change every time current chances.