RCBControllerでモータを制御します。うおーるぼっとも動かせました。

Dependencies:   BLE_API_Native_IRC TB6612FNG2 mbed

Fork of BLE_RCBController by Junichi Katsu

  • 古いBLEライブラリを使っているのでプラットフォームは”Nordic nRF51822”を選択してください。
  • ライブラリ類はUpdateしないでください。コンパイルエラーになります。

うまく接続できない時は、iPhone/iPadのBluetoothをOFF->ONしてキャッシュをクリアしてみてください。

RCBControllerでうおーるぼっとを操縦する例 /media/uploads/robo8080/img_1671.jpg

RCBControllerでの操縦は次の4種類あります。 それぞれうおーるぼっとの動きが異なりますので試してみてください。

  • 左十字ボタン
  • 左のみアナログ
  • 右のみアナログ
  • 両方アナログ

うおーるぼっと(LPC1768のソケット)とHRM1017の接続はこれです。

LPC1768 ー HRM1017

p11 ーーー P0_0

p12 ーーー P0_1

p13 ーーー P0_28

p14 ーーー P0_29

p21 ーーー P0_30

p22 ーーー P0_25

GND ーーー GND

HRM1017の電源はうおーるぼっとのUSBコネクタからとります。 /media/uploads/robo8080/img_1674.jpg

Committer:
jksoft
Date:
Thu Jul 10 14:21:52 2014 +0000
Revision:
0:8c643bfe55b7
??

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:8c643bfe55b7 1 /* mbed Microcontroller Library
jksoft 0:8c643bfe55b7 2 * Copyright (c) 2006-2013 ARM Limited
jksoft 0:8c643bfe55b7 3 *
jksoft 0:8c643bfe55b7 4 * Licensed under the Apache License, Version 2.0 (the "License");
jksoft 0:8c643bfe55b7 5 * you may not use this file except in compliance with the License.
jksoft 0:8c643bfe55b7 6 * You may obtain a copy of the License at
jksoft 0:8c643bfe55b7 7 *
jksoft 0:8c643bfe55b7 8 * http://www.apache.org/licenses/LICENSE-2.0
jksoft 0:8c643bfe55b7 9 *
jksoft 0:8c643bfe55b7 10 * Unless required by applicable law or agreed to in writing, software
jksoft 0:8c643bfe55b7 11 * distributed under the License is distributed on an "AS IS" BASIS,
jksoft 0:8c643bfe55b7 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
jksoft 0:8c643bfe55b7 13 * See the License for the specific language governing permissions and
jksoft 0:8c643bfe55b7 14 * limitations under the License.
jksoft 0:8c643bfe55b7 15 */
jksoft 0:8c643bfe55b7 16
jksoft 0:8c643bfe55b7 17 #ifndef __BLE_COMMON_H__
jksoft 0:8c643bfe55b7 18 #define __BLE_COMMON_H__
jksoft 0:8c643bfe55b7 19
jksoft 0:8c643bfe55b7 20 #define NRF51
jksoft 0:8c643bfe55b7 21 #define DEBUG_NRF_USER
jksoft 0:8c643bfe55b7 22 #define BLE_STACK_SUPPORT_REQD
jksoft 0:8c643bfe55b7 23 #define BOARD_PCA10001
jksoft 0:8c643bfe55b7 24
jksoft 0:8c643bfe55b7 25 #ifdef __cplusplus
jksoft 0:8c643bfe55b7 26 extern "C" {
jksoft 0:8c643bfe55b7 27 #endif
jksoft 0:8c643bfe55b7 28
jksoft 0:8c643bfe55b7 29 #include <stdint.h>
jksoft 0:8c643bfe55b7 30
jksoft 0:8c643bfe55b7 31 /**************************************************************************/
jksoft 0:8c643bfe55b7 32 /*!
jksoft 0:8c643bfe55b7 33 \brief Error codes for the BLE API
jksoft 0:8c643bfe55b7 34 */
jksoft 0:8c643bfe55b7 35 /**************************************************************************/
jksoft 0:8c643bfe55b7 36 typedef enum ble_error_e
jksoft 0:8c643bfe55b7 37 {
jksoft 0:8c643bfe55b7 38 BLE_ERROR_NONE = 0, /**< No error */
jksoft 0:8c643bfe55b7 39 BLE_ERROR_BUFFER_OVERFLOW = 1, /**< The requested action would cause a buffer overflow and has been aborted */
jksoft 0:8c643bfe55b7 40 BLE_ERROR_NOT_IMPLEMENTED = 2, /**< Requested a feature that isn't yet implement or isn't supported by the target HW */
jksoft 0:8c643bfe55b7 41 BLE_ERROR_PARAM_OUT_OF_RANGE = 3 /**< One of the supplied parameters is outside the valid range */
jksoft 0:8c643bfe55b7 42 } ble_error_t;
jksoft 0:8c643bfe55b7 43
jksoft 0:8c643bfe55b7 44 #ifdef __cplusplus
jksoft 0:8c643bfe55b7 45 }
jksoft 0:8c643bfe55b7 46 #endif
jksoft 0:8c643bfe55b7 47
jksoft 0:8c643bfe55b7 48 #endif