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

Dependencies:   BLE_API TB6612FNG2 mbed nRF51822

Fork of BLE_RCBController2 by Junichi Katsu

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

ライブラリ類をUpdateするとコンパイル出来なくなります。インポートした物をそのまま使って下さい。

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

Components / Wallbot
This robot has switch, line sensors and motors. It controls by mbed.

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

/media/uploads/robo8080/img_1711.jpg

/media/uploads/robo8080/img_1703.jpg

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

Committer:
jksoft
Date:
Wed Aug 20 13:41:01 2014 +0000
Revision:
4:ebda47d22091
Parent:
nRF51822/nordic/nrf-sdk/system_nrf51.h@1:48f6e08a3ac2
?????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 1:48f6e08a3ac2 1 /* Copyright (c) 2013, Nordic Semiconductor ASA
jksoft 1:48f6e08a3ac2 2 * All rights reserved.
jksoft 1:48f6e08a3ac2 3 *
jksoft 1:48f6e08a3ac2 4 * Redistribution and use in source and binary forms, with or without
jksoft 1:48f6e08a3ac2 5 * modification, are permitted provided that the following conditions are met:
jksoft 1:48f6e08a3ac2 6 *
jksoft 1:48f6e08a3ac2 7 * * Redistributions of source code must retain the above copyright notice, this
jksoft 1:48f6e08a3ac2 8 * list of conditions and the following disclaimer.
jksoft 1:48f6e08a3ac2 9 *
jksoft 1:48f6e08a3ac2 10 * * Redistributions in binary form must reproduce the above copyright notice,
jksoft 1:48f6e08a3ac2 11 * this list of conditions and the following disclaimer in the documentation
jksoft 1:48f6e08a3ac2 12 * and/or other materials provided with the distribution.
jksoft 1:48f6e08a3ac2 13 *
jksoft 1:48f6e08a3ac2 14 * * Neither the name of Nordic Semiconductor ASA nor the names of its
jksoft 1:48f6e08a3ac2 15 * contributors may be used to endorse or promote products derived from
jksoft 1:48f6e08a3ac2 16 * this software without specific prior written permission.
jksoft 1:48f6e08a3ac2 17 *
jksoft 1:48f6e08a3ac2 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
jksoft 1:48f6e08a3ac2 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
jksoft 1:48f6e08a3ac2 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
jksoft 1:48f6e08a3ac2 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
jksoft 1:48f6e08a3ac2 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
jksoft 1:48f6e08a3ac2 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
jksoft 1:48f6e08a3ac2 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
jksoft 1:48f6e08a3ac2 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
jksoft 1:48f6e08a3ac2 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
jksoft 1:48f6e08a3ac2 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
jksoft 1:48f6e08a3ac2 28 *
jksoft 1:48f6e08a3ac2 29 */
jksoft 1:48f6e08a3ac2 30 #ifndef SYSTEM_NRF51_H
jksoft 1:48f6e08a3ac2 31 #define SYSTEM_NRF51_H
jksoft 1:48f6e08a3ac2 32
jksoft 1:48f6e08a3ac2 33 #ifdef __cplusplus
jksoft 1:48f6e08a3ac2 34 extern "C" {
jksoft 1:48f6e08a3ac2 35 #endif
jksoft 1:48f6e08a3ac2 36
jksoft 1:48f6e08a3ac2 37 #include <stdint.h>
jksoft 1:48f6e08a3ac2 38
jksoft 1:48f6e08a3ac2 39
jksoft 1:48f6e08a3ac2 40 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
jksoft 1:48f6e08a3ac2 41
jksoft 1:48f6e08a3ac2 42 /**
jksoft 1:48f6e08a3ac2 43 * Initialize the system
jksoft 1:48f6e08a3ac2 44 *
jksoft 1:48f6e08a3ac2 45 * @param none
jksoft 1:48f6e08a3ac2 46 * @return none
jksoft 1:48f6e08a3ac2 47 *
jksoft 1:48f6e08a3ac2 48 * @brief Setup the microcontroller system.
jksoft 1:48f6e08a3ac2 49 * Initialize the System and update the SystemCoreClock variable.
jksoft 1:48f6e08a3ac2 50 */
jksoft 1:48f6e08a3ac2 51 extern void SystemInit (void);
jksoft 1:48f6e08a3ac2 52
jksoft 1:48f6e08a3ac2 53 /**
jksoft 1:48f6e08a3ac2 54 * Update SystemCoreClock variable
jksoft 1:48f6e08a3ac2 55 *
jksoft 1:48f6e08a3ac2 56 * @param none
jksoft 1:48f6e08a3ac2 57 * @return none
jksoft 1:48f6e08a3ac2 58 *
jksoft 1:48f6e08a3ac2 59 * @brief Updates the SystemCoreClock with current core Clock
jksoft 1:48f6e08a3ac2 60 * retrieved from cpu registers.
jksoft 1:48f6e08a3ac2 61 */
jksoft 1:48f6e08a3ac2 62 extern void SystemCoreClockUpdate (void);
jksoft 1:48f6e08a3ac2 63
jksoft 1:48f6e08a3ac2 64 #ifdef __cplusplus
jksoft 1:48f6e08a3ac2 65 }
jksoft 1:48f6e08a3ac2 66 #endif
jksoft 1:48f6e08a3ac2 67
jksoft 1:48f6e08a3ac2 68 #endif /* SYSTEM_NRF51_H */