【ラジコン自動運転】Donkeyの配線を確認するために・・回路図を探してみた【Raspberry Pi3】

スポンサーリンク
広告

Raspberry Pi 3 と Servo Shield の接続

サーボシールドはI2CでRaspberry Pi 3と接続するんですが、電源も接続します。その電源が、ラズパイ側は、3.3Vのピンと接続することになっています。

ひとつは、ラジコンのESC(モーターを回すアンプ)とサーボシールドが接続されると、ESCからBECで給電がかかるんだけど、いいのかな?っていうのと、普通FETサーボ以外だと5Vが普通なんで、サーボシールドの電源側は共通なのかな?っていう疑問と、Raspberry Pi側の3.3Vって受電できるの??っていうのが疑問となっています。

って組んじゃってから、調べてます(笑)

Raspberry Pi 3をピンヘッダーから給電するには?

Raspberry Pi 3.3 V GPIOとかで検索すると、

3v3 Power at Raspberry Pi GPIO Pinout
The comprehensive add-on boards & GPIO Pinout guide for the Raspberry Pi

これ、GPIOのピンを見れて便利なんですが、5Vも3.3Vも給電側のように書かれています。

ちなみに、GPIOのIN/OUTの電圧って3.3Vなんですね。

GPIO Electrical Specifications, Raspberry Pi Input and Output Pin Voltage and Current Capability
The Raspberry Pi provides general purpose digital input/output pins (called GPIO pins) that you can use for reading digital logic signals or for outputting digi...

中身は3.3V でGPUは1.8Vで動いているみたいですね。

Why do the Pi GPIO pins use/give 3.3V and not 5V?
I know for a long time that people should NOT put more than 3.3V on the GPIO pins. They also give out 3.3V when high. I did some research and it seems no one r...

Power inしては駄目という人と、それで動くよっていう人がいます。

Supply 3.3V via GPIO header (Pi3)
I need to power a Raspberry Pi 3 via its GPIO header: I have a beefy regulated PSU capable of providing stable 4.98V, which I planned to route to the 5V pins of...

これに、ヘッダーピンから電源供給できるか?っって書いてあります。

Raspberry Pi Power Limitations
There are very many, often contradictory, claims about the power requirements and limitations of the Pi. What are the exact requirements?

何やらできる出来ないというのが出てきて不安になって、回路図などを探してみました。

回路図はここにあります。

https://www.raspberrypi.org/documentation/hardware/raspberrypi/schematics/README.md

でもこれ見てもわかりにくいですが、PAM2306AYPKE という石を見てみると、これが5Vから3.3V と1.8Vを作っている石のように思えます。

調べてみるとステップダウンスイッチング・レギュレータのようですから、やはり5V給電しないと1.8V は出来ないので動かないような気がします。

Introducing the Raspberry Pi Model B+
This tutorial will give you a tour around the latest Raspberry Pi computer, detailing all changes and updates!

これも参考になりますね。HDMI用にH5Vという電流制限付きの5Vも作っているんですね。

ヘッダーピンとGPIOの石の回路図を参考に・・

GPIOは3.3V駆動なのですね。 5VのラインはPIN2とPIN4

これは、

ダイオードで逆流防止していますね。だからヘッダーピンの所が回路の中では5V系に繋がっててこれに繋げば給電できそうな感じです。

ここまでで、やっぱりなんとなく、配線変えた方が良さそうに思えてきます(笑)

ん・・?

Donkeyの説明書読んでると、USBバッテリーが必要って書いてある(笑)

ということは、BECからの給電じゃないのか?

Makeの記事の一番最後に、普通のラジコンの場合のことが乗ってるんですよね。

Build an Autonomous R/C Car with Raspberry Pi
Take a R/C car, Raspberry Pi, and some 3D-printed and laser-cut parts and assemble your vehicle. Then you'll be ready for the race track.

» An ESC with a BEC (battery elimination circuit) or UBEC makes integration much simpler. A BEC provides 0 and 5 volts from the ESC through the 3-wire cable, which can be used to power the servo shield. This is important because the servo shield does not get power from the Raspberry Pi by default.

重要ですってたって(笑)BECをきるESCが必要なのかな??

Donkey Carで使っているラジコンも、普通のラジコンでESCタイプのような気がするんだけどなぁ~

Amazon.com

ここをみると・・・

1/10th scale RC-style car: Donkey
  • Choose an ESC with a “UBEC” this will power your servo board connected to the raspberry pi, however will not power the raspberry pi.

って書いてある。Servo boardには供給できるけど、Rasberry Piには供給できないって。。

配線そのままで、USBから給電する。バッテリー共用しようとすると、5Vのレギュレータが必要ってことかな?

次に、サーボシールド(笑)

PCA9685 16ch12bitサーボドライバー

PCA9685 16-Channel 12-Bit PWM Servo Driver
PCA9685 16-Channel 12-Bit PWM Servo Driver can help a lot when there are insufficient PWM output pins for the MCU in your project. The only condition is that th...

写真を見る限り、これも5Vの電源がいる。

PCA9685自体のデータシートと、秋月の説明書を読んでみると回路図がのってて

なるほど。。PCA9685自体は3.3V で動いて、サーボの電源系だけ5Vなのか。。だからRaspberry Piの3.3Vのところとつなぐといいんだ。PCA9685自体は6VまでOKなので、ESCのBECで動かしてもいいように、ジャンパーがあって5Vと3.3Vをひっつけても動く。

でも、Raspberry Piと接続してつかうんだったら、Piの3.3Vから動かして、サーボの電源はESCからとったものにする方がよくて、ジャンパーをショートしちゃだめなんだな。

ふむふむ。。 3.3Vはつながるけど、このシールドに5Vがかかっても3.3Vのところには電圧がかからないから、Raspberry Piから給電をうけて、動いて、サーボの電源だけがBECからの給電で動くってことなんだな。。

わかった!

けど、電池か、5Vのレギュレターがいるなぁ。。マイクロUSBのコネクタもいるわぁ~(笑)

なるほど。。

コメントを残していただけるとありがたいです

コメント

  1. tom2rd より:

    メールしました

Loading Facebook Comments ...