Shop OBEX P1 Docs P2 Docs Learn Events
Transmitting a signal from Matlab to Propeller Education Kit — Parallax Forums

Transmitting a signal from Matlab to Propeller Education Kit

lolobondlolobond Posts: 14
edited 2011-03-14 10:52 in Propeller 1
Hi, my project consists of transmitting a signal from matlab to a microcontroller... I am thinking of using the Propeller Education Kit Propstick... The signal is just whatever signal I can send from Matlab to make the microcontroller to start working. How can I do this? Is it possible with the Education kit or do I need something else?

Thank You

Comments

  • Mike GMike G Posts: 2,702
    edited 2011-03-14 08:50
    What do you mean, signal?

    Serial com? Sure no problem.
  • lolobondlolobond Posts: 14
    edited 2011-03-14 09:08
    Well if a condition in matlab is satisfied then I need to make the education propeller( via USB) turn a weather radar on. So the signal is whatever I can do to make to the education propeller know that it should turn on the radar. Any help is appreciated.
  • Mike GreenMike Green Posts: 23,101
    edited 2011-03-14 09:49
    The USB programming port on the Propstick provides a serial port that can be used for data when it's not used for programming. MatLab can send and receive serial data via the PC's serial port (including serial ports over USB ... like that on the Propstick). As far as the Propeller is concerned, you need to use any of several serial I/O drivers like FullDuplexSerial or Simple_Serial or the serial routines in BS2_Functions. Your MatLab program simply sends some character or bunch of characters to the Propstick. They can be any characters you want. You need a program on the Propstick that calls the receive routine in whatever I/O driver you use and checks the character(s) received to make sure they're the one(s) expected from MatLab. If so, the program has to turn on the radar, probably by making some I/O pin change state (from 0 to 1 or from 1 to 0). You might want to have two different characters, one for "turn on" and one for "turn off".
  • lolobondlolobond Posts: 14
    edited 2011-03-14 10:52
    Thank You very much! I am looking forward to receive the education kit so I can start working on it! At least now I have a lead as to where I am supposed to start...
Sign In or Register to comment.