Azzera filtri
Azzera filtri

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??

2 visualizzazioni (ultimi 30 giorni)
_

Risposte (3)

Rahul punk
Rahul punk il 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 Commenti
parth bir
parth bir il 8 Feb 2019
can you please elaborate on that!!
also, i ahve attached the image for the errors, is there any way to bypass these??prob.png
Walter Roberson
Walter Roberson il 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 .

Accedi per commentare.


Rahul punk
Rahul punk il 8 Feb 2019
syntax read carefully and find just go to help and search syntax example.

Walter Roberson
Walter Roberson il 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:
  1. develop C or C++ code separately using your favourite IDE
  2. develop a Simulink model and Deploy to Target making use of Arduino hardware support already available at no extra cost
  3. 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.
  4. 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:
  1. develop code that is outside MATLAB to do the video work and talk to the Arduino
  2. run a live MATLAB session with MATLAB code that uses serial (usb) or Bluetooth or zigbee or TCP to communicate with the Arduino
  3. develop a simulink model that uses generic blocks or Arduino specific blocks to talk to the arduino "live"
  4. simulink again , with Simulink Coder or Simulink Real Time to generate executables that talks to the arduino
  5. MATLAB Compiler to compile MATLAB code to an executable . This can use snapshot or getsnapshot
  6. MATLAB Coder to generate C or C++ that can be built into an executable . no support for snapshot or getsnapshot

Community Treasure Hunt

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

Start Hunting!

Translated by