Difference between revisions of "F17: Optimus"
Proj user5 (talk | contribs) (→Schedule) |
Proj user5 (talk | contribs) (→Schedule) |
||
Line 139: | Line 139: | ||
| | | | ||
* <font color="orange"> Major Feature: Implement maneuvering in Master controller <br></font> | * <font color="orange"> Major Feature: Implement maneuvering in Master controller <br></font> | ||
+ | |||
** <font color="blue"> Implement maneuvering algorithm to drive steering angle of the servo<br></font> | ** <font color="blue"> Implement maneuvering algorithm to drive steering angle of the servo<br></font> | ||
** <font color="blue"> Implement maneuvering algorithm to control ESC speed <br></font> | ** <font color="blue"> Implement maneuvering algorithm to control ESC speed <br></font> | ||
Line 159: | Line 160: | ||
| | | | ||
* <font color="orange"> Major Feature: Implemented maneuvering in Master-Geo controller <br></font> | * <font color="orange"> Major Feature: Implemented maneuvering in Master-Geo controller <br></font> | ||
− | * <font color="orange"> Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode <br></font> | + | * <font color="orange"> Major Feature: Implemented Basic Obstacle Avoidance in Free-run mode <br></font> |
+ | |||
** <font color="blue"> Implement maneuvering algorithm in android app is moved to next week schedule<br></font> | ** <font color="blue"> Implement maneuvering algorithm in android app is moved to next week schedule<br></font> | ||
** <font color="blue"> Implemented maneuvering algorithm in Master to drive steering angle of the servo<br></font> | ** <font color="blue"> Implemented maneuvering algorithm in Master to drive steering angle of the servo<br></font> | ||
** <font color="blue"> Implement maneuvering algorithm in Master to control ESC speed <br></font> | ** <font color="blue"> Implement maneuvering algorithm in Master to control ESC speed <br></font> | ||
+ | ** <font color="blue"> Unit Testing obstacle avoidance algorithm <br></font> | ||
** <font color="clouds">Tested and validated the sensor data by plotting graphs in an EXCEL sheet.<br></font> | ** <font color="clouds">Tested and validated the sensor data by plotting graphs in an EXCEL sheet.<br></font> | ||
** <font color="clouds">Sending the obstacle information and heartbeat over CAN.<br></font> | ** <font color="clouds">Sending the obstacle information and heartbeat over CAN.<br></font> | ||
Line 185: | Line 188: | ||
** <font color="purple">Collect mock checkpoints using the Android Data Collector application<br></font> | ** <font color="purple">Collect mock checkpoints using the Android Data Collector application<br></font> | ||
** <font color="purple">Collect mock checkpoints using the GEO module and compare for any discrepancies<br></font> | ** <font color="purple">Collect mock checkpoints using the GEO module and compare for any discrepancies<br></font> | ||
− | |||
− | |||
** <font color="clouds">Identify I/O on-board Display information; Currenly identified are documented below: <br></font> | ** <font color="clouds">Identify I/O on-board Display information; Currenly identified are documented below: <br></font> | ||
** <font color="clouds">Health status like GPS Lock status, etc. <br></font> | ** <font color="clouds">Health status like GPS Lock status, etc. <br></font> | ||
Line 192: | Line 193: | ||
** <font color="clouds">Display bluetooth pairing status<br></font> | ** <font color="clouds">Display bluetooth pairing status<br></font> | ||
** <font color="teal">Test on-board I/O module for bluetooth pairing status<br></font> | ** <font color="teal">Test on-board I/O module for bluetooth pairing status<br></font> | ||
− | |||
** <font color="red">In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware<br></font> | ** <font color="red">In case RPM installation/usage fail, Identify new mechanism for feedback and order components; Update PCB as well to include new hardware<br></font> | ||
** <font color="red">Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller<br></font> | ** <font color="red">Implement simple feature additions on steer control to handle reverse; basically steering rear-left and rear-right has to be practically implemented on motor/drive controller<br></font> | ||
− | |||
** <font color="blue">Receive GEO Controller's Turning-angle message and compute target steer <br></font> | ** <font color="blue">Receive GEO Controller's Turning-angle message and compute target steer <br></font> | ||
** <font color="blue">Use GEO Controller's distance to next-checkpoint information to compute target speed<br></font> | ** <font color="blue">Use GEO Controller's distance to next-checkpoint information to compute target speed<br></font> | ||
** <font color="teal">Mock checkpoint navigation testing using different possible obstacle heights and forms possible<br></font> | ** <font color="teal">Mock checkpoint navigation testing using different possible obstacle heights and forms possible<br></font> | ||
− | |||
** <font color="redbrick">Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map<br></font> | ** <font color="redbrick">Identify advertisement messages on the DBC file and add documentation in Wiki; Currently identified advertisements: a) current GEO location, b) SENSOR radar map<br></font> | ||
− | |||
** <font color="green">Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)<br></font> | ** <font color="green">Shall define the BLE Controller to android message structure and message generation-intervals (classify on-demand advertisements and periodic advertisements)<br></font> | ||
** <font color="green">Implement marker for current location display - which is an on-demand advertisement<br></font> | ** <font color="green">Implement marker for current location display - which is an on-demand advertisement<br></font> | ||
Line 214: | Line 211: | ||
** <font color="blue">Implemented interface method to receive GEO Controller's Turning-angle message and set target steer <br></font> | ** <font color="blue">Implemented interface method to receive GEO Controller's Turning-angle message and set target steer <br></font> | ||
** <font color="blue">Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design<br></font> | ** <font color="blue">Target speed is not changed between checkpoints.So geo feedback for distance to destination is not used in design<br></font> | ||
+ | ** <font color="blue">Destination Reached flag is tracked to stop the car on reaching destination <br></font> | ||
+ | ** <font color="blue">Checkpoint Id CAN signal is processed by Master to start the car once destination is selected <br></font> | ||
** <font color="green"> Android:Implemented Marker for current position Display.<br></font> | ** <font color="green"> Android:Implemented Marker for current position Display.<br></font> | ||
** <font color="green"> Android:User entry for setting up destination on MAP done.<br></font> | ** <font color="green"> Android:User entry for setting up destination on MAP done.<br></font> | ||
Line 233: | Line 232: | ||
** <font color="purple">Advertise distance to the next checkpoint (again using Haversine's algorithm)<br></font> | ** <font color="purple">Advertise distance to the next checkpoint (again using Haversine's algorithm)<br></font> | ||
** <font color="purple">Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller<br></font> | ** <font color="purple">Save the proper checkpoints for one route (Clark's to SU) to SDCARD on GEO Controller<br></font> | ||
+ | ** <font color="blue"> Implement system start/stop triggers from different use cases <br></font> | ||
+ | ** <font color="blue"> Turning angle offset of -10,10 is added to take right / left turn <br></font> | ||
** <font color="clouds">Implement the battery-status DBC Message advertisement <br></font> | ** <font color="clouds">Implement the battery-status DBC Message advertisement <br></font> | ||
** <font color="clouds">Indicate checkpoint proximity using backlight indicators<br></font> | ** <font color="clouds">Indicate checkpoint proximity using backlight indicators<br></font> | ||
Line 243: | Line 244: | ||
** <font color="red">Finalize feedback algorithm and fine-tuning<br></font> | ** <font color="red">Finalize feedback algorithm and fine-tuning<br></font> | ||
| | | | ||
− | *<font color="purple">Implemented mock data from file to compute: a) Heading b) Bearing -> used Haversine's algorithm to compute turning angle<br></font> | + | * <font color="orange"> Major Feature: Implemented maneuvering with Android app supplied GEO checkpoints with on-board I/O <br></font> |
− | ** <font color="purple">Advertised distance to the next checkpoint (again using Haversine's algorithm)<br></font> | + | |
− | | | + | ** <font color="purple">[Geo:] Implemented mock data from file to compute: a) Heading b) Bearing -> used Haversine's algorithm to compute turning angle<br> </font> |
+ | ** <font color="purple">[Geo:] Advertised distance to the next checkpoint (again using Haversine's algorithm)<br></font> | ||
+ | ** <font color="purple">[Geo:] Saving the checkpoints in SDCARD on GEO Controller<br></font> | ||
+ | ** <font color="clouds"> battery-status is optional feature. Planning for later <br></font> | ||
+ | ** <font color="clouds"> Indicate checkpoint proximity using backlight indicators<br></font> | ||
+ | ** <font color="clouds"> [BLE:] Created CAN messages for Telemetry data from all modules to BLe to send to Android <br></font> | ||
+ | ** <font color="clouds"> [BLE:] Received Telemetry messages are transmitted to Android App <br></font> | ||
+ | ** <font color="clouds"> [Android I/O:] Android app views created for visualizing Telemetry data <br></font> | ||
+ | ** <font color="teal"> Test and validate success/fail cases for on-board I/O display information <br></font> | ||
+ | |||
+ | ** <font color="red"> Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism<br></font> | ||
+ | ** <font color="red">Finalize feedback algorithm and fine-tuning<br></font> | ||
+ | | Complete. | ||
|- | |- | ||
! scope="row"| 8 | ! scope="row"| 8 | ||
Line 258: | Line 271: | ||
** <font color="teal">Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions<br></font> | ** <font color="teal">Test achievable target speeds with different possible obstacle heights and forms possible, and ground conditions<br></font> | ||
| | | | ||
− | *<font color="green">[Android I/O:] Sensor obstacle LIDAR information has been updated on the app<br></font> | + | * <font color="orange"> Major Feature: Completed maneuvering implementation with Android app <br></font> |
+ | ** <font color="green">[Android I/O:] Sensor obstacle LIDAR information has been updated on the app<br></font> | ||
** <font color="green">[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. <br></font> | ** <font color="green">[Android I/O:] Dynamic update of Car's current location and intermittent checkpoints implemented. <br></font> | ||
** <font color="green">[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. <br></font> | ** <font color="green">[Android I/O:] Health information from BLE Controller, namely GPS lock status, and motor speed has been updated on the Dashboard of the app. <br></font> | ||
− | | | + | ** <font color="green">[Android I/O:] Completed BT Auto connect implementation and re-connection on disconnection.<br></font> |
+ | | Complete. | ||
|- | |- | ||
! scope="row"| 9 | ! scope="row"| 9 | ||
Line 271: | Line 286: | ||
** <font color="teal">Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms<br></font> | ** <font color="teal">Execute the test plan created above [Planned for 11/14]; Phase 2: Test all identified cases for GPS routes and obstacle forms<br></font> | ||
| | | | ||
− | * | + | * <font color="orange"> Major Feature: Full feature integration test <br></font> |
− | | | + | ** Integration testing with all controllers and Android App to select routes and send checkpoints from App to Ble. |
+ | | Complete. | ||
|- | |- | ||
! scope="row"| 10 | ! scope="row"| 10 | ||
Line 281: | Line 297: | ||
** <font color="teal">Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation<br></font> | ** <font color="teal">Execute the test plan created above [Planned for 11/14]; Phase 4: Test all identified cases for [Android I/O] validation<br></font> | ||
| | | | ||
− | * | + | * <font color="orange"> Major Feature: Full feature integration test <br></font> |
− | | | + | ** Integration testing with Android App with Debug view/Dash board with sensor and GPS data |
+ | | Complete | ||
|- | |- | ||
! scope="row"| 11 | ! scope="row"| 11 | ||
Line 290: | Line 307: | ||
** <font color="teal">Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)<br></font> | ** <font color="teal">Execute the test plan created above [Planned for 11/14]; Phase 5: Test all identified cases for desired Turbo mode(s)<br></font> | ||
* <font color="black"> Update Wiki Complete Report <br></font> | * <font color="black"> Update Wiki Complete Report <br></font> | ||
+ | | | ||
+ | * <font color="orange"> Major Feature: Full feature integration test <br></font> | ||
| | | | ||
* | * | ||
− | | | + | | On Track |
|-} | |-} | ||
Revision as of 02:32, 8 December 2017
Contents
Project Title
Optimus - Self Navigating R/C Car powered by SJOne(LPC1758) micro controller
Abstract
This section should be a couple lines to describe what your project does.
Objectives & Introduction
Show list of your objectives. This section includes the high level details of your project. You can write about the various sensors or peripherals you used to get your project completed.
Team Members & Responsibilities
- Master controller, QA
- Revathy
- Kripanand Jha
- GPS Controller
- Sneha
- Sarvesh
- Android App, Bluetooth/App Interface
- Parimal
- Motor Controller
- Rajul
- Unnikrishnan
- PCB Design
- Rajul
Schedule
Legend:
Major Feature milestone , CAN Master Controller , Sensor & IO Controller , Android Controller, Motor Controller , Geo , Testing, Ble controller, Team Goal
Week# | Date | Planned Task | Actual | Status | |
---|---|---|---|---|---|
1 | 9/23/2017 |
|
|
Complete. | |
2 | 9/30/2017 |
|
|
Complete | |
3 | 10/14/2017 |
|
|
Complete | |
4 | 10/21/2017 |
|
|
complete | |
5 | 10/28/2017 |
|
|
Complete | |
6 | 11/07/2017 |
|
|
Complete | |
7 | 11/14/2017 |
|
|
Complete. | |
8 | 11/21/2017 |
|
|
Complete. | |
9 | 11/28/2017 |
|
|
Complete. | |
10 | 12/5/2017 |
|
|
Complete | |
11 | 12/12/2017 |
|
|
|
On Track |
Item# | Part Description | Vendor | Qty | Cost |
---|---|---|---|---|
1 | SJ One Board (LPC 1758) | From Preet | 6 | $480 |
2 | [1] | Prof. Kaikai Liu provided | 1 | $0 |
3 | Accelerometer/Magnetometer LSM303 | Adafruit | 2 | $40.00 |
4 | Bluetooth Module | Sparkfun | 1 | $34.95 |
5 | CAN Transceivers | From ebay. | 15 | $51 |
6 | Battery Pack | From Sheldon Hobbist | 1 | $49.99 |
7 | RP Lidar | 5 | $400 | |
8 | LED $ Digit Display | From Preet | 1 | $0 |
9 | GPS Module | From Adafruit | 1 | $43.34 |
10 | General Components | From Amazon | - | $ |
11 | RPM Sensor | From traxxas | 1 | $20 |
12 | PCB | 1 | $10.66 | |
13 | Acrylic Board | From Amazon | 1 | $12.53 |
14 | PCAN dongle | From Preet | 1 | $0 |
15 | Power Bank | From Amazon | 1 | $41.50 |
16 | PCB Manufacturing | From PCB Way | 5 | $70 |
CAN Communication
System Nodes : MASTER , MOTOR , BLE , SENSOR , GEO
SNo. | Message ID | Message from Source Node | Receivers |
---|---|---|---|
Master Controller Message | |||
1 | 2 | System Start command to start motor | Motor |
2 | 17 | Target Speed-Steer Signal to Motor | Motor |
3 | 194 | Telemetry Message to Display it on Android | BLE |
Sensor Controller Message | |||
4 | 3 | Lidar Detections of obstacles in 360 degree grouped as sectors | Master,BLE |
5 | 36 | Heartbeat | Master |
Geo Controller Message | |||
4 | 195 | Compass, Destination Reached flag, Checkpoint id signals | Master,BLE |
5 | 4 | Turning Angle | Master,BLE |
5 | 4 | Heartbeat | Master |
Bluetooth Bridge Controller Message | |||
4 | 38 | Heartbeat | Master |
5 | 213 | Checkpoint Count from AndroidApp | Geo |
5 | 214 | Checkpoints(Lat,Long) from Android App | Geo |
DBC File
https://gitlab.com/optimus_prime/optimus/blob/master/_can_dbc/243.dbc
Design & Implementation
The design section can go over your hardware and software design. Organize this section using sub-sections that go over your design and implementation.
Hardware Interface
In this section, you can describe how your hardware communicates, such as which BUSes used. You can discuss your driver implementation here, such that the Software Design section is isolated to talk about high level workings rather than inner working of your project.
Discuss your hardware design here. Show detailed schematics, and the interface here.
Software Design
Show your software design. For example, if you are designing an MP3 Player, show the tasks that you are using, and what they are doing at a high level. Do not show the details of the code. For example, do not show exact code, but you may show psuedocode and fragments of code. Keep in mind that you are showing DESIGN of your software, not the inner workings of it.
Implementation
This section includes implementation, but again, not the details, just the high level. For example, you can list the steps it takes to communicate over a sensor, or the steps needed to write a page of memory onto SPI Flash. You can include sub-sections for each of your component implementation.
Testing & Technical Challenges
Testing the car out on the grounds was the prime responsibility of the team. Individual modules like Sensor (LiDAR), Motor (The ESC and Servo), GPS & Compass, the android application and the Bluetooth bridge were tested by respective team members. But, the most important problems are being found with the Testing we do with the integrated whole.
Include sub-sections that list out a problem and solution, such as:
Unit Test Cases
Discuss the major unit test cases.
Technical Challenges
Drive (Motor) Controller
ESC Calibration
We messed up the callibration on the ESC. "XL 5 had a long press option to calibrate the ESC, where the ESC shall: a) After long press, glow green and start taking PWM signals for neutral (1.5). b) Glow green once again where we shall feed in PWM signals for Forward (2ms). b) Glow green twice again where we shall feed in PWM signals for Reverse (1ms)." -We wrote code to calibrate using EXT-INT (EINT3) over P0.1 - switch to calibrate the ESC this way!
ESC Reverse
"The ESC was not activating reverse if we directly - as in the datasheet (no formal datasheet - only XL 5 forums - talked about 1ms pulse width at 50Hz for reverse). We figured out that Reverse is actually 3 steps: a) goNeutral() b) goReverse() c) goNeutral() d) goReverse()
Conclusion
Conclude your project here. You can recap your testing and problems. You should address the "so what" part here to indicate what you ultimately learnt from this project. How has this project increased your knowledge?
Project Video
Upload a video of your project and post the link here.
Project Source Code
References
Acknowledgement
Any acknowledgement that you may wish to provide can be included here.
References Used
List any references used in project.
Appendix
You can list the references you used.