Borrar filtros
Borrar filtros

Wireless Matlab communications for arduino project

12 visualizaciones (últimos 30 días)
Kelton Christopher
Kelton Christopher el 20 de Oct. de 2021
Respondida: Chetan el 9 de Mayo de 2024
Hello,
I am being tasked with a project that would like me to take a Matlab script and wirelessly transfer the data to an arduino uno. I have been successful in using a serial connection but I would like to create something that would be very similar but I would not have to constantly have the usb cable connected. The project I am doing is a robot that must follow a black line using photoresistor (so that data must be transmitted to the computer) and then it must move servos(data must be transmitted to the arduino). I have a program already written up for this but I would like it to run exactly the same without the serial connection. Should I use a Wifi shield or bluetooth connection? and any recommendations as to a brand, and or tutorial material?

Respuestas (1)

Chetan
Chetan el 9 de Mayo de 2024
It appears you are looking to wirelessly transmit data between MATLAB and an Arduino Uno for a line-following robot project, with WiFi and Bluetooth as potential communication methods.
Here's a brief comparison of both options:
  • WiFi offers higher data transmission speeds and greater range but at the expense of increased power consumption. For this method, you might consider using an Arduino WiFi Shield or an ESP8266 module.
  • Bluetooth provides an easier setup, lower power usage, and is well-suited for short-distance communication. The HC-05 or HC-06 modules are recommended choices.
Based on these considerations, you can choose as follows:
  • If simplicity and power efficiency are your priorities, Bluetooth is advisable.
  • For extended range and faster data transmission, WiFi is the better option.
For further details, please refer to the MathWorks Documentation:
Thanks,
Chetan

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by