THIS IS THE TEST SITE OF EUROBRICKS!
Everything posted by AJB2K3
-
Dacta Control Lab Software
AJB2K3 replied to Dazmundo's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale ModelingI watched this yesterday, thanks for sharing. I'm planning to control mine over python or Micropython depending on which device I have to had at the time hence why I'm looking at low level I ordered mine from Germany!
-
Dacta Control Lab Software
AJB2K3 replied to Dazmundo's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale ModelingAfter running the initial sends to activate and wake up the Interface B I get the following response: b'\x00\x00\xff\xc8\x95L\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xa1' b'\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xb7' b'\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xb7' After that I don't see any changes if I press a button connected to input port 1. Why is the first line b'\x00\x00\xff\xc8\x95L\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xa1' And what is it trying to tell me? OK I got it now but will take a bit to read the data and translate it. Here is the basic python read code: import serial import time ser = serial.Serial(port='/dev/cu.PL2303G-USBtoUART24110') ser.write(b'p\0###Do you byte, when I knock?$$$') #ser.read(16) print(ser.read(31)) ser.flushInput() ser.flushOutput() while True: ser.write(b'2') #time.sleep(1) #ser.read(16) print(ser.read(19)) # Must always be 19 bytes #print(ser.read(2)) ser.flushInput() The following is a sample of the code reading the touch sensor on port 1 '\xcc3\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\x0b@\xff' b'3\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\x0b\x00\xff\xcc' b'\x03\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\x0b\x00\xff\xccs' b'0\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\x0b\x00\xff\xccs\x00' b'\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\x0b@\xff\xcc3\x00\x00' b'\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\x0b\x80\xff\xcc\xf3\x00\x00\xff' b'\xc8\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\x0c\x00\xff\xccr\x00\x00\xff\xc8' b'\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc\x0c\x80\xff\xcc\xf2\x00\x00\xff\xc8\xff' b'\xee\xc8\xff\xcc\xff\xc8\xff\xcc\r\x80\xff\xcc\xf1\x00\x00\xff\xc8\xff\xcc' b'\xc8\xff\xcc\xff\xc8\xff\xcc\x14\xd8\xff\xcc\x92\x00\x00\xff\xc8\xff\xcc\xff' b'\xff\xcc\xff\xc8\xff\xcc\x98\x88\xff\xcc^\x00\x00\xff\xc8\xff\xcc\xff\xc8' b'\xcc\xff\xc8\xff\xcc\xfe\xc8\xff\xcc\xb8\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff' b'\xff\xc8\xff\xcc\xff\x08\xff\xccw\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc' b'\xc8\xff\xcc\xff\x08\xff\xccw\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff' b'\xff\xcc\xff\x08\xff\xccw\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8' b'\xcc\xffH\xff\xcc7\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff' b'\xf7\xc8\xff\xcc\xb7\x00\x00\xff\xc8\xff\xcc\xff\xc8\xff\xcc\xff\xc8\xff\xcc'
-
Technic Pub
AJB2K3 replied to jantjeuh's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale ModelingI used to moan about the cost of lego sets and then someone showed me a price per piece way to calculate value. Prices have gone up because of part counts have gone up. That saying, the low end of parts per model has gone up. I drink a little Whisky but I've had two beers and a glass of mead and I'm done for the night, I once drunk 1L of saki in 3hours, Now I have a very low alcohol tolerance and get dunk easy.
-
[MOC] Technic RC Pneumatic Dump Truck
AJB2K3 replied to P McCatty's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale ModelingOh wow, very nice.
-
Dacta Control Lab Software
AJB2K3 replied to Dazmundo's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale ModelingHmm noting is changing in the read so I'm missing something.
-
Dacta Control Lab Software
AJB2K3 replied to Dazmundo's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale ModelingThanks, that's not a page I have seen yet.
-
Dacta Control Lab Software
AJB2K3 replied to Dazmundo's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale Modeling
-
Dacta Control Lab Software
AJB2K3 replied to Dazmundo's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale ModelingWell, thanks for your help but it turned out to be the pins were not as expected. My working code so far is as follows: For some reason the code function is not working.
-
Dacta Control Lab Software
AJB2K3 replied to Dazmundo's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale ModelingAh Ok so 34 is the bytes in the string sent Isn't the Stop LED supposed to go out when it gets received? Here is my code and response. Python 3.10.5 (v3.10.5:f377153967, Jun 6 2022, 12:36:10) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin Type "help", "copyright", "credits" or "license()" for more information. import serial ser = serial.Serial(port='/dev/cu.PL2303G-USBtoUART24110') ser.write(b'p\0###Do you byte, when I knock?$$$') 34 ser.read(16) However its seams to just sit there after issuing the ser.read(16)
-
Dacta Control Lab Software
AJB2K3 replied to Dazmundo's post in a topic in LEGO Technic, Mindstorms, Model Team and Scale Modelingp\0###Do you byte, when I knock?$$$ Hi Guys new here and only got got an Interface B. My eventual goal is to control it from an M5Go Microcontroller via an RS232 adapter using Micropython. Currently I have it connected to a MAC via a PL2303 Usb adapter and I'm trying to communicate over python. I think I may have activated the Serial connection but when I serial write the command p\0###Do you byte, when I knock?$$$ Python console returns 34 Is something wrong or am I not understanding something? Can anyone help me?
Sponsored Links