RCBControllerでモータを制御します。うおーるぼっとも動かせました。
Dependencies: BLE_API_Native_IRC TB6612FNG2 mbed
Fork of BLE_RCBController by
- 古いBLEライブラリを使っているのでプラットフォームは”Nordic nRF51822”を選択してください。
- ライブラリ類はUpdateしないでください。コンパイルエラーになります。
うまく接続できない時は、iPhone/iPadのBluetoothをOFF->ONしてキャッシュをクリアしてみてください。
RCBControllerでうおーるぼっとを操縦する例
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コネクタからとります。
BLE_API_Native_IRC/hw/nRF51822n/nordic/nrf-sdk/system_nrf51.h@0:8c643bfe55b7, 2014-07-10 (annotated)
- Committer:
- jksoft
- Date:
- Thu Jul 10 14:21:52 2014 +0000
- Revision:
- 0:8c643bfe55b7
??
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jksoft | 0:8c643bfe55b7 | 1 | /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved. |
jksoft | 0:8c643bfe55b7 | 2 | * |
jksoft | 0:8c643bfe55b7 | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
jksoft | 0:8c643bfe55b7 | 4 | * Terms and conditions of usage are described in detail in NORDIC |
jksoft | 0:8c643bfe55b7 | 5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
jksoft | 0:8c643bfe55b7 | 6 | * |
jksoft | 0:8c643bfe55b7 | 7 | * Licensees are granted free, non-transferable use of the information. NO |
jksoft | 0:8c643bfe55b7 | 8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
jksoft | 0:8c643bfe55b7 | 9 | * the file. |
jksoft | 0:8c643bfe55b7 | 10 | * |
jksoft | 0:8c643bfe55b7 | 11 | */ |
jksoft | 0:8c643bfe55b7 | 12 | |
jksoft | 0:8c643bfe55b7 | 13 | |
jksoft | 0:8c643bfe55b7 | 14 | #ifndef SYSTEM_NRF51_H |
jksoft | 0:8c643bfe55b7 | 15 | #define SYSTEM_NRF51_H |
jksoft | 0:8c643bfe55b7 | 16 | |
jksoft | 0:8c643bfe55b7 | 17 | #ifdef __cplusplus |
jksoft | 0:8c643bfe55b7 | 18 | extern "C" { |
jksoft | 0:8c643bfe55b7 | 19 | #endif |
jksoft | 0:8c643bfe55b7 | 20 | |
jksoft | 0:8c643bfe55b7 | 21 | #include <stdint.h> |
jksoft | 0:8c643bfe55b7 | 22 | #include "nordic_global.h" |
jksoft | 0:8c643bfe55b7 | 23 | |
jksoft | 0:8c643bfe55b7 | 24 | |
jksoft | 0:8c643bfe55b7 | 25 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
jksoft | 0:8c643bfe55b7 | 26 | |
jksoft | 0:8c643bfe55b7 | 27 | /** |
jksoft | 0:8c643bfe55b7 | 28 | * Initialize the system |
jksoft | 0:8c643bfe55b7 | 29 | * |
jksoft | 0:8c643bfe55b7 | 30 | * @param none |
jksoft | 0:8c643bfe55b7 | 31 | * @return none |
jksoft | 0:8c643bfe55b7 | 32 | * |
jksoft | 0:8c643bfe55b7 | 33 | * @brief Setup the microcontroller system. |
jksoft | 0:8c643bfe55b7 | 34 | * Initialize the System and update the SystemCoreClock variable. |
jksoft | 0:8c643bfe55b7 | 35 | */ |
jksoft | 0:8c643bfe55b7 | 36 | extern void SystemInit (void); |
jksoft | 0:8c643bfe55b7 | 37 | |
jksoft | 0:8c643bfe55b7 | 38 | /** |
jksoft | 0:8c643bfe55b7 | 39 | * Update SystemCoreClock variable |
jksoft | 0:8c643bfe55b7 | 40 | * |
jksoft | 0:8c643bfe55b7 | 41 | * @param none |
jksoft | 0:8c643bfe55b7 | 42 | * @return none |
jksoft | 0:8c643bfe55b7 | 43 | * |
jksoft | 0:8c643bfe55b7 | 44 | * @brief Updates the SystemCoreClock with current core Clock |
jksoft | 0:8c643bfe55b7 | 45 | * retrieved from cpu registers. |
jksoft | 0:8c643bfe55b7 | 46 | */ |
jksoft | 0:8c643bfe55b7 | 47 | extern void SystemCoreClockUpdate (void); |
jksoft | 0:8c643bfe55b7 | 48 | |
jksoft | 0:8c643bfe55b7 | 49 | #ifdef __cplusplus |
jksoft | 0:8c643bfe55b7 | 50 | } |
jksoft | 0:8c643bfe55b7 | 51 | #endif |
jksoft | 0:8c643bfe55b7 | 52 | |
jksoft | 0:8c643bfe55b7 | 53 | #endif /* SYSTEM_NRF51_H */ |