필터 지우기
필터 지우기

How to interface touch screen with simulink to determine the position of a moving ball on a plate

조회 수: 15 (최근 30일)
Hi, Im attempting to use a 4 wire resistive touch screen to determine the position of a ball on a given plate. The idea is that the error from the reference point will be calculated and then using a state space regulator servo motors will adjust the plate to return the ball to its reference position. I'm having trouble with the touch screen. I am trying to run it through an Arduino mega 2560. Essentially voltage is applied to X+ while X- and Y- are tied to ground and voltage read from Y+ and vice versa. This isn't working out too well for me. Is there a better way of doing this in particular to have it working in simulink. I have completed a lot of searches but can only find references to touch screens and Arduino boards but nothing discussing how it was completed. Any help would be very more appreciated. Even been pointed in the right direction would be great. Thanks peter
  댓글 수: 11
William Jara Loaiza
William Jara Loaiza 2018년 10월 17일
Hello everyone, I share my little experience in this same project since like all of us here I have researched a lot of this.
I have not yet been able to solve Peter's problem because as mentioned, with MatLab it is very complicated to communicate the touch screen and send the data to simulink in real time. For all this I found a way in which the programming similar to the one mentioned in matlab is loaded in arduino, then arduino sends the values of the position through the serial port where now we can read them in real time from simulink.
Here I share a link that explains a bit how to do the serial communication that I am referring to.
https://wechoosethemoon.es/2011/07/21/arduino-matlab-simulink-controlador-pid/
Ahmet Ünser
Ahmet Ünser 2021년 5월 28일
편집: Ahmet Ünser 2021년 6월 9일
Hello everyone,
I'm working on the same project "Ball on Plate" right now. Does anyone have a solution for this problem?
I want to see the output of the touchscreen via simulink.
Would be grateful, if anyone could help me further.
Thank you in advance !

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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