RC Control using Bluetooth

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 7

  • @innocentsulaman71
    @innocentsulaman71 6 лет назад

    Is this diagram is correct please answer me

    • @0033mer
      @0033mer  6 лет назад

      Yes ... The wiring diagram shown in the video is correct.

  • @احمدجودة-د8ي
    @احمدجودة-د8ي 6 лет назад

    thank you....please i need the code

    • @0033mer
      @0033mer  6 лет назад

      The code is written in FORTH.
      The Android app sends ascii characters for each direction command.
      "F" for Forward, "B" for Back ...etc.
      Your code has to detect these direction characters and turn on the desired GPIO pin.
      : RC.car
      Init
      103 $C4 ! \ 9600 baud
      BEGIN
      Key dup
      70 = \ F
      IF Forward THEN dup
      66 = \ B
      IF Back THEN dup
      76 = \ L
      IF Left THEN dup
      82 = \ R
      IF Right THEN dup
      83 = \ S
      IF Stop THEN dup
      73 = \ I
      IF ForRight THEN dup
      71 = \ G
      IF ForLeft THEN dup
      74 = \ J
      IF BackRight THEN dup
      72 = \ H
      IF BackLeft THEN
      27 = \ esc
      UNTIL ;

  • @innocentsulaman71
    @innocentsulaman71 6 лет назад

    Thanks brother if I need help I will call you