ev3dev / ev3dev-lang-python

Pure python bindings for ev3dev
MIT License
428 stars 145 forks source link

How do I connect the Lego Minestorm EV3 brick(ev3dev) to the computer by bluetooth? #290

Closed clplaneguy closed 7 years ago

clplaneguy commented 7 years ago

I have: Windows 7 Lego MindstormSEV3 Programmable Brick Revision 0006 Brickman v0.8.0 2014-2015 ev3dev? Kernel 4.4.32-17-ev3dev-ev3 MobaXterm Personal Edition V9.4 ev3dev Python3.4.2((defalt,oct 8 2014:47:30 Python 3.6.0

#!/usr/bin/env python3
# Above line is needed so program can be run from Brickman

# Plug a touch sensor into any sensor port
from ev3dev.ev3 import *
ts = TouchSensor()

while True:
    if ts.value()==1:   #touch sensor pressed
        Leds.set_color(Leds.LEFT, Leds.RED)
    else:
        Leds.set_color(Leds.LEFT, Leds.GREEN)  


I am new to Lego EV3, EV3dev. MobaXterm, MobaTextEditor, SD card, Etcher and Python.  After reading from:

http://ev3dev-lang-python.readthedocs.io
http://www.ev3dev.org/
https://www.python.org/
http://code.activestate.com/recipes/langs/python/
https://sites.google.com/site/ev3python/
https://sites.google.com/site/ev3python/wireless/bluetooth-connectivity

everything seems to work fine.  Except for one thing.   I cannot get a connection to the EV3 by Bluetooth.  

With EV3-G, Bluetooth works just fine.  The graphical editor LEGO MINDSTORMS EV3 Home Edition uses the programming language EV3-G and also makes the Bluetooth connection.  The Bluetooth setting in EV3-G is in LEGO MINDSTORMS EV3 Home Edition.

**EV3-G/ LEGO MINDSTORMS EV3 Home Edition/Bluetooth/Brickman/EV3 brick**

But, those instructions do not help me with Python.    The Bluetooth setting for Python would not be in the programming language(Python) or the editor(MobaTextEditor), but in the terminal Program(MobaXterm) or the operation system(Windows 7).

Python/MobaTextEditor/MobaXterm/Windows 7/ev3-dev/EV3 brick

My Bluetooth problem would seem to be with the ev3-dev to Windows 7 or MobaXterm connection.

Does someone know of a way to make this connection? 

THANK YOU
dwalton76 commented 7 years ago

Does not appear to be related to Python...closing