I was wondering how to proceed with using the H-bridge to control the Motor. I have an FPGA Board (Intel Cyclone V De0-Nano-SoC), I have generated a PWM Signal, and a SPI interface. Created a Top model but unfortunately can’t still get it to communicate with the H-bridge. It works fine with the aurdnio but no luck here.
I have a Cyclone V De0-Nano-SoC board and a multi motor h-bridge that works fine with an Arduino, but doesn't want to communicate with the fpga. I want to start out by controlling one DC motor and then increase it to 4. At the moment, I have 2 sub-modules (one that generates a PWM signal and one that is an SPI interface to communicate with the H-bridge). Then I have a top-module that calls both the PWM and SPI sub modules. Once I select my pins and plug in the DC motor, nothing really happens.
Any help is greatly appreciated.
Here is the Google drive link to the code files: [ UPLOAD PROJECT FILES FROM FILE SHARING SERVICE ]
An SPI Interface is a synchronous Interface. Thus there is no option for the slave to 'not want to communicate'.
Please give a detailed error description.
Unclear points so far:
- How did you wire the FPGA to the motor controller board? Did you actually connect all necessary signal to run a motor?
- Which SPI commands do you want to send to the controller, how do you start a SPI transmission?
An SPI Interface is a synchronous Interface. Thus there is no option for the slave to 'not want to communicate'.
Please give a detailed error description.
Agreed. I should have said that the pwm signal sent to the H-bridge seems not be getting there. I double checked the manual and the pin assignments for the board look to be right. I am also sending an enable signal to enable the H-bridge (which should light up the LED on the H-bridge) but this doesn't seem to work either. So I guess my error is getting the H-bridge working
Unclear points so far:
- How did you wire the FPGA to the motor controller board? Did you actually connect all necessary signal to run a motor?
- Which SPI commands do you want to send to the controller, how do you start a SPI transmission?
The H-bridge sits on the Arudino header of the board. I followed the pin assignment from the manual so i dont think thats the issue. I want to send the PWM signal to the H-bridge. I use an enable signal to enable the H-bridge through SPI transmission (maybe that could be the issue). I haven't dealt with hardware with too much depth so I'm not too sure
So, your simulation looks correct. Your input signals measured with a scope look correct. The only other possibilities are a defective chip, or shorted outputs.