Reference.RobotAnalogRead History

Hide minor edits - Show changes to markup

May 15, 2013, at 06:54 AM by Scott Fitzgerald -
Changed lines 7-8 from:

Reads the value from the specified port on the robot. The board has a 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023.

to:

Reads the value from the specified port on the robot. The ports are exposed on the robot as TinkerKit connectors.

The board has a 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023.

Changed lines 13-14 from:

Robot.analogRead(portName)

to:

Robot.analogRead(port)

Changed lines 17-18 from:

portName: TK0 to TK7, TKD0 to TKD5, or B_TK1 to B_TK4

to:

port: TK0 to TK7 (found on the Control Board), TKD0 to TKD5 (found on the Control Board), or B_TK1 to B_TK4 (found on the motor Board)

Added lines 42-43:

Robot Control Board

Changed lines 45-46 from:
to:

Robot Motor Board

May 08, 2013, at 06:37 PM by Xun Yang -
Changed lines 40-41 from:
to:
May 08, 2013, at 06:29 PM by Xun Yang -
Changed lines 15-16 from:

portName: TK0 to TK7, TDK0 to TDK5, or B_TK1 to B_TK4

to:

portName: TK0 to TK7, TKD0 to TKD5, or B_TK1 to B_TK4

May 08, 2013, at 06:29 PM by Xun Yang -
Added lines 39-40:
May 03, 2013, at 11:16 AM by Xun Yang -
Changed lines 1-2 from:
to:
April 14, 2013, at 10:02 AM by Scott Fitzgerald -
Changed lines 7-8 from:

Get the analog value from one of the ports on the robots.

to:

Reads the value from the specified port on the robot. The board has a 10-bit analog to digital converter. This means that it will map input voltages between 0 and 5 volts into integer values between 0 and 1023.

Added lines 21-23:

Note

If the input port is not connected to anything, the value returned by Robot.analogRead() will fluctuate based on a number of factors (e.g. the values of the other analog inputs, how close your hand is to the board, etc.).

April 14, 2013, at 09:59 AM by Scott Fitzgerald -
Changed lines 1-2 from:

analogRead(portName)

to:

Robot?

analogRead()

Added lines 9-12:

Syntax

Robot.analogRead(portName)

Changed lines 15-16 from:

portName: should be either TK0 to TK7, TDK0 to TDK5, or B_TK1 to B_TK4 (TKx ports on the motor board)

to:

portName: TK0 to TK7, TDK0 to TDK5, or B_TK1 to B_TK4

Changed lines 19-20 from:

0 to 1023

to:

int : 0 to 1023

Changed line 22 from:
to:
Added line 24:
Deleted line 27:
Added line 29:
Changed line 31 from:
  Serial.println(Robot.analogRead(TK0)); //Print the analog read value of port TK0
to:
  Serial.println(Robot.analogRead(TK0)); //Print the value on port TK0
April 09, 2013, at 07:12 PM by David Cuartielles -
Added lines 1-33:

Share