Arduino-Robot Wireless Setup

advertisement
Arduino-Robot Wireless
Setup
Required:
- Kit
- D-Link DAP-1522 Radio (Router) (am-0839)
- CPR-360 Power Converter (for steady supply of 5V to Radio) (am-0899)
- 12-10GA Insulated Ring Terminals, Bag of 8 (am-0974) (am-0974)
- 2 - Power Cable (am-2298)
- Ethernet Cable (am-0499)
- Wireless Network
- Soldering Iron
- Multi-Meter
Note: This guide will be using a D-Link DAP-1522. If using a different router, the setup may be
different.
1
Setting Up the Bridge
Initial setup
●
Plug the power cord into the wall and into the router
●
Plug one end of the
●
Check the back of the router and make sure it is switched to bridge
thernet cable into the computer and the other end into the router
Changing the PC’s IP
●
Disconnect the PC from the network being used
●
Open the start menu > search network and sharing center > press enter
●
Select Change adapter setting in the top right corner
●
Right-click Local Area Connection and select Properties
●
Select Internet Protocol Version 4 and the click the Properties button
●
Select the circle labeled Use the following IP address: and type in: 192.168.0.55.
If the bridge has been used before follow the first 3 steps, if it is new skip to step 4:
1. Using a paperclip, press the reset button for 10 seconds
2. Wait until it turns on, then power cycle the bridge
3. Plug the bridge into the computer via an ethernet cable and open up a browser.
4. Type in the address bar: 192.168.0.50.
5. A password is not needed. Go ahead and select login
6. Select the SETUP tab
7. Select Wireless Settings in the right panel
8. Make sure that box beside Enable Wireless is checked
9. Select the button Site Survey
10. Select the wireless network that should be connected to
11. Click connect
12. Select Save Settings near the top of the page
13. Select the LAN Settings tab
14. Find the LAN Connection Type and select Dynamic IP
15. Select Save Settings near the top of the page
Checking to see if it worked
●
Disconnect the bridge from the computer
●
Set computer back to original settings
●
Connect the computer to the network
●
Connect the Arduino to the bridge via an Ethernet cable
●
Plug the Arduino into a power source
2
○
Note: Do not plug the Arduino into the computer for power
●
Open up the RobotOpen DS and select the connect button
●
If the graph starts moving for more than 3 seconds we know the bridge is set up
correctly
Setting Up the Hardware
Wiring the Converter
● Find the red cable and the black cable closest to the red
●
Make sure there is at least a quarter inch of bare wire showing on both cables
●
Crimp a yellow ring terminal (am-0974) onto the red and black cable
●
Find the yellow cable and the other black cable
●
Make sure there is at least a quarter inch of wire showing on both cables
Wiring the Bridge Power Cord to the Converter
●
Find the yellow cable and the black cable closest to the yellow on the converter
●
Slide a large shrink tube (am-2121) over both wires, then slide small shrink tube (am0895) over each individual wire. We will solder these later
●
Cut one power cable (am-2298) 3” above the part that plugs into the wall. Cut back the
insulation on the power cord and separate the two wires by about 2”.
●
Make sure a quarter of an inch of bare wire is showing on both the converter wires and
the power cord wires
●
Find which wire is positive on the power cable by using a multimeter
○
To do this, we need to do a continuity test. For our meter we need to turn it to the
“sound waves” setting and hold one end inside of the plug and touch one wire. If
the multimeter beeps, then that wire is connected to the center of the plug which
is positive.
●
Solder the positive wire to the yellow wire
●
Bring up the shrink tube to cover the wire and shrink it
●
Solder the ground wire to the black wire
●
Bring up the shrink tube to cover the wire and shrink it
●
Bring up the larger shrink tube and shrink it
Wiring the Arduino to the Power Source
Grab the other power cable (am-2298):
3
●
Cut back the insulation so the two wires are showing.
●
Separate the two wires
●
Make sure there is at least a quarter inch of bare wire showing for both wires
●
Bond a ring terminal (am-0974) onto each wire.
Put everything on the robot and plug it in. Wire the Arduino to the breadboard or Peasy
Board then follow the section Programming the Robot until the end in the Arduino
Tutorial.
NOTE: Before plugging in the power barrel of the router make sure that 5v is coming through
the power cable. If more than 5v are coming through, the converter may be bad. If a multimeter
reads negative 5V, the cables are most likely backwards
4
Download