Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 15 16:13
    nab138 commented #1504
  • May 13 18:29
    jajir commented #1016
  • May 12 19:17
    jajir commented #1016
  • May 09 04:55
    cho934 closed #1533
  • May 09 04:55
    cho934 commented #1533
  • May 07 19:46
    dlech commented #1533
  • May 07 18:31
    cho934 edited #1533
  • May 07 18:30
    cho934 opened #1533
  • May 07 18:30
    cho934 labeled #1533
  • May 02 08:19
    ozzux closed #1532
  • May 02 08:19
    ozzux commented #1532
  • May 02 05:54
    ozzux commented #1532
  • May 02 05:50
    ozzux labeled #1532
  • May 02 05:50
    ozzux opened #1532
  • Apr 24 20:40
    Robbe-Meersman edited #1531
  • Apr 24 20:38
    Robbe-Meersman edited #1531
  • Apr 24 18:24
    Robbe-Meersman opened #1531
  • Apr 09 09:30
    ariharasudhanm closed #72
  • Apr 09 09:30
    ariharasudhanm commented #72
  • Apr 08 14:28
    dlech commented #72
Adam Thomas
@codeadamca
I have ev3dev installed on my brick, I want to run a request to an API. From what I can tell, ev3dev uses Python 2.7 and does not have pip installed. How would I install the requests package to my brick?
countsudoku
@countsudoku
@codeadamca First of all you can also start python 3 with python3 your-python-script.py. Now to the requests package: You could install it via the Debian package management: sudo apt-get install python-requests for python 2 or sudo apt-get install python3-requests for python 3.
Adam Thomas
@codeadamca
@countsudoku Thanks! That worked for installing requests for Python3 and I can run requests using the terminal. However, when I use the EV3 Visual Studio Plugin, I get the error "ImportError: no module named 'requests'". I believe this is because the EV3 VSCode plugin uses micropython. Is there a way to install the requests package to micropython?
countsudoku
@countsudoku
If you use micropython, you should use urequestsa micropythen implementation of a subset of the requests funcionality. But I guess that's not the problem here. I don't use VSCode myself, but the problen might be, that requests is not installed in the environment VSCode uses.
So maybe you have to install the requests package localy. But I am not sure if te EV3 plugin brings it own virtual environment. In this case you have to install the library in this environment.
Adam Thomas
@codeadamca
@countsudoku You're right, urequests is included in micropython. I found the urequests micropython documentation and it's working great! Thanks!
sakuragaoka2001
@sakuragaoka2001
Happy New Year :-)
sakuragaoka2001
@sakuragaoka2001
I have a question for the hardware experts here: I accidentally broke the ribbon cable that connects the display in the EV3 to the main board, and I couldn't find a replacement online, neither for the cable alone, nor for cable+display. So I was wondering whether I could use the EV3 from my laptop without relying on the display. Like, can I ssh into the OS via a USB connection? Connecting via WiFi might be a bit tricky without the display, right? Any hints welcome! Thanks! PS: Sorry if this is slightly offtopic, but I thought this was the forum discussing topics closest to what I'm needing
countsudoku
@countsudoku
@sakuragaoka2001 generally you could use the image on the SD card an run it on another (Linux) device via 'chroot'. But since the ev3 runs most probable on another architecture, you have to use 'qemu' for chroot.
1 reply
But if you only want to set WiFi config, which is the 'wpa_supplicant' configuration (add it under '/etc/wpa_supplicant'), you can do it by mounting the SD card on another Linux machine. I am not completely sure if this work, because the brickman WiFi setup does not store the config there. Maybe you have to disable 'brickman' and activate 'wpa_supplicant' service explicitly.
David Lechner
@dlech
For the official LEGO firmware, you are kind of out of luck. But if you use ev3dev, then you could SSH in via USB without having to press any buttons on the EV3. Then you could set up bluetooth and/or wifi from the command line.
sakuragaoka2001
@sakuragaoka2001
@dlech Thanks for your reply. I like the solution described in the video. Where can I get more detailed information about it, notably how to connect the display to the pitch adapter?
David Lechner
@dlech
4 replies
sakuragaoka2001
@sakuragaoka2001
@dlech Thank you
Manuel Polacek
@manuelpolacek
Hello. I have problems to find a working wifi dongle. I saw the github page with the dongles, but i run into issues, that the version of the chip is not correct, seller couldn't tell my which chip and which chip version it is. Can someone recommend me a wifi dongle, which is working with the ev3dev and where i could buy it? Best case Europe/Germany.
Manuel Polacek
@manuelpolacek
I appreciate any suggestions...
Kees Smit
@KWSmit
https://www.conrad.nl/p/edimax-ew-7611ulb-wifi-stick-usb-20-wifi-bluetooth-150-mbits-1491083 Be sure not to buy the V2 version. This store (Netherlands) seems to have both. I think this is the right one, but do check it.
Manuel Polacek
@manuelpolacek
Cool. I'll check it now. Thank you very much.
Manuel Polacek
@manuelpolacek
Unluckily i was not able to order from conrad.nl, but conrad.de - looks like - is having the same one. i'll give it a try and will report. Thank you :)
David Lechner
@dlech
FYI, you can use lsusb to get the VID:PID to see what chip it is.
Manuel Polacek
@manuelpolacek
i'll give it a try, when the dongle arrives :)
Kees Smit
@KWSmit
Good luck
Manuel Polacek
@manuelpolacek
Unluckily this one does not appear in the wifi menu
Do i have to do some extra steps to get it running except put the usb inside?
David Lechner
@dlech
If your USB VID:PID doesn't match that one, you will need to research which driver might support your dongle and replace the VID:PID and 8188eu with the appropriate info
Manuel Polacek
@manuelpolacek
Then i guess, i got the wrong version. Ok, the one from conrad seems to be a newer version of it, i guess.
Which one are you using?
lsusb | grep '7392'
Bus 001 Device 023: ID 7392:a611 Edimax Technology Co., Ltd Edimax Wi-Fi N150 Bluetooth4.0 USB Adapter

lsusb | grep '0bda'
Bus 004 Device 007: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
sakuragaoka2001
@sakuragaoka2001
It seems to me that the batteries in the EV3 are connected in series, providing 9V voltage. Can somebody confirm that please?
17 replies
Kees Smit
@KWSmit
@manuelpolacek This is mine:
Bus 001 Device 002: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
David Lechner
@dlech

ID 7392:a611

I don't recall seeing this ID before. So you will have to do some research on Linux compatibility.

Olivier Martin
@omartin2010
hi folks - I have 2 brickpi3 core kits (minus the rechargeable battery) that I'd be happy to sell for a good deal to someone in this community if there is interest? If so pls DM me!
vimomi5301
@vimomi5301:matrix.org
[m]
Hey, hello. I am looking for an example how to use a touchsensor as an toggle switch in ev3dev python. Can anyone give advice?
Echo-lss
@Echo-lss
Hello! I meet some difficulties in using mindsensor RFID reader for ev3(see http://www.mindsensors.com/ev3-and-nxt/213-rfid-tag-reader-for-nxt-and-ev3-with-tag-kit?search_query=rfid+ev3&results=1). I want to use python3 instead of micropython to drive this rfid reader, but only micropython code is provided in the official website. Could any one help me?
Kees Smit
@KWSmit
@Echo-lss Try using smbus with python3. Maybe my examples on how to use CharmedLab's Pixy2 will help you. Have a look here for using Pixy with python3 and here for Pybricks. I think this will get you on your way.
Echo-lss
@Echo-lss
@KWSmit Thanks for your suggestions. I decided to change my code to pybricks-micropython so that I can use the mindsensor RFID easily. However, I meet another troublesome problem, that is about umqtt.robust. I used the same code as https://github.com/JorgePe/ev3-mqtt-micropython/blob/master/main.py, and it cannot work. The return error is OSError:[addrinfo error -8], and I don't know why. The mqtt broker I used is mosquitto broker 2.0.11.
Kees Smit
@KWSmit
@Echo-lss It's been long time since I worked with MQTT (and that was on ev3dev and Python3), but what I can remember is that it is important to use the same version of MQTT on all devices (incl. broker). Maybe you can ask Jorge to help you.
Lionel VEST
@MetallianFR68
Hi. Any idea how I can get the actual WIFI signal strength from EV3DEV (running on EV3 brick). I need a command line function
Ariharasudhan Muthusami
@ariharasudhanm
Is it somehow possible to use python2 language bindings for controlling motors and sensors in ev3dev. I have installed the latest version of ev3dev-stretch in the ev3 brick but it supports only python3.
David Lechner
@dlech
@MetallianFR68, try connmanctl.
Moopers8
@Moopers8
Hi! I am trying to restore the orginal EV3 software on a robot. I was not the one who installed EV3DEV so I don't have a whole lot of experience with it. Is there an easy way to do so?
David Lechner
@dlech
Just remove the SD card.
Moopers8
@Moopers8
@dlech I had actually tried that and it didn't boot afterward. About 20 minutes ago I formatted the sd card, popped it back in, and now it works great. Thanks!
arnaucresp0
@arnaucresp0
Hi I'm working on a project with ev3 with python and I need to use the color sensor to detect glasses with colored water and I do not find the best commands for it, or the way to calibrate if any one knows
tranceformad0r
@tranceformad0r
Hi folks, I'm trying now for 2 days getting lms2012-compat up and running on my EV3. I tried different things first with the newest R3 Release, now I'm on a fresh R2 Release, but still the same error: "Unsupported Platform" after entering sudo FK_MACHINE="LEGO MINDSTORMS EV3 + lms2012-compat" flash-kernel. I also checked that cat /proc/device-tree/model; echo and the line Machine in db.all match. My lms2012-compat version is 1.99.7. On this Release i did the sudo apt get update && apt get install lms2012-compat now I'll try also the sudo apt get upgrade but I'm not confident that this is it. I would really appreciate any help as I need lms2012 getting to work. Because I want a connection to Matlab for my university project. Alternatives for connecting Matlab with EV3 and Third-Party Equip (motor multiplexer and wifi-dongle in this case) are also very welcome :D
tranceformad0r
@tranceformad0r

...
update: while upgrading with sudo apt get upgrade there was a proplem with the initramfs-tools package (once again, had this also in previous try with the R3-release) and it exited with 1 error.
So I did it again and it showed me:

update-initramfs: Generating /boot/initrd.img-4.14.117-ev3dev-2.3.5-ev3 I: The initramfs will attempt to resume from /dev/zram0 I: (UUID=60cb656d-5ecf-4c02-8861-9d17285de579) I: Set the RESUME variable to override this. ... ... Taking backup of boot.scr. Installing new boot.scr. W: APT had planned for dpkg to do more than it reported back (0 vs 4). Affected packages: initramfs-tools:armel

I did

` sudo apt-get install initramfs-tools:armel
Reading package lists... Done
Building dependency tree
Reading state information... Done
initramfs-tools is already the newest version (0.130).
initramfs-tools set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.'

Now no more errors and everything upgraded. But still "Unsupported Platform." :(

shmezi
@shmezi
Hey, does this library support me using multiple ev3s in a chain if not, any idea of any other libs offer it / any work arounds :)
Thanks in advance, Alex
David Lechner
@dlech
You can use USB or Bluetooth to create network connections between EV3s using ev3dev.