Difference between revisions of "Tutorials/Arduino Projects/Mobile Robotics/BoeBot/Connecting the Sharp IR Sensor"

From ROBOTC API Guide
Jump to: navigation, search
(Connection)
(The Circuit)
Line 12: Line 12:
 
== The Circuit ==
 
== The Circuit ==
 
[[image:BoeBot_Sharp_Sensor_schematic.png|thumb|c|center|400px|Sharp IR Sensor circuit schematic]]
 
[[image:BoeBot_Sharp_Sensor_schematic.png|thumb|c|center|400px|Sharp IR Sensor circuit schematic]]
{{Note|ROBOTC currently configures the analog input pins slightly different from the wiring language (Arduino IDE). As such it is currently necissary to use the resistor between the signal connection and ground.}}
+
{{Note|ROBOTC currently configures the analog input pins slightly different from the wiring language (Arduino IDE). As such it is currently necessary to use the resistor between the signal connection and ground.}}
  
 
== Making the Connections ==
 
== Making the Connections ==

Revision as of 17:49, 16 October 2012

Connection

Like the Parallax PING sensor, the Sharp IR sensor has 3 connections:

  • Ground
  • Power (5V)
  • Signal (analog output)

However, unlike the PING sensor, the Sharp IR Sensor uses what is called a JST connector. Unfortunately, this connector can't be plugged into the breadboard with out a wire adapter. You can find these adaptors online at places like sparkfun.com and the Parallax website. [1]

The Circuit

Sharp IR Sensor circuit schematic

Notepad.gif NOTE: ROBOTC currently configures the analog input pins slightly different from the wiring language (Arduino IDE). As such it is currently necessary to use the resistor between the signal connection and ground.

Making the Connections

Connecting the JST to the sensor

First connect the JST connector to the Sharp IR sensor.

connecting the JST Connector cable to the Sharp IR sensor.

Connecting the sensor to the board

Now connect the other end of the JST connector cable to the bread board

BoeBot Sharp Sensor Virtual Breadboard Connection.png
BoeBot Sharp Sensor Breadboard Connection.jpg


Adding the resistor

Since we currently need the resistor to get the correct values, we will connect it next.

BoeBot Sharp Sensor Virtual Breadboard Resistor.png
BoeBot Sharp Sensor Breadboard Resistor.jpg


Adding the wires

Now we can add the wires.

BoeBot Sharp Sensor Virtual Breadboard.png
BoeBot Sharp Sensor Breadboard.jpg