Hi, I am a complete beginner at using Arduino and would like some help/guidance on how to approach my particular project. I am trying to plot the path an Arduino controlled robot using data from an encoder attached to the motors and a digital compass wired to the Arduino. The block diagram below shows what the complete system is likely to look like:
My current plan is to create the real time plot using MATLAB because I know I can connect the Bluetooth module directly to MATLAB using the "bluetooth("HC-05", 1)" code and have found some forums that discuss how to plot data or similar projects.
The questions I'm trying to ask are:
How would I go about sending both the encoder data and the compass data to MATLAB?
Is it possible to connect two HC-05 modules to the same Arduino board if I plan to connect the
two of them to completely different devices (the motors of the robot will be controlled using an
android device via another HC-05 module)
This project is super complicated so any advice/help would be greatly appreciated
That problem is best solved one step at a time. Get each individual part of the project working, and make sure that you understand each one completely, before starting to add the pieces together.
If you are a beginner with Arduino, we strongly recommend that you work through the examples that come with Arduino (and on line tutorials if necessary) to learn the programming language and special features of the Arduino development environment.
Thanks for replying, i didn't even know there were tutorials to get yourself familiarised with the board. i'll take a look to better understand how the coding works and go through some examples after that.
You will need to have each on its own serial port. Except when using a Mega, this means you must have the Bluetooth on serial (pins 0,1) disconnected while you upload your programme.