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 Jun 19 10:00:41 2013 +0000
Revision:
0:da22b0b4395a
mbed robotracer for education ver 1.0

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_STREAM_H
hayama 0:da22b0b4395a 17 #define MBED_STREAM_H
hayama 0:da22b0b4395a 18
hayama 0:da22b0b4395a 19 #include "platform.h"
hayama 0:da22b0b4395a 20 #include "FileLike.h"
hayama 0:da22b0b4395a 21
hayama 0:da22b0b4395a 22 namespace mbed {
hayama 0:da22b0b4395a 23
hayama 0:da22b0b4395a 24 class Stream : public FileLike {
hayama 0:da22b0b4395a 25
hayama 0:da22b0b4395a 26 public:
hayama 0:da22b0b4395a 27 Stream(const char *name=NULL);
hayama 0:da22b0b4395a 28 virtual ~Stream();
hayama 0:da22b0b4395a 29
hayama 0:da22b0b4395a 30 int putc(int c);
hayama 0:da22b0b4395a 31 int puts(const char *s);
hayama 0:da22b0b4395a 32 int getc();
hayama 0:da22b0b4395a 33 char *gets(char *s, int size);
hayama 0:da22b0b4395a 34 int printf(const char* format, ...);
hayama 0:da22b0b4395a 35 int scanf(const char* format, ...);
hayama 0:da22b0b4395a 36
hayama 0:da22b0b4395a 37 operator std::FILE*() {return _file;}
hayama 0:da22b0b4395a 38
hayama 0:da22b0b4395a 39 protected:
hayama 0:da22b0b4395a 40 virtual int close();
hayama 0:da22b0b4395a 41 virtual ssize_t write(const void* buffer, size_t length);
hayama 0:da22b0b4395a 42 virtual ssize_t read(void* buffer, size_t length);
hayama 0:da22b0b4395a 43 virtual off_t lseek(off_t offset, int whence);
hayama 0:da22b0b4395a 44 virtual int isatty();
hayama 0:da22b0b4395a 45 virtual int fsync();
hayama 0:da22b0b4395a 46 virtual off_t flen();
hayama 0:da22b0b4395a 47
hayama 0:da22b0b4395a 48 virtual int _putc(int c) = 0;
hayama 0:da22b0b4395a 49 virtual int _getc() = 0;
hayama 0:da22b0b4395a 50
hayama 0:da22b0b4395a 51 std::FILE *_file;
hayama 0:da22b0b4395a 52 };
hayama 0:da22b0b4395a 53
hayama 0:da22b0b4395a 54 } // namespace mbed
hayama 0:da22b0b4395a 55
hayama 0:da22b0b4395a 56 #endif