comunicacion bluetooth Sergio Burbano Daniel Paez Alejandro Pardo

Dependencies:   Servo SoftSerial mbed

Files at this revision

API Documentation at this revision

Comitter:
grupo3
Date:
Sat Sep 30 21:15:24 2017 +0000
Commit message:
Sergio Burbano ; Daniel Paez; Alejandro Pardo;

Changed in this revision

Servo.lib Show annotated file Show diff for this revision Revisions of this file
SoftSerial.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r d647d9d7d942 Servo.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Servo.lib	Sat Sep 30 21:15:24 2017 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/grupo3/code/Servo/#55b3b372a598
diff -r 000000000000 -r d647d9d7d942 SoftSerial.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SoftSerial.lib	Sat Sep 30 21:15:24 2017 +0000
@@ -0,0 +1,1 @@
+http://os.mbed.com/users/Sissors/code/SoftSerial/#a0029614de72
diff -r 000000000000 -r d647d9d7d942 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Sep 30 21:15:24 2017 +0000
@@ -0,0 +1,38 @@
+#include "mbed.h"
+#include "SoftSerial.h"
+#include "Servo.h"
+
+Servo myservo(D7);
+Serial pc(USBTX,USBRX);
+SoftSerial bt(D2,D3);
+PwmOut motor(D8);
+int main()
+{
+    int cord[4]={};
+
+pc.printf("hola mundo\r\n");
+char recive;
+while(1)
+{
+
+    if (bt.readable()>0) {
+        for(int i=0; i<2; i++) {
+
+            recive=bt.getc();
+            cord[i]=recive;
+            myservo = recive*0.05263;
+            }
+         myservo = cord[0]*0.052;
+        motor=cord[1]*0.05263;
+        pc.printf("cordenada x:%D\n\r",cord[0]);
+
+        pc.printf("cordenada y:%D\n\r",cord[1]);
+        
+
+    
+    
+            }   
+
+        }
+    }
+    
\ No newline at end of file
diff -r 000000000000 -r d647d9d7d942 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Sep 30 21:15:24 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed/builds/675da3299148
\ No newline at end of file