monorail
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
monorail [2013-11-11 22:42] – jane | monorail [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:// | + | - Install [[http:// |
- 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, | motor_c = Motor(brick, | ||
</ | </ | ||
+ | |||
You can then control the motors by calling motor.turn(power, | You can then control the motors by calling motor.turn(power, | ||
e.g. motor_a.turn(127, | e.g. motor_a.turn(127, | ||
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)