--- title: 'Project Esctasy MK II' disqus: hackmd --- Project Esctasy MK II - SOAR Challenge === > #### This project is under the supervision of SOAR Project Manager Darth Noward. ### Project Member: - He Haolan - Ma Yuchen - Who again? ## Table of Contents [TOC] Assignments --- ```sequence Kevin->Assembly: Wiring & Base Noward ->Assembly: Clip Note over Noward: Arduino Function ``` > Detailed assignments are subject to change. Project Timeline --- ```mermaid gantt title Project Esctasy MK II section Hardware Designing and Sketching :2019-07-21, 7d Laser Cutting and Assembly :2019-07-29 , 8d section Software Writing Function :2019-07-27 , 5d Finalizing : 4d section Integration Assembly and software Tuning: 2019-08-06, 5d Improvement: 2019-08-09, 2d ``` > Real world schedule may subject to change. ## Initializing Stage A record of what we have done ahead of production. > 1. Form an overview vision and on the project regrading the objective. > 2. Address designs on individual details. > 3. Sketch the scheme based on design for laser cutting > 4. Meanwhile prepare raw software function for tuning and objective-oriented programming. > 5. Ready for assembly and software testing. Software Function --- > get reading from infrared sensor and store it in an array ```0= void read() { sensor_data[0] = digitalRead(sensor1); sensor_data[1] = digitalRead(sensor2); sensor_data[2] = digitalRead(sensor3); sensor_data[3] = digitalRead(sensor4); sensor_data[4] = digitalRead(sensor5); } ``` > Send command to motor, e.g. ```0= void forward(){ digitalWrite(in1,LOW); digitalWrite(in2,HIGH); digitalWrite(in3,LOW); digitalWrite(in4,HIGH); } ``` > Adjust the speed of motor by changing the value of the input variable. ```0= void change_speed(int speed_value){ //input value between 0 and 255 analogWrite(ena1, speed_value); analogWrite(ena2, speed_value); } ``` ## Additional Resources :::info - [Arduino Motor](https://howtomechatronics.com/tutorials/arduino/arduino-dc-motor-control-tutorial-l298n-pwm-h-bridge/) ::: - [Click to check out other project here!](http://darthnoward.com/robotic/Linorobot) ##### tags: `Documentation` `Project Esctasy` `SOAR Challenge 2019`