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_PERIPHERALNAMES_H
hayama 0:da22b0b4395a 17 #define MBED_PERIPHERALNAMES_H
hayama 0:da22b0b4395a 18
hayama 0:da22b0b4395a 19 #include "cmsis.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 typedef enum {
hayama 0:da22b0b4395a 26 UART_0 = (int)LPC_UART0_BASE,
hayama 0:da22b0b4395a 27 UART_1 = (int)LPC_UART1_BASE,
hayama 0:da22b0b4395a 28 UART_2 = (int)LPC_UART2_BASE,
hayama 0:da22b0b4395a 29 UART_3 = (int)LPC_UART3_BASE
hayama 0:da22b0b4395a 30 } UARTName;
hayama 0:da22b0b4395a 31
hayama 0:da22b0b4395a 32 typedef enum {
hayama 0:da22b0b4395a 33 ADC0_0 = 0,
hayama 0:da22b0b4395a 34 ADC0_1,
hayama 0:da22b0b4395a 35 ADC0_2,
hayama 0:da22b0b4395a 36 ADC0_3,
hayama 0:da22b0b4395a 37 ADC0_4,
hayama 0:da22b0b4395a 38 ADC0_5,
hayama 0:da22b0b4395a 39 ADC0_6,
hayama 0:da22b0b4395a 40 ADC0_7
hayama 0:da22b0b4395a 41 } ADCName;
hayama 0:da22b0b4395a 42
hayama 0:da22b0b4395a 43 typedef enum {
hayama 0:da22b0b4395a 44 DAC_0 = 0
hayama 0:da22b0b4395a 45 } DACName;
hayama 0:da22b0b4395a 46
hayama 0:da22b0b4395a 47 typedef enum {
hayama 0:da22b0b4395a 48 SPI_0 = (int)LPC_SSP0_BASE,
hayama 0:da22b0b4395a 49 SPI_1 = (int)LPC_SSP1_BASE
hayama 0:da22b0b4395a 50 } SPIName;
hayama 0:da22b0b4395a 51
hayama 0:da22b0b4395a 52 typedef enum {
hayama 0:da22b0b4395a 53 I2C_0 = (int)LPC_I2C0_BASE,
hayama 0:da22b0b4395a 54 I2C_1 = (int)LPC_I2C1_BASE,
hayama 0:da22b0b4395a 55 I2C_2 = (int)LPC_I2C2_BASE
hayama 0:da22b0b4395a 56 } I2CName;
hayama 0:da22b0b4395a 57
hayama 0:da22b0b4395a 58 typedef enum {
hayama 0:da22b0b4395a 59 PWM_1 = 1,
hayama 0:da22b0b4395a 60 PWM_2,
hayama 0:da22b0b4395a 61 PWM_3,
hayama 0:da22b0b4395a 62 PWM_4,
hayama 0:da22b0b4395a 63 PWM_5,
hayama 0:da22b0b4395a 64 PWM_6
hayama 0:da22b0b4395a 65 } PWMName;
hayama 0:da22b0b4395a 66
hayama 0:da22b0b4395a 67 typedef enum {
hayama 0:da22b0b4395a 68 CAN_1 = (int)LPC_CAN1_BASE,
hayama 0:da22b0b4395a 69 CAN_2 = (int)LPC_CAN2_BASE
hayama 0:da22b0b4395a 70 } CANName;
hayama 0:da22b0b4395a 71
hayama 0:da22b0b4395a 72 #define STDIO_UART_TX USBTX
hayama 0:da22b0b4395a 73 #define STDIO_UART_RX USBRX
hayama 0:da22b0b4395a 74 #define STDIO_UART UART_0
hayama 0:da22b0b4395a 75
hayama 0:da22b0b4395a 76 #ifdef __cplusplus
hayama 0:da22b0b4395a 77 }
hayama 0:da22b0b4395a 78 #endif
hayama 0:da22b0b4395a 79
hayama 0:da22b0b4395a 80 #endif