110,000원
no | item | title | name | date | hit |
---|---|---|---|---|---|
27174 | [자율주행 프로젝트 : 4휠 스마트카] 아두이노 코딩교육 |
![]() |
hal9000 | 2024-06-24 | 11 |
26669 | [자율주행 프로젝트 : 4휠 스마트카] 아두이노 코딩교육 |
![]() |
김종호 | 2024-03-24 | 5 |
26664 | [자율주행 프로젝트 : 4휠 스마트카] 아두이노 코딩교육 |
![]() |
공과대전자 | 2024-03-21 | 2 |
26663 | [자율주행 프로젝트 : 4휠 스마트카] 아두이노 코딩교육 |
적외선 리모컨 작동을 안합니다. ![]() |
김영방 | 2024-03-21 | 433 |
26642 | [자율주행 프로젝트 : 4휠 스마트카] 아두이노 코딩교육 |
![]() |
김영웅 | 2024-03-14 | 8 |
digitalWrite(RightMotor_1_pin, HIGH);
digitalWrite(RightMotor_2_pin, LOW);
digitalWrite(LeftMotor_3_pin, HIGH);
digitalWrite(LeftMotor_4_pin, LOW);
이렇게 되어 있는 부분을
digitalWrite(RightMotor_1_pin, LOW);
digitalWrite(RightMotor_2_pin, HIGH);
digitalWrite(LeftMotor_3_pin, LOW);
digitalWrite(LeftMotor_4_pin, HIGH);
이런 식으로 HIGH, LOW를 역동작으로 변경해주시면 됩니다
'10_RC_CAR_Obstacle'의 경우
void motor_role(int R_motor, int L_motor, int Speed){
digitalWrite(RightMotor_1_pin, R_motor);
digitalWrite(RightMotor_2_pin, !R_motor);
digitalWrite(LeftMotor_3_pin, L_motor);
digitalWrite(LeftMotor_4_pin, !L_motor);
이런식으로 되어 있는데 !란 반대라는 말입니다
이를
void motor_role(int R_motor, int L_motor, int Speed){
digitalWrite(RightMotor_1_pin, !R_motor);
digitalWrite(RightMotor_2_pin, R_motor);
digitalWrite(LeftMotor_3_pin, !L_motor);
digitalWrite(LeftMotor_4_pin, L_motor);
이런 식으로 역으로 바꿔주면 손 쉽게 변경 가능합니다