GT ECE 4180 Lab Team - Raj Madisetti and Arjun Sonti

Dependencies:   mbed Servo Motordriver X_NUCLEO_53L0A1 HC_SR04_Ultrasonic_Library

Remote Control Car

Georgia Tech ECE 4180 Embedded Systems Design Final Project

Team Members

Raj Madisetti Arjun Sonti

Files at this revision

API Documentation at this revision

Comitter:
rmadisetti3
Date:
Sun Nov 15 22:18:34 2020 +0000
Child:
1:1c1ad0c1c260
Commit message:
initial commit;

Changed in this revision

Motordriver.lib Show annotated file Show diff for this revision Revisions of this file
Servo.lib Show annotated file Show diff for this revision Revisions of this file
X_NUCLEO_53L0A1.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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Motordriver.lib	Sun Nov 15 22:18:34 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/littlexc/code/Motordriver/#3110b9209d3c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Servo.lib	Sun Nov 15 22:18:34 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/simon/code/Servo/#36b69a7ced07
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/X_NUCLEO_53L0A1.lib	Sun Nov 15 22:18:34 2020 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/ST/code/X_NUCLEO_53L0A1/#27d3d95c8593
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Nov 15 22:18:34 2020 +0000
@@ -0,0 +1,50 @@
+#include "mbed.h"
+#include "XNucleo53L0A1.h"
+#include "Servo.h"
+#include "motordriver.h"
+#include <stdio.h>
+//Serial pc(USBTX,USBRX);
+//DigitalOut shdn(p26);
+DigitalOut myled(LED1);      
+
+//#define VL53L0_I2C_SDA   p28
+//#define VL53L0_I2C_SCL   p27
+
+//static XNucleo53L0A1 *board=NULL;
+Motor M(p21, p22, p23, 1); // pwm, fwd, rev, can brake 
+Servo myservo(p24);
+
+
+int main() {
+//    int status;
+//    uint32_t distance;
+//    DevI2C *device_i2c = new DevI2C(VL53L0_I2C_SDA, VL53L0_I2C_SCL);
+//    /* creates the 53L0A1 expansion board singleton obj */
+//    board = XNucleo53L0A1::instance(device_i2c, A2, D8, D2);
+//    shdn = 0; //must reset sensor for an mbed reset to work
+//    wait(0.1);
+//    shdn = 1;
+//    wait(0.1);
+//    /* init the 53L0A1 board with default values */
+//    status = board->init_board();
+//    while (status) {
+//        pc.printf("Failed to init board! \r\n");
+//        status = board->init_board();
+//    }
+//    //loop taking and printing distance
+//    while (1) {
+//        status = board->sensor_centre->get_distance(&distance);
+//        if (status == VL53L0X_ERROR_NONE) {
+//            pc.printf("D=%ld mm\r\n", distance);
+//        }
+//    }
+    for (float s= -1.0; s < 1.0 ; s += 0.01) {
+       M.speed(s); 
+       wait(0.02);
+    }
+    
+    for(float p=0; p<1.0; p += 0.1) {
+        myservo = p;
+        wait(0.2);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Nov 15 22:18:34 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file