Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

serial and arduino command

3 Ansichten (letzte 30 Tage)
john white
john white am 19 Mai 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi
I want to read some datas with serial connection in the matlab and write some datas with arduino ,is it possible?
something like this:
s=serial('com5')
a=arduino('com5','uno')
for i=1:100
b=fscanf(s);
if b==2
writeDigitalPin(a,'D2',1)
end
pause(1)
end
se

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by