• Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by Filip

  1. Filip

    Quadrature Decoder

    This is a library for Designlab and Papilio Duo. The decoder module can have up to 4 encoders. For example 4 wheels on a mobile robot platform. Optionally this can be use with a PID regulator for controlling current position, velocity, and direction of an object. - The shown pins are totally optional - By default the Avr chip is disabled Download:
  2. Filip

    J1 Forth CPU on Papilio Duo

    I am interested although I have no Idea of Forth programming, but there are examples on In what form were your slides ? Filip
  3. Filip

    UART problem 10 Serial Ports

    Hey Jack, rx,tx were on the right pins ... but : 1. in arduino - one can write "if (Serial.available() >= 2)" , for the ZPUno the available() function is only showing if only one byte has arrived. (this is not documented). That is because the Fifo has only signals for full or empty. When I find time I will try to change that. 2. the 5V tolerant pins produced much interference to the data (first I tried them), and some weird error that I had to reset the FPGA by Hand after power up. 3. with pins 22,23 .... I managed the connections, but due to much interference and not a proper shielded cable I gave up on this Idea. The problem was I can not trust the data and have to implement some checksum . Maybe the UART is also too sensitive ? .. Filip
  4. Hello, at last I have time to play with FPGAs .. I wanted to connect arduinos trough serial to the Duo which then talks to the PC. I used the DesignLab example for "Multiple serial ports " and looked also in the Duo can talk to itself via the UARTS , but when I connect an Arduino (to uart 1 or change the code ..)there is no communication. I have only one Duo can someone else test ? Ediit : int inByte = 4;Serial1.write(inByte);Serial write works only with a constant , but print does not work at all. thanks, Filip
  5. Hello Kims, some of the libraries which come with Design lab were created with ISE 14.3 .. this are just warning and in this case you can ignore them. as for do you open a design lab project or it happens with every ISE project ? You should open design lab projects through design lab since it sets Paths and working space for ISE. Can you post your File->preferences -> ISE location path ? Filip
  6. Filip

    I2C and WiiChuck libraries.

    Hallo Andy, as per the library is ready and in DesignLab 1.0.6 and above. the example is the WiiChuck, which is a library so - or in the Designlab library folder on you computer. Filip.
  7. Hello Tom, this is really cool. I would like to buy one. Wold you inform us here when ready ? thanks, Filip
  8. Filip

    DesignLab 1.0.6 released!

    Hello mpcour, the PS2 example is software which can run both on the AVR chip and on the ZPUno. There is a circuit because the ZPUno is a soft- core/processor and by hitting the load circuit button you upload the ZPUno, after that you should upload the PS2 example code with the Upload button. There are more detailed tutorials and videos on As for the actual uploading I have also problems with this release. - Filip.
  9. Filip


    Mine arrived today - here are some photos:
  10. I read it is for a synchronous system : text from book binary counter example (after table 4.1) some more text Filip.
  11. Hello Jack, Lately I have little free time to spend on fun thing, but - with the delay () the mouse is working and if I held down a key on keyboard it gets really "interesting" .. I will implement the HDL controller and test the timer or use the avr bridge. Filip
  12. Hello Jack, Alvie, today I had some free time, and made (added keyboard functions to a mouse library ) an "Arduino library working on standard GPIO pins of the AVR and ZPUino". BUT since it has to work on all GPIO pins I can't use interrupts and have to use delay ().. I will test it tomorrow and I think it will work, but I really don't thing the usage of delay () here is good. I thought of using the FPGA and for the AVR Bridge (although it uses SPI which is maybe overkill ). What do you think ? Alvie what do you mean by "... it's already integrated" ? In the ZPUno 2.0 which is in Designlab 1.05 ? How can I figure out on which slot it is ? thanks. Filip
  13. Is this challenge still on? or will there be another?
  14. Filip

    pwrin pins

    Thanks Jack, will test my converter first , when I find some free time
  15. Filip

    pwrin pins

    Hello, Till know I power the board via the FPGA_usb port and the jumper. As far as I understand if I put 5V and GRD to the pwrin pins (and don't connect usb cables) I can provide power without worrying for the jumper position? If I leave the jumper unconnected (and provide power trough pwrin) can I still use the usb ports for UART debugging? Filip.
  16. Filip

    Robot Control Library

    Hello, the PID is a wishbone library now, but I'm not sure how to implement a easy changeable 'Sample clk' signal (its used as a timer - when to execute the PID) without adding a separate module, to the PID lib., who will generate the 'Sample clk' rate ... Actually I think I just have to use the code from the source : (pid_sample is later the Sample clk signal) if slv_reg_write_select = To_StdLogicVector(reg_select) then -- freq write freq_register <= Bus2IP_Data(C_DWIDTH-C_FREQ_DIV to C_DWIDTH-1); pid_sample <= not pid_sample; end if; if clk_count(C_FREQ_DIV-1 downto 0)=freq_register then clk_count := (others => '0'); -- Update clk -- pid_sample <= not pid_sample; end if;But may there is a better way... Filip
  17. Filip

    Robot Control Library

    thanks Jack, I can test the PID, will look into it tomorrow + the pwm since I will probably use it in my project later .. Filip.
  18. Filip

    Robot Control Library

    Jack, +1 from me. I think more Libraries is better even if they have overlapping parts. As fo the license maybe be like the ZPUno, but I guess it really depends how free you want to make it. Chris, I think they are both but at the end you take only what you select.... (this are thoughts from 5 min. code looking ) Filip
  19. Filip

    Quadrature decoder

    This is the topic for the Quadrature decoder library. Github link from where you can currently download it. It will be soon added to the Library section and a tutorial for it will be at Currently one module can track up to 4 encoders, each with two channels A and B. The library supports all Papilio boards. Filip.
  20. Filip

    Quadrature decoder

    Hello Chris, I use it also with PID reg. on my robot. I'm writing the tutorial now explaining how i connected everything - just need to find time for making pictures/video How many motors do you plan on using ? I / you can easy extend the encoder numbers to more than 4 in one module. Do you plan on writing the whole 3d printer firmware by yourself ? Maybe this guide will be interesting for you ( steps 15, 16 ..) Filip.
  21. Hello Juhizo, I tried the LiquidCrystal - Hello Word example. I assume you tried it on the Papilio Duo ? For me it only compiles for the Papilio One, if I want to use the ZPUno. IF I change the board to Papilio DUO-AVR-USB , to use the AVR chip it compiles just fine. Filip.
  22. this are posts from this topic Output voltage on pins (here for reference)
  23. Hello, from the' class="bbc_url">Papilio_Duo_schematic I assume that the not 5V tolerant pins are 3.3V ? So if I would use Logic Level Converters I could make them 5V tolerant right ? From the LTC3419EMS comes out also 1.2V which confuses me even more (it is written: "delays 1V2 start" so probably it has noting to do with the CPIO pin Voltage) Thanks Filip.
  24. Filip

    I2C and WiiChuck libraries.

    Cool, thanks for the libraries
  25. Hi everyone, I have a Mobile Robot and want to track wheel turns with Papilio DUO, but I have some approach questions/problems . I need to use the 5v tolerant pins. (because of the encoder). If I use the ZPUno the project would be like the Papilio_Duo_quick_Start, but with different code and only the 5v pins? But if I decide to use only VHDL: - after I write the code and create a schematic symbol do I have to connect it to the ZPUno or I can remove the ZPUno and proceed like a traditional FPGA project and schematic ? If the answer is that I have to connect the two, what communication should I implement? Filip