![]() ![]() So I looked at device manager (Windows 10) which shows an unknown device USB2.0-serial - so that is why I was thinking I had USB 2.0 ports and needed USB 3.0 ports. When I opened the arduino IDE I can select the board but not the port (the port is grayed out). What was bought was a starter kit from amazon (Arduino Starter Kit Uno R3 with All Sensors & Plastic Box for Robotics & Electronics) with a genuine uno R3 board and the square (printer type USB) cable Sorry guess I brought everyone to my confused state :( So (I hope others have had a similar issue, though I didnt find anything in a search here) please tell me I dont need a new(er) computer and that there is some converter that will allow the arduino to be used with the current computer?! :) (i am searching myself, but if someone already knows, it gets me the the arduino quicker! I can´t seem to find a place where the simpleFOCConnector.py is parsing the values from motor.Really didnt think that purchase through, did I? Note: It seems to me, that the commander is waiting for a CMD_MONITOR + a sub_cmd, before printing out the variables. This is from the MCU side, in the commander file: Self.angleNow = float(comandResponse.replace('angle:', '')) Self.velocityNow = float(comandResponse.replace('vel:', '')) ![]() ![]() Self.currentDNow = float(comandResponse.replace('Cd:', '')) Self.currentQNow = float(comandResponse.replace('Cq:', '')) Self.voltageDNow = float(comandResponse.replace('Vd:', '')) Self.voltageQNow = float(comandResponse.replace('Vq:', '')) Self.targetNow = float(comandResponse.replace('target:', '')) VarStr = comandResponse.replace('all:', '') ĭef parseMonitorResponse(self, comandResponse): (Code 43) A request for the USB device descriptor failed. When examining the properties of the device, the device-status is: Windows has stopped this device because it has reported problems. In the docs, under simpleFOCStudio, it said to use motor.monitor(). In the device manager I get a node under Universal Serial Bus Controllers: Unknown USB Device (Device Descriptor Request Failed). Am I missing something here ? It kinda look´s like sFoCStudio pulls the data, and that the motor.monitor() is not used by sFoCStudio, which would make it counterproductive to call it in the first place, unless you want that data in the arduino IDE serial monitor? The problem being, that you can't be connected to sFoCStudio and IDE monitor at the same time, so this will go unnoticed. But running motor.monitor() will not produce this. simpleFOCConnector.py, sFoC studio expects a identifier, before the monitoring variable. I am a bit confused about the motor.monitor() function. Now, I have been scrolling down the comandor code, and there is something I would like to understand. 10khz foc loop, while transmitting and parsing data. This makes sense when doing traditioned serial communication, but can create some "lag" when doing eg. Only one of these has a USB adapter built in. While sniffing around the USB communication between the device and sFoCStudio, I can see that there is a lot of USB data packages with just one character. The Arduino Mega has four hardware serial ports that can communicate with up to four different serial devices. As discussed in sFoCCommunity, there might be room for improving the communication between the controller and sFoCStudio, if the controller has a virtual USB port, capable of 64bit (full speed) USB 2.0. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |