|
Post by halfson on Sept 20, 2016 6:19:15 GMT -7
Hi I am a little bit noob on python, I could'nt understand how to run example modules. I have already uploaded the hex file via dobot tool. After then I did not do anything yet. Sorry for it, if anybody can help by explaining step by step. * I know I should work via COM5 but how can I set it? * If I run any module python doesn't run from *** import *** commands I moved all the files in a single file. * If I can run one module truely after that I think I will figure it out. * I must ask How can I completely sure FPGA versiyon is 1.0 or not?
|
|
|
Post by Max on Sept 20, 2016 20:29:21 GMT -7
1. Have a loot at example-driver.py : replace # driver = DobotDriver('COM4') driver = DobotDriver('/dev/tty.usbmodem1421')
with driver = DobotDriver('COM5') 2. I did not get "If I run any module python doesn't run from *** import *** commands I moved all the files in a single file." If you re-arrange the code you're on your own, I won't be able to help you. You shouldn't need to do that. What was the problem that made you move all the code into one file? 3. What "module" are you referring to? 4. The version of the FPGA board itself does not matter much, it was only referred to to identify the type of accelerometers installed. If they are the kind like on the pictures here github.com/maxosprojects/open-dobot/issues/23 then they are not supported and your FPGA board is effectively unusable unless someone reverse-engineer the SPI protocol for those accelerometers.
|
|
|
Post by halfson on Sept 20, 2016 23:52:54 GMT -7
Hi Max, thank you for your answers; I use default IDE of python, may be should I use another to run modules? 1. I replaced the code as seen, that is what I get if I run the code, 2. If I don't change original code and files, I will get an error; I can solve this problem by these changings, For 3. and 4. Thanks again...
|
|
|
Post by Max on Sept 21, 2016 0:13:34 GMT -7
I see. Perhaps that's because you execute it from an IDE.
If you revert all the changes, only set the port in the example and execute that example from command line it should work. You will need to switch to the directory where the example files resides with "cd whatever_folder" and run it with "python example-driver.py"
|
|
|
Post by halfson on Sept 21, 2016 1:40:03 GMT -7
Finally it works, thank you so much Max But in the first try I had the problem #2 we discussed. So I applied the solution below, I don't know why.
|
|
|
Post by Max on Sept 21, 2016 6:26:58 GMT -7
Probably because you have not reverted all the changes you'd made?
|
|
|
Post by halfson on Sept 22, 2016 0:14:32 GMT -7
I re-copied from maxosprojects/open-dobot; both master and the last release but problem continues. It doesn't important for me for now, I will inform if I find what the problem is.
|
|
|
Post by Max on Sept 25, 2016 15:35:50 GMT -7
|
|
|
Post by halfson on Nov 10, 2016 4:33:20 GMT -7
Hi Max,
I have not seen your question, sorry.
I noticed that I had the problem on python v3.5.2 but on v2.7.12 there is no problem. I tried your fix on v3.5.2 then it works. Thanks.
|
|
|
Post by halfson on Nov 14, 2016 23:39:29 GMT -7
Max hi,
Will you include this solution to the master?
|
|
|
Post by Max on Nov 16, 2016 11:33:20 GMT -7
done
|
|
|
Post by timinmb on Aug 7, 2018 8:03:07 GMT -7
I am running into this exact same problem with my com port. I selected com port 4 in the software and it says module not found.
Any chance it has something to do with the Arduino C++ file loaded? Which Arduino ino file belongs with this software?
|
|