Difference between revisions of "F17: Optimus"
Proj user5 (talk | contribs) (→Schedule) |
Proj user5 (talk | contribs) (→Schedule) |
||
Line 156: | Line 156: | ||
** <font color="purple">Get the code review done and do the testing after that <br></font> | ** <font color="purple">Get the code review done and do the testing after that <br></font> | ||
** <font color="purple">Worked on the Android app that will dump the checkpoints into a file <br></font> | ** <font color="purple">Worked on the Android app that will dump the checkpoints into a file <br></font> | ||
− | |||
** Finish PCB design and place order | ** Finish PCB design and place order | ||
| | | | ||
Line 166: | Line 165: | ||
** <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> | ||
− | ** <font color="clouds">LIDAR fully working and sending obstacle information.<br></font> | + | ** <font color="clouds">LIDAR fully working and sending obstacle information.<br></font> |
− | |||
− | |||
** <font color="CARROT"> Identified basic speeds, slow, normal, and turbo for forward and reverse <br></font> | ** <font color="CARROT"> Identified basic speeds, slow, normal, and turbo for forward and reverse <br></font> | ||
** <font color="CARROT"> Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor <br></font> | ** <font color="CARROT"> Interfaced the RPM sensor over GPIO and validated; but the clutch gear with magnet was far apart from the RPM Sensor <br></font> | ||
Line 178: | Line 175: | ||
** <font color="purple">Made the GPS and compass code modular and checked the functionaity after the changes <br></font> | ** <font color="purple">Made the GPS and compass code modular and checked the functionaity after the changes <br></font> | ||
** <font color="purple">Worked on the Android app that will dump the checkpoints into a file <br></font> | ** <font color="purple">Worked on the Android app that will dump the checkpoints into a file <br></font> | ||
+ | ** Completed PCB Design | ||
| Complete | | Complete | ||
|- | |- | ||
Line 213: | Line 211: | ||
** <font color="purple">Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle<br></font> | ** <font color="purple">Provided Mock checkpoints and used the heading and bearing angle logic to get the turning angle<br></font> | ||
** <font color="purple">Collected mock checkpoints and check for the error with different places<br></font> | ** <font color="purple">Collected mock checkpoints and check for the error with different places<br></font> | ||
− | |||
** <font color="clouds">Interfaced the Sparkfun Seven segment display with the SJOne Board.<br></font> | ** <font color="clouds">Interfaced the Sparkfun Seven segment display with the SJOne Board.<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">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> | ||
Line 228: | Line 224: | ||
** <font color="green"> Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.<br></font> | ** <font color="green"> Marking the checkpoints with HUE_BLUE color to do better tracking of the navigation.<br></font> | ||
** <font color="green">Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.<br></font> | ** <font color="green">Added multi state BT options and Added restrictions on buttons like NAV usage dependency on BT Connection, Powerup button dependency on NAV setup before actually powering the car.<br></font> | ||
− | | | + | |Complete |
|- | |- | ||
! scope="row"| 7 | ! scope="row"| 7 | ||
Line 237: | Line 233: | ||
** <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="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 244: | Line 239: | ||
** <font color="clouds"> [Android I/O:] Design Android app views for visualizing Diagnostic and I/O data <br></font> | ** <font color="clouds"> [Android I/O:] Design Android app views for visualizing Diagnostic and I/O data <br></font> | ||
** <font color="teal">Test and validate success/fail cases for on-board I/O display information(as defined above)<br></font> | ** <font color="teal">Test and validate success/fail cases for on-board I/O display information(as defined above)<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">Update PWM pulses to match MASTER's target speed with proper feedback from the identified feedback-mechanism<br></font> | ||
** <font color="red">Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation<br></font> | ** <font color="red">Identify PID constants kp, ki, kd and evaluate performance against the basic feedback implementation<br></font> | ||
Line 251: | Line 245: | ||
*<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="purple">Implemented mock data from file to compute: a) Heading b) Bearing -> used Haversine's algorithm to compute turning angle<br></font> | ||
** <font color="purple">Advertised distance to the next checkpoint (again using Haversine's algorithm)<br></font> | ** <font color="purple">Advertised distance to the next checkpoint (again using Haversine's algorithm)<br></font> | ||
− | |||
− | |||
| Planned. | | Planned. | ||
|- | |- |
Revision as of 20:41, 6 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 |
|
|
Planned. |
8 | 11/21/2017 |
|
|
Planned. |
9 | 11/28/2017 |
|
|
Planned. |
10 | 12/5/2017 |
|
|
Planned |
11 | 12/12/2017 |
|
|
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.