Spin for easybluethooth?
Kris Cardoen
Posts: 46
Hy
I want to use my easy bluetooth module (from my basic stamp) on to my propeller board of education.
I have connected the power, and from the led I can confirm it receives signals.
I have connected RX to pin 0 en TX to pin1 op de propeller board of education.
How do I make it run? I tried to find info about this topic, but the info is very confusing.
There objects but they where written for USB and I can't seem to find my way. There are also a lot of different objects ....
I just want a very simple example.
Connect to the BT device (rx= pin1 Tx=pin2 baudrate=9600)
Thx for feedback
Regards,
Kris
I want to use my easy bluetooth module (from my basic stamp) on to my propeller board of education.
I have connected the power, and from the led I can confirm it receives signals.
I have connected RX to pin 0 en TX to pin1 op de propeller board of education.
How do I make it run? I tried to find info about this topic, but the info is very confusing.
There objects but they where written for USB and I can't seem to find my way. There are also a lot of different objects ....
I just want a very simple example.
Connect to the BT device (rx= pin1 Tx=pin2 baudrate=9600)
Thx for feedback
Regards,
Kris
Comments
But if I don't specify my Rx/Tx port of the bluetooth device connected, it will just try to use the standard terminal?
Regards,
Kris
The Start method called the StartRxTx with these arguments (31, 30, 0, baudrate) so it defaults to pins 30 (tx pin) and 31 (rxpin). So you would call StartRxTx with the pins you have the Bluetooth module connected to.
I have tested the following code? but it did not work. Until I switched Rx and Tx.
I dont understand completely why but it works fine now!!!!!
Thank you very much for your help!!!
Regards,
OBJ
system : "Propeller Board of Education"
pst : "Parallax Serial Terminal Plus"
time : "Timing"
pin : "Input Output Pins"
VAR
long a
PUB Go
system.Clock(80_000_000)
pst.StartRxTx(0, 1, 0,9600)
repeat
pin.High(2)
time.Pause(100)
pin.Low(2)
time.Pause(100)
pst.Str(String("test terminal "))