mbed robotracer for education.

Robotracer (line follower robot ) using stepper motor.

/media/uploads/hayama/cimg8463.jpg

/media/uploads/hayama/mbedrobotracer-manual-english.pdf

/media/uploads/hayama/mbedrobotracer-manual-japanese.pdf

/media/uploads/hayama/eagle-design-robotracer.zip

movie -> https://www.youtube.com/watch?v=INwun8gSds4

(for competition->) https://www.youtube.com/watch?v=l_gP2pUt4w0

Committer:
hayama
Date:
Wed Oct 02 01:09:55 2013 +0000
Revision:
1:200aad416161
Parent:
0:da22b0b4395a
mbed robotracer for education.
;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hayama 0:da22b0b4395a 1 /* mbed Microcontroller Library
hayama 0:da22b0b4395a 2 * Copyright (c) 2006-2013 ARM Limited
hayama 0:da22b0b4395a 3 *
hayama 0:da22b0b4395a 4 * Licensed under the Apache License, Version 2.0 (the "License");
hayama 0:da22b0b4395a 5 * you may not use this file except in compliance with the License.
hayama 0:da22b0b4395a 6 * You may obtain a copy of the License at
hayama 0:da22b0b4395a 7 *
hayama 0:da22b0b4395a 8 * http://www.apache.org/licenses/LICENSE-2.0
hayama 0:da22b0b4395a 9 *
hayama 0:da22b0b4395a 10 * Unless required by applicable law or agreed to in writing, software
hayama 0:da22b0b4395a 11 * distributed under the License is distributed on an "AS IS" BASIS,
hayama 0:da22b0b4395a 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
hayama 0:da22b0b4395a 13 * See the License for the specific language governing permissions and
hayama 0:da22b0b4395a 14 * limitations under the License.
hayama 0:da22b0b4395a 15 */
hayama 0:da22b0b4395a 16 #ifndef MBED_INTERFACE_H
hayama 0:da22b0b4395a 17 #define MBED_INTERFACE_H
hayama 0:da22b0b4395a 18
hayama 0:da22b0b4395a 19 #include "device.h"
hayama 0:da22b0b4395a 20
hayama 0:da22b0b4395a 21 #ifdef __cplusplus
hayama 0:da22b0b4395a 22 extern "C" {
hayama 0:da22b0b4395a 23 #endif
hayama 0:da22b0b4395a 24
hayama 0:da22b0b4395a 25 #if DEVICE_SEMIHOST
hayama 0:da22b0b4395a 26
hayama 0:da22b0b4395a 27 /** Functions to control the mbed interface
hayama 0:da22b0b4395a 28 *
hayama 0:da22b0b4395a 29 * mbed Microcontrollers have a built-in interface to provide functionality such as
hayama 0:da22b0b4395a 30 * drag-n-drop download, reset, serial-over-usb, and access to the mbed local file
hayama 0:da22b0b4395a 31 * system. These functions provide means to control the interface suing semihost
hayama 0:da22b0b4395a 32 * calls it supports.
hayama 0:da22b0b4395a 33 */
hayama 0:da22b0b4395a 34
hayama 0:da22b0b4395a 35 /** Determine whether the mbed interface is connected, based on whether debug is enabled
hayama 0:da22b0b4395a 36 *
hayama 0:da22b0b4395a 37 * @returns
hayama 0:da22b0b4395a 38 * 1 if interface is connected,
hayama 0:da22b0b4395a 39 * 0 otherwise
hayama 0:da22b0b4395a 40 */
hayama 0:da22b0b4395a 41 int mbed_interface_connected(void);
hayama 0:da22b0b4395a 42
hayama 0:da22b0b4395a 43 /** Instruct the mbed interface to reset, as if the reset button had been pressed
hayama 0:da22b0b4395a 44 *
hayama 0:da22b0b4395a 45 * @returns
hayama 0:da22b0b4395a 46 * 1 if successful,
hayama 0:da22b0b4395a 47 * 0 otherwise (e.g. interface not present)
hayama 0:da22b0b4395a 48 */
hayama 0:da22b0b4395a 49 int mbed_interface_reset(void);
hayama 0:da22b0b4395a 50
hayama 0:da22b0b4395a 51 /** This will disconnect the debug aspect of the interface, so semihosting will be disabled.
hayama 0:da22b0b4395a 52 * The interface will still support the USB serial aspect
hayama 0:da22b0b4395a 53 *
hayama 0:da22b0b4395a 54 * @returns
hayama 0:da22b0b4395a 55 * 0 if successful,
hayama 0:da22b0b4395a 56 * -1 otherwise (e.g. interface not present)
hayama 0:da22b0b4395a 57 */
hayama 0:da22b0b4395a 58 int mbed_interface_disconnect(void);
hayama 0:da22b0b4395a 59
hayama 0:da22b0b4395a 60 /** This will disconnect the debug aspect of the interface, and if the USB cable is not
hayama 0:da22b0b4395a 61 * connected, also power down the interface. If the USB cable is connected, the interface
hayama 0:da22b0b4395a 62 * will remain powered up and visible to the host
hayama 0:da22b0b4395a 63 *
hayama 0:da22b0b4395a 64 * @returns
hayama 0:da22b0b4395a 65 * 0 if successful,
hayama 0:da22b0b4395a 66 * -1 otherwise (e.g. interface not present)
hayama 0:da22b0b4395a 67 */
hayama 0:da22b0b4395a 68 int mbed_interface_powerdown(void);
hayama 0:da22b0b4395a 69
hayama 0:da22b0b4395a 70 /** This returns a string containing the 32-character UID of the mbed interface
hayama 0:da22b0b4395a 71 * This is a weak function that can be overwritten if required
hayama 0:da22b0b4395a 72 *
hayama 0:da22b0b4395a 73 * @param uid A 33-byte array to write the null terminated 32-byte string
hayama 0:da22b0b4395a 74 *
hayama 0:da22b0b4395a 75 * @returns
hayama 0:da22b0b4395a 76 * 0 if successful,
hayama 0:da22b0b4395a 77 * -1 otherwise (e.g. interface not present)
hayama 0:da22b0b4395a 78 */
hayama 0:da22b0b4395a 79 int mbed_interface_uid(char *uid);
hayama 0:da22b0b4395a 80
hayama 0:da22b0b4395a 81 #endif
hayama 0:da22b0b4395a 82
hayama 0:da22b0b4395a 83 /** This returns a unique 6-byte MAC address, based on the interface UID
hayama 0:da22b0b4395a 84 * If the interface is not present, it returns a default fixed MAC address (00:02:F7:F0:00:00)
hayama 0:da22b0b4395a 85 *
hayama 0:da22b0b4395a 86 * This is a weak function that can be overwritten if you want to provide your own mechanism to
hayama 0:da22b0b4395a 87 * provide a MAC address.
hayama 0:da22b0b4395a 88 *
hayama 0:da22b0b4395a 89 * @param mac A 6-byte array to write the MAC address
hayama 0:da22b0b4395a 90 */
hayama 0:da22b0b4395a 91 void mbed_mac_address(char *mac);
hayama 0:da22b0b4395a 92
hayama 0:da22b0b4395a 93 /** Cause the mbed to flash the BLOD (Blue LEDs Of Death) sequence
hayama 0:da22b0b4395a 94 */
hayama 0:da22b0b4395a 95 void mbed_die(void);
hayama 0:da22b0b4395a 96
hayama 0:da22b0b4395a 97 #ifdef __cplusplus
hayama 0:da22b0b4395a 98 }
hayama 0:da22b0b4395a 99 #endif
hayama 0:da22b0b4395a 100
hayama 0:da22b0b4395a 101 #endif