Académique Documents
Professionnel Documents
Culture Documents
Hardware
Page 1 of 6
Help Center
https://class.coursera.org/conrob-002/wiki/Hardware
17/09/2015
Coursera
Page 2 of 6
https://class.coursera.org/conrob-002/wiki/Hardware
17/09/2015
Coursera
Page 3 of 6
https://class.coursera.org/conrob-002/wiki/Hardware
17/09/2015
Coursera
Page 4 of 6
3. Check that the internet is connected (if bytes received then internet is working)
>> ping -o www.google.com
4. Set the time with the following (use your own timezone) and check the date at the end
>> opkg update
>> ln -sf /usr/share/zoneinfo/America/New_York/etc/localtime
>> ntpdate -b -s -u pool.ntp.org
>> /usr/lib/conn/test/set-global-timeservers pool.ntp.org
>> date
5. Plug Wifi adapter into BBB and restart the BBB with the following command
>> shutdown -r now
6. SSH back into BBB (may require new terminal window) and check that the wireless is working (if
you get an error it is not working)
>> ifconfig ra0
7. Config the network settings
(copy hash string from wpa_passphrase command)
>> wpa_passphrase "your network name here" 'your password here'
(edit configuration file)
>> nano /var/lib/connman/wifi.config
(type the following, then [ctrl-x],[y],[enter] to save and exit)
[service_home]
Type = wifi
Name = your network name here (no quotes this time)
Passphrase = paste hash string here
8. Restart BBB and unplug ethernet cable
>>> shutdown -r now
9. SSH back into BBB (may require new terminal window) then check internet and check IP address
>>> ping -o www.google.com
>> ifconfig ra0
If you have problems with getting the wifi working please see this post for a possible fix:
https://class.coursera.org/conrob-002/forum/thread?thread_id=737
https://class.coursera.org/conrob-002/wiki/Hardware
17/09/2015
Coursera
Page 5 of 6
2. Get IP address of both your computer and the BBB (run command on terminal for BBB and on
terminal for local machine)
>> ifconfig
3. Run code on BBB
>> ./QuickBotRun.py your_pc_ip_address bbb_ip_address
Example
>> ./QuickBotRun.py 192.168.1.100 192.168.1.101
(Step 5) Send commands to QuickBot via Matlab simulator Sim.I.Am
1. Open Matlab
2. Edit Sim.I.Am "settings.xml" file to enter BBB IP address (~ line 7 in file)
<driver ip="bbb_ip_address" port="5005" />
Example
<driver ip="192.168.1.101" port="5005" />
3. Launch Sim.I.Am
4. Connect to robot
5. Press play
(Step 6) Shutdown the QuickBot
1. Close Sim.I.Am
2. Ctrl-C in BBB terminal to end QuickBotRun.py program
3. Shutdown the BBB
>> shutdown -H now
4. Turn off QuickBot
The QuickBot is just responding to commands that are sent to it. The commands are strings and are
listed below.
Command Set
Check that the QuickBot is up and running:
Command:
"$CHECK*\n"
Response
"Hello from QuickBot\n"
Get IR values:
Command
"$IRVAL?*\n"
Example response
"[800, 810, 820, 830, 840]\n"
https://class.coursera.org/conrob-002/wiki/Hardware
17/09/2015
Coursera
Page 6 of 6
Example response
"[200, -200]\n"
Example response
"[20.0, -20.0]\n"
Reset encoder position to zero:
Command
"$RESET*\n"
End program:
Command:
"$END*\n"
https://class.coursera.org/conrob-002/wiki/Hardware
17/09/2015