Questions tagged [python]

Python is a high-level programming language designed to be easy to read and simple to implement. It is open source, which means it is free to use, even for commercial applications. Python is considered a scripting language and is often used for creating Web applications and dynamic Web content.

Filter by
Sorted by
Tagged with
4
votes
1answer
78 views

EV3 manual recording for displacement

So I'm doing this project using an EV3, here are the tasks of the project: We have to save the path that the robot will take manually ( we will move the robot by hand and it'll save the movements) so ...
5
votes
1answer
233 views

Control Lego Technic Control+ Hub via Python

Is it possible to control the Lego Technic Control+ Hub with Python? I have tried using Pybricks but that didn't work well for me.
6
votes
1answer
71 views

EV3 .py to .rbf?

So, I need to send an rbf file from my computer to e-mail for a tournament. I'm currently using python with the ev3 microPython setup and vscode. The question is, where or how can I get the rbf file ...
1
vote
1answer
51 views

Why is my EV3 status light pulsing? (ev3dev)

I am using EV3 micropython (ev3dev?). When I upload the below program to my EV3, I see on the screen the usual play button image which looks approximately like the below ASCII art: ...
6
votes
1answer
179 views

Why doesn't my LEGO Micropython remote control program work?

I am writing an EV3 micropython program meant to test my remote, but it does not work. When I run it, I see no errors at all. Instead, I just see a "play" symbol and the program continuously ...
2
votes
0answers
168 views

How do I make a single arm double tap a piano key?

I am trying to make a Lego play piano from ev3, where I have connected two arms to a single motor on either side using Lego elements. Both the arms move counter clockwise to one another (if one plays ...
9
votes
2answers
316 views

Is it possible to use EV3 MicroPython with Windows 7?

I have been trying to get python on my EV3 brick using an EV3 MicroPython SD card image as described on the Lego website. The EV3 brick seem fine with its new OS. Instead my problems are at the ...
2
votes
1answer
198 views

how to send direct command to ev3 brick

I am new to ev3 python but am working on a project. I was reading about NXT-python that " It works by sending the direct commands detailed in LEGO's "Blue-tooth Development Kit" to the NXT brick" I ...
1
vote
1answer
622 views

How to make a point coordinate system for EV3

I'm trying to make a internal coordinate system for an EV3 Python project I'm doing, but at a complete loss on how to do it. It needs to keep track of how it moves (with wheels) in an X, Y coordinate ...
3
votes
2answers
3k views

How to instruct Mindstorms EV3 from PC conditionally?

I want to direct my LEGO Mindstorms EV3 creature from my PC conditionally (ev3dev, Python). The idea is that the program runs on the computer, collects real-time data from different sources, processes ...
1
vote
2answers
656 views

How to flash a LEGO Mindstorms brick and program it in another language

I have a basic LEGO Mindstorms kit which I wanted to use for testing a very simple object-avoidance project. I am trying to find a relatively simple way to flash the brick and upload scripts to it ...
1
vote
1answer
219 views

LEGO servo (88004) controlled by Raspberry Pi using python pigpio

I'm trying to control a LEGO servo (88004) using a Raspberry pi. I would like to use pigpio to get a more precise control (no shaking, like with gpio PWM). It's work with a regular servo (3 wires). ...
5
votes
2answers
2k views

How to connect two LEGO Bricks EV3 by USB using python

For some project, I have to use 7 motors with ev3 bricks. So I would like to connect 2 bricks using USB-USB link, and make them communicate, in python. But I don't know how to do that, I've tried ...
0
votes
1answer
139 views

Bazooka blast ev3 Mindstorms using Python

I would like to shoot balls with the ev3 Lego robot. How can I code it using Python? Which components do I need for that and which function and motor use ?
1
vote
1answer
519 views

How to receive response from direct_command_reply from EV3 using Python?

I've established and tested a Bluetooth connection (by playing a tone) between EV3 and Mac running Yosemite with Python 2.7.11. I used file write as in bt.write(tone) in Python to play the tone ...
5
votes
1answer
2k views

Can't send multiple commands to EV3 using Python

I want to use Python to send commands to an EV3 brick. In C++ things work as expected - for instance, this starts the motor on port A and then stops it after a while: #include <unistd.h> #...