Shop OBEX P1 Docs P2 Docs Learn Events
Interfacing Propeller with MATLAB — Parallax Forums

Interfacing Propeller with MATLAB

allan_melvinallan_melvin Posts: 16
edited 2009-11-23 19:19 in Propeller 1
Dear all,

I have planned to use propeller for my project. I need to have wireless communication between my board and the laptop in two way communication. The sensors I want to use is connected to the propeller board and the sensor values are sent to laptop for processing with MATLAB. Then, the processed value have to be sent back to the propeller for display in LCD. Is there any chances of such a process to be carried out using the propeller? Kindly advice.

-Allan-

Comments

  • FredBlaisFredBlais Posts: 380
    edited 2009-11-23 00:22
    Hi,· why not trying a bluetooth dongle on your PC,· and a blue smirf module on the propeller side (with full duplex serial driver from the obex)? It will all work like a serial link (search bluetooth spp)
    You can open a com port in MATLAB, look at the docs.

    If you want to see schematics of the bluesmirf, and example projects, just buy·· Making things talk·· by· Tom Igoe,·· it is my favourite electronic book, plus, at page 114, you can see a picture of the Ybox, a propeller based project [noparse]:)[/noparse]

    hope it helps...
  • DroneDrone Posts: 433
    edited 2009-11-23 15:34
    Hi Allan,

    There are many options for wireless data via the Propeller. Parallax.com has some devices and all should be supported in the Object Exchange if not via this Forum. I suggest you look at Parallax first. That said, there are a lot of wireless dongle/break-out type boards at the likes of SparkFun (Google it).

    Perhaps you can be more specific about what you are trying to do: range, data rate, full vs. half-duplex, RF environment, on-and-on. The best way this Forum can support you is for you to tell us with as much detail as possible what you are trying to achieve.

    As for MATLAB, that's something you're probably going to have to deal with separately unless someone has actually interfaces a PC with ANY wireless device. But there is a chance that there maybe someone here that has done that before. But this has nothing to do with the physical (and perhaps) link layer capabilities of MATLAB communicating with any device.

    Best Regards, David

    Post Edited (Drone) : 11/23/2009 3:40:35 PM GMT
  • allan_melvinallan_melvin Posts: 16
    edited 2009-11-23 16:40
    Hi all,

    Thank you for the useful information. My research is to detect the sound and vibration signals from the interior of the car using microphone and accelerometers. The sensors are controlled by the propeller. 3 microphones and 2 accelerometers are used. Once all the data from the 5 sensors are collected, the data will be sent to the Matlab via wireless communication for processing with neural networks. The neural network will give a index. The index value have to be returned to the propeller via wireless communication for display in LCD. These are the flow of the project.

    The range of the transmission is within 10 to 50 meters, fast data transmission, full duplex.

    Thank you.

    -Allan-
  • Graham StablerGraham Stabler Posts: 2,510
    edited 2009-11-23 19:19
    I think Fred pretty much has you covered:

    Serial out from Matlab:

    http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f92576.html

    Serial over bluetooth:

    http://www.bluetooth.com/Bluetooth/Technology/Works/SPP.htm

    Bluetooth to serial doohicky:

    http://www.sparkfun.com/commerce/product_info.php?products_id=582

    Thanks Fred, really enlightening , nice to know what is possible.

    Graham
Sign In or Register to comment.