Sketch should be running on the arduino, so just open the Arduino IDE and start the Serial Monitor
(found under tools).
It currently works so you can send "debug" commands to it:
-
M<left><right>
-- Motor speeds; both<left>
and<right>
must be within[-255,255]
. Example:M-127,255
means left motor half speed backwards, and right motor full speed ahead -
P
-- Proximity sensor; get the distance from each sensor -
CC
-- Colour sensor calibration; Put them over a white piece of paper. -
CM
-- colour sensor measurement; will output someting likes1 = 2 ~ 160 255 200 140
, meaning sensor 1 made a reading of (red = 160, green = 255, blue = 200, clear = 140) matching colour number 2 (blue). must calibrate before performing measurements -
D
-- Disco time!; have a party! -
L?
-- LED test; Display one colour on the LEDs, eitherR
G
B
orW
for white,D
for off. and also use0-5
for colours below
-
- Red
-
- Green
-
- Blue
-
- White
-
- Orange
-
- Yellow
If you change the pin layout, edit the pins.h
file and upload the sketch again.