Download Accelo Remote Car APK latest version Free for Android
Version | 1.0 |
Update | 7 years ago |
Size | 1.58 MB (1,653,471 bytes) |
Developer | Kim Jonghyun |
Category | Apps, Education |
Package Name | appinventor.ai_jhkim3217.AcceloCar |
OS | 1.5 and up |
Accelo Remote Car APPLICATION description
아두이노 UNO로 제작된 장난감 자동차(RC Car)를 블루투스로 원격 조정하는 앱으로 스마폰 중력 가속도 센서(Accelerometer Sensor)의 x,y 축 기울기로 RC Car의 forward/backward/right/left/stop을 조정 합니다.
#define CW HIGH
#define CCW LOW
void setup()
{
pinMode(8,OUTPUT);
pinMode(9,OUTPUT);
pinMode(10,OUTPUT);
pinMode(11,OUTPUT);
pinMode(7,INPUT_PULLUP);
pinMode(6,INPUT_PULLUP);
pinMode(5,INPUT_PULLUP);
}
void loop()
{
int swState=digitalRead(7);
int swState1=digitalRead(6);
int swState2=digitalRead(5);
if(7==LOW)
{
digitalWrite(8,HIGH);
digitalWrite(10,LOW);
}
if(6==LOW)
{
digitalWrite(8,LOW);
digitalWrite(10,HIGH);
}
if(5==LOW)
{
digitalWrite(8,HIGH);
digitalWrite(10,HIGH);
}
else
{
digitalWrite(8,LOW);
digitalWrite(10,LOW);
}
}
void setMotor(int motorSpeed, boolean motorDir)
{
digitalWrite(8,motorDir);
digitalWrite(9,!motorDir);
digitalWrite(10,motorDir);
digitalWrite(11,!motorDir);
}
Arduino UNO with crafted toy car (RC Car) to your Bluetooth Remote Control for Smart phone apps by gravity acceleration sensor (Accelerometer Sensor) of the x, y-axis tilt by RC Car of forward / backward / right / left / stop adjustments you.
#define CW HIGH
#define CCW LOW
void setup ()
{
pinMode (8, OUTPUT);
pinMode (9, OUTPUT);
pinMode (10, OUTPUT);
pinMode (11, OUTPUT);
pinMode (7, INPUT_PULLUP);
pinMode (6, INPUT_PULLUP);
pinMode (5, INPUT_PULLUP);
}
void loop ()
{
int swState = digitalRead (7);
int swState1 = digitalRead (6);
int swState2 = digitalRead (5);
if (7 == LOW)
{
digitalWrite (8, HIGH);
digitalWrite (10, LOW);
}
if (6 == LOW)
{
digitalWrite (8, LOW);
digitalWrite (10, HIGH);
}
if (5 == LOW)
{
digitalWrite (8, HIGH);
digitalWrite (10, HIGH);
}
else
{
digitalWrite (8, LOW);
digitalWrite (10, LOW);
}
}
void setMotor (int motorSpeed, boolean motorDir)
{
digitalWrite (8, motorDir);
digitalWrite (! 9, motorDir);
digitalWrite (10, motorDir);
digitalWrite (! 11, motorDir);
}