User Tools

Site Tools


monorail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
monorail [2013-11-11 22:34] janemonorail [2013-11-26 15:50] jhutton
Line 1: Line 1:
 ====== Monorail ====== ====== Monorail ======
 ===How to control the monorail=== ===How to control the monorail===
-You can control it from Python over Bluetooth as follows:+You can control it from Python over Bluetooth as follow (instruction for a linux distro):
  
-  - Install [[http://code.google.com/p/nxt-python/| python-nxt]]+  - Install [[http://code.google.com/p/nxt-python/| python-nxt]] 
   - Turn it on by pressing the orange button.   - Turn it on by pressing the orange button.
   - Start python and run the following setup commands:   - Start python and run the following setup commands:
Line 16: Line 16:
 motor_c = Motor(brick, nxt.motor.PORT_C) motor_c = Motor(brick, nxt.motor.PORT_C)
 </code> </code>
 +
 You can then control the motors by calling motor.turn(power, degrees) You can then control the motors by calling motor.turn(power, degrees)
 e.g. motor_a.turn(127, 360). e.g. motor_a.turn(127, 360).
Line 28: Line 29:
  
 ===Parts=== ===Parts===
-The assembly parts for the track are stored in a christmas cardboard box. The box waits for you on a shelf beside the old batteries container. The design for the laser cutter of the ceiling station and connector is stored in a github rep. +The assembly parts for the track are stored in a christmas cardboard box. The box waits for you on a shelf beside the old batteries container. The design for the laser cutter of the ceiling station and connector is stored in [[https://github.com/HennyN/Hacklab_monorail |a github rep]]
  
 <code> <code>
Line 39: Line 40:
   * charging station   * charging station
   * junctions   * junctions
 +
 +**Control Monorail From Android**
 +
 +Download the lego NXT app, pair bluetooth with android device by matching the pin displayed on the screen of the lego brick. Pin was 1234. 
 +
 +Motor A moves it along the rail, Motor B pans the sensor head and Motor
 +C tilts the sensor head.
 +
  
monorail.txt · Last modified: 2015-10-05 15:55 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki