Borrar filtros
Borrar filtros

Simulink Delay Input Signal

3 visualizaciones (últimos 30 días)
Daniel Senst
Daniel Senst el 11 de Feb. de 2020
Respondida: Siriniharika Katukam el 21 de Feb. de 2020
Hello,
I have to work with an Lego EV3 to built a Color-sorting Robot. Therefore I have to use a Color Sensor, whose Output can range from 0 to 7. In difference cases, the Robotarm should rotate for different distances (which I already managed to do). The Problem is, the Sensor detects colors within a sample time of 0.1s. Therefore, if the Robotarm takes away the brick, the sensor detecs another color and activates a subsystem which places the arm back into the starting position which only should be done when the brick has been dropped off.
So the question becomes, is there a possibility to Delay/Hold that output of the Color Sensor for, like, 5 Seconds, use that for those 5s and then refresh?
Thanks

Respuestas (1)

Siriniharika Katukam
Siriniharika Katukam el 21 de Feb. de 2020
Hi,
To add delay to the output of color sensor, you may add a "Transport Delay" block, setting the time delay as fixed or variable depending upon the distances the robot-arm has to move. This time gap gives a way to pause the color sensor from passing the value. More reference to "Transport Delay" block is given in the documentation link:

Categorías

Más información sobre LEGO MINDSTORMS EV3 Hardware en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by