FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5985 Discussions

FPGA communicating with H-Bridge

Ham1
Beginner
507 Views

Hi all,


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.

 


Any help is greatly appreciated.

Here is the Google drive link to the code files: https://drive.google.com/drive/folders/1krjX9-6z09WJnTHxSNiqIpNnaN6kTLmP?usp=sharing

Link for the H-Bridge in use: https://www.robotshop.com/ca/en/multimoto-4-channel-h-bridge-speed-controller-arduino.html

0 Kudos
4 Replies
ak6dn
Valued Contributor III
481 Views

So the first question would be do you see activity on the arduino header signal lines?

Do the PWMx lines toggle as expected (as viewed on a logic analyzer or oscilloscope)?

Is there SPI device communication with each of the selected motor control ICs? And is it as expected?

A logic analyzer with SPI protocol capability would be really useful for debug.

 

It could very well be your pin assignments are not correct (something simple to fix).

Or your internal code is not functioning correctly (more difficult debug).

Have you done a simulation of the design to verify your FPGA code is correctly operating?

0 Kudos
IntelSupport
Community Manager
417 Views

Hello Ham1,


First of all, we recommend to verify the signals with Signal Tap Logic Analyzer compared to your expected signals.


If you aren't familiar with Signal Tap Logic Analyzer, please see the following materials.


5. Design Debugging with the Signal Tap Logic Analyzer

https://www.intel.com/content/www/us/en/docs/programmable/683552/18-1/design-debugging-with-the-logic-analyzer-69524.html


SignalTap II Logic Analyzer: Introduction & Getting Started

https://www.youtube.com/watch?v=RtPqQ25hSIk


Thanks



0 Kudos
IntelSupport
Community Manager
377 Views

Hello Ham1,

 

Do you have any update? Or Has the issue been fixed?

 

Thanks


0 Kudos
IntelSupport
Community Manager
364 Views

We do not receive any response from you to the previous question/reply/answer that I have provided. This thread will be transitioned to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


0 Kudos
Reply