-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy patharduino_firmware.txt
47 lines (35 loc) · 984 Bytes
/
arduino_firmware.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Making Arduino firmware:
1. install Arduino IDE
http://arduino.cc/en/Main/Software
(tested on 1.0.3, 1.0.4)
2. connect Arduino board and select Serial port and Arduino version
(Arduino Nano w/ ATmega 328)
2. install 3rdparty libraries:
* TimerOne
(tested v9)
https://code.google.com/p/arduino-timerone/downloads/list
* ultrasonic-HC-SR04
http://robocraft.ru/files/sensors/Ultrasonic/HC-SR04/ultrasonic-HC-SR04.zip
3. in Arduino sketchbook folder create directory with name:
robot_4wd_firmware
4. into robot_4wd_firmware folder copy source files:
robot_4wd_firmware.ino
orcp2.cpp
orcp2.h
robot_sensors.cpp
robot_sensors.h
robot_4wd.cpp
robot_4wd.h
types.h
imu.cpp
imu.h
(from https://github.com/RoboCraft/robot_4wd/tree/master/orcp2)
5. edit robot_4wd_firmware.ino
for drive board - comment definition
#define IMU_BOARD
i.e.
// #define IMU_BOARD
and vice versa, for sensor board comment definition:
#define DRIVE_BOARD
6. compile and load sketch into Arduino board
Done!