Jump to content

AJB2K3

Eurobricks Citizen
  • Posts

    106
  • Joined

  • Last visited

Everything posted by AJB2K3

  1. This Is the problems I found with my cross platform offline version. Trying to build the online version ment rolling out webusb which has its issues. @Bliss Thats why I chose to only open the port when running code otherwise you get access blocks/crashes. As bliss once said, my version is a dependency nightmare as its built for python and trying to find and install the correct dependencies in a pain and only getting worse as I add more function. In order to access the devices I am using both pyserial to access devices using a USB adapter but then have to use a the low level pyusb to access devices using PID and VID USB devices as they don't have working USB drives. A point of note about the Wedo1.0 hub - Apparently it doesn't act as a typical serial device but instead acts as a USB HID device. Even with the dependencies and knowledge I still cant get the USB tower to operate.
  2. I found out why the tilt sensor wasn't returning the values I was expecting. It is not a gyro, it is just a few pins that get shorted with a bearing. Once I discovered this the reading make sense.
  3. Nice, I'm having so much trouble trying to get code "samples" to work that I have accieved a grand total of 0 progress since adding Wedo 1.0
  4. https://github.com/Ajb2k3/ULI This is my offline version and so far I have 2 interface B, 1 RCX and WeDo 1.0 all operating from the same program. This unfortunately (I have just learned) uses Blocking commands which cause delays in the response of the program and the Interface B. I'm looking to implement non blocking asynchronous code but my brain has stopped braining. A broker is a light weight software that just receives and transmits messages between devices. It doesn't act on the message just sends them on. I still have to suss out implementing the Cybermaster, spybot and others but apparently with spybot then you get PF.
  5. I actually have on my desk a stand alone MQTT setup that doesn’t need external web access. It runs all the software on a single raspberry pi 4 with just local network only. I built it for testing M5Stack sensors and was built from a guide in the raspberry pi magazine
  6. I failed all my exams except for science. I resat my English and passed it 10 years after leaving school.
  7. I'm not sure If I have mentioned this before but I power my interface With a 1500mAh 3 S LIPO battery.
  8. I got a bit board and added WeDo1.0 to my test software. Turns out that gemini can handle code for it without problems.
  9. OMG this is growing amazingly. You said you didn't want to use port letters because of variables? Oh and BTW the flower Icon is actually a gear.
  10. If I recall correctly, there is no need as button function just returns true for pressed and false for not pressed.
  11. I tried adding save and load functions to my offline version and ended up braking it and having to restore it.
  12. That’s why I went off line as I had issue with web serial blocking the port, worst case I had was having to hard reboot the computer to reset the serial bus. it’s not just my own version but had the same with other software that accesses the bus like arduino, thonny and python if the bus connection isn’t force closed then a hard reset of the host machine is the only way, removing and reinserting usb devices doesn’t work i have had this with esp32 verities
  13. I wish I could understand bit masking because in my blockly it reads once then show the same value but in raw python it shows the changes in value. I got a second interface now just no mains to plug it in! Edit: Solved it, AI slop strikes again, There was some random code that was added by Gemini that was braking the sensor read but not just that, I defined the wrong port numbers!
  14. I was using idle from 3.14.7 but it was user error in my case as I forgot that the inp were request functions not command functions. I have an oddity with my code that in IDLE and Thonny the buffer get cleared and I can see changes in inputs but my IDE doesn't always register the changes to inputs.
  15. my interfaceB code is doing random things at the moment so having a play with yours @Bliss I cant get inputs to read using from legob import LegoB import time Lego1 = LegoB('/dev/cu.PL2303G-USBtoUART2420') time.sleep(1) Lego1.inp(1).val time.sleep(1) Lego1.close() I do get the conformation and the close messages.
  16. Ok had to download the image to view it but I see a speed computer (little yellow and gray thing with pulley wheels. but the bigger wider thing is the bionic manas which runs on the PF/Spybot IR system.
×
×
  • Create New...