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
monorail [2013-11-11 22:42] janemonorail [2015-10-05 15:55] (current) – external edit 127.0.0.1
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 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.1384209760.txt.gz · Last modified: 2015-10-05 15:55 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki