FLEX SENSOR TO SIMULINK

조회 수: 11 (최근 30일)
Jiby S Mathew
Jiby S Mathew 2020년 3월 26일
답변: karam abu mallouh 2020년 8월 28일
how can i move a human finger from solidworks using flex sensor using simulink .
expecting help for the steps
1 read values from flex sensor
2 plotting it and mapping it to the xml structure

답변 (1개)

karam abu mallouh
karam abu mallouh 2020년 8월 28일
hi i had the same problem today ,i saw this question and i was sad that no one answers so to anyone who wants help this could help you with flex sensors (arduino)
for index= 1:100
c=0
voltage(c+index,1)=readVoltage(a,'A1');
voltage(c+index,2)=readVoltage(a,'A2');
voltage(c+index,3)=readVoltage(a,'A3');
voltage(c+index,4)=readVoltage(a,'A4');
voltage(c+index,5)=readVoltage(a,'A5');
disp(voltage(index,1))
disp(voltage(index,2))
disp(voltage(index,3))
disp(voltage(index,4))
disp(voltage(index,5))
end
this code reads the voltage of the analog pins so it the voltages of the flex sensors will be in a variable folder called voltage
now you can go to matlab and find a block named (simin)/(from workspace)
and now you have the voltage data on simulink do now what ever you want
i hope that someone will be helped by this
if i helped you in this problem let me know it will make me happy :)

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by