HomeMadeGarbage Loading

Blynk-controlled Stag Beetle

お父ちゃん  2017.5.21 
ホーム
電子工作
Raspberry Pi
IOT
音楽
Home > 電子工作 > Blynk-controlled Stag Beetle
すき 0
うんこ 0

I got a broken old stag beetle toy with a wired remote control. I modified it so that it can be operated remotely from a smartphone with BLE!

 

Constitution

Using BLE equipped microcomputer Adafruit Feather 32u4 Bluefruit LE and motor driver to control stag beetle from Blynk application of smartphone.

Parts

  • BLE-equipped microcomputer Adafruit Feather 32u4 bluefruit LE 

     
  • Motor driver drv8835

     
  • Li-ion polymer battery 400mAh

Assembly

  1. Cutting wire

    There were four enameled wires in gold, green, red, and blue inside the wiring. There were two motors in the stag beetle toy.

    Motor 1 (Gold – Blue) and Motor 2 (Red – Green) operate as follows:

      Forward rotation Reversed
    Motor 1 Turning
     Advance
    Motors 2 Scissors
     Head Swing

     

  2. Wiring / Connection of microcontroller and motor driver

    The mode pin of the motor driver is connected to GND.

     http://akizukidenshi.com/download/ds/akizuki/AE-DRV8835-Ss.pdf

  3. Making scissors
    I made scissors with plastic board because it got broken.

Blynk settings

  1. Install the Blynk app on your smartphone
     
  2. Create a new project. Select the Arduino UNO in hardware, because there is no Adafruit Feather 32u4 BLE yet. AUTH TOKEN will make a note so you use at the time of Arduino code generation (send mail).

     

  3. Place the BLE widget and the button widgets.

     
     
  4. Button widgets setting. Set each of the four Button Widgets OUTPUT to Virtual Pins V0 – V3.

Arduino Program

Latest library is located in the following: 
 https://github.com/blynkkk/blynk-library.

The Adafruit Feather 32u4 Bluefruit LE is used here, so the Arduino code is generated in reference to the following:

[Example] -> [Blynk] -> [Boards_BLE] -> [Adafruit_Feather_32u4_BLE]

Blynk ble connection

Click to set the BLE Wejit for the Blynk project.

Click “Connect BLE Device” and click OK to connect when “Adafruit bluefruit LE” is displayed.

 

Operating

 

The #ムシキング toy that I got in the neighborhood vegetables and the remote control #blynk

Posts shared by Home made garbage (@homemadegarbage)-

 

#ムシキング Remodeling #blynk

Posts shared by Home made garbage (@homemadegarbage)-

 

Stag Remote!#blynk #ムシキング

Posts shared by Home made garbage (@homemadegarbage)-

The movement is quite real!

コメントはこちらから

メールアドレスが公開されることはありません。コメントのみでもOKです。

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください