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?
Last Edit: Sept 20, 2016 7:17:11 GMT -7 by halfson
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.
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"