How I can read data from VL53L0X in simulink?
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Héctor Maestre
am 4 Mär. 2019
Kommentiert: Ansari86
am 19 Mai 2022
Hi.
I am trying to read the distance data of a VL53L0X sensor in simulink (I2C).
I successfully got to read the data in the workspace with the Adafruit library (https://github.com/sandorcourane/matlab-vl53l0x). However, I need to work in simulink because I want to do a PID and PWM to control a servo.
what is the best way to get the sensor data in simulink?
I thought to take the data from the workspace to simulink with the block 'from workspace', but I realized that I can not connect to the arduino board from the workspace of matlab and simulink at the same time.
I am using R2017a
Thank you in advance!
3 Kommentare
Ansari86
am 19 Mai 2022
Hi!
How did you add the library (https://github.com/sandorcourane/matlab-vl53l0x) succesfully, for me it shows that the library is not added via addpath command.
Thanks in advance,
Yasmin
Akzeptierte Antwort
Madhu Govindarajan
am 4 Mär. 2019
Bearbeitet: madhan ravi
am 5 Mär. 2019
I would recommend creating your own block using the techniques described in this video - https://www.youtube.com/watch?v=qoj8Pa2wi0A
1 Kommentar
Madhu Govindarajan
am 5 Mär. 2019
If you end up creating your own block, I would like to request you to contribute the files to MATLAB File Exchange so that others can benefit from your work.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!