![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1483251/image.png)
Sir Iam not able to create high frequency from matlab arduino digital out pin using simulink plss help its urgent...
1 次查看(过去 30 天)
显示 更早的评论
Is there any way to create 40kHz from matlab simulink ant taking it out by interfacing arduino digital out pin
0 个评论
回答(1 个)
Brahmadev
2023-9-15
编辑:Brahmadev
2023-9-15
Hey Mithun,
I understand that you would like to generate a 40kHz signal on one of the Digital Out pins of the Arduino. This can be achieved using the "Pulse Generator" with the "Arduino Digital Write" block as shown below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1483251/image.png)
In the "Pulse Generator" block, the period can be defined as 1/40k and the duty cycle can be defined as per requirement.
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!