LoginSignup
0
0

More than 5 years have passed since last update.

スロットル バイ ワイヤー

Last updated at Posted at 2016-01-11

概要

現在の車は、アクセルペダルとスロットルボディは、機械的でなく電気的につながっている。
arduino megaで電子スロットルモジュールを動かして見た。

動画

写真

MVC-007S.JPG

回路図

fit.JPG

サンプルコード

int a0;
int a1;
void setup()
{
    pinMode(3, OUTPUT);
    digitalWrite(3, HIGH);
}
void loop()
{
    a0 = analogRead(0);
    a1 = analogRead(1);
    if (a0 > a1)
    {
        digitalWrite(3, HIGH);
    }
    else
    {
        digitalWrite(3, LOW);
    }
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0