can i use my laptop webcam to send data into arduino, and use the data acquired from the video to derive output from the interfaced arduino??
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
_
0 Kommentare
Antworten (3)
Rahul punk
am 8 Feb. 2019
if you understand communication with software and hardware then you can first connect aurdino to matlab then program as per your application, first test serial data tx and rx then its work then reprogram again and connect .
3 Kommentare
Walter Roberson
am 8 Feb. 2019
code generation is not supported for clear it appears , at least not for general variables .
code generation is not supported for snapshot of a usb webcam .
Rahul punk
am 8 Feb. 2019
syntax read carefully and find just go to help and search syntax example.
0 Kommentare
Walter Roberson
am 8 Feb. 2019
You need to understand that you are not creating one program: you are creating one program for the host and one program for the arduino.
For the arduino you have several options:
- develop C or C++ code separately using your favourite IDE
- develop a Simulink model and Deploy to Target making use of Arduino hardware support already available at no extra cost
- develop MATLAB code and use MATLAB Coder product to generate generic C or C++ code . No hardware specific support is available . Very limited hardware input output support . Does not know anything about Arduino or ARM.
- develop MATLAB code and use MATLAB Coder and Embedded Coder to generate more optimized code. Knows more about ARM but not about Arduino
For the host side you have several options:
- develop code that is outside MATLAB to do the video work and talk to the Arduino
- run a live MATLAB session with MATLAB code that uses serial (usb) or Bluetooth or zigbee or TCP to communicate with the Arduino
- develop a simulink model that uses generic blocks or Arduino specific blocks to talk to the arduino "live"
- simulink again , with Simulink Coder or Simulink Real Time to generate executables that talks to the arduino
- MATLAB Compiler to compile MATLAB code to an executable . This can use snapshot or getsnapshot
- MATLAB Coder to generate C or C++ that can be built into an executable . no support for snapshot or getsnapshot
0 Kommentare
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!