Code Monkey home page Code Monkey logo

Comments (18)

ironsheep avatar ironsheep commented on September 23, 2024

@Nij-alter what version of the code are you using and how did you download it? Have you tried the latest .zip files?

Also, do you the motor power going to both boards? (Maybe a silly question but I'm trying to be complete ;-)

from p2-bldc-motor-control.

Nij-alter avatar Nij-alter commented on September 23, 2024

I downloaded the entire folder from GitHub 2 days ago, and yes I have indeed connected power to both drivers with fuses on each of the +Ve lines. What I'm trying to understand is whether this is a software or a hardware problem

from p2-bldc-motor-control.

ironsheep avatar ironsheep commented on September 23, 2024

Yep, it can be hard to tell ;-)

I have experienced seating problems before with the boards. Make sure that both boards are securely on the pins. I keep the U-shaped protectors on the headers and press them down until the pins stop at the u-shaped headers. If you don't have the protectors then just make sure the tips of the pins are showing thru equally on all of the headers.

I don't know how your hardware is set up but if it is not too much trouble you could disconnect both boards and rotate the eval board uneath to move the boards to the other board's connectors, see if the problem moves with the board or stays with connector the board is attached to. Might help us isolate it.

from p2-bldc-motor-control.

Nij-alter avatar Nij-alter commented on September 23, 2024

oh, I am not using the eval board, I'm using the edge module with the mini breakout board. With that said I've tried to flip the drivers around and the results were the same, 16-31 are functional and 0-15 are not. I also measured the signal output of the pins and there is no PWM coming the latter.

from p2-bldc-motor-control.

ironsheep avatar ironsheep commented on September 23, 2024

ok, starting to sound like software... let me run tests on the current code base to see if I see the same thing... more in an hour or two...

from p2-bldc-motor-control.

ironsheep avatar ironsheep commented on September 23, 2024

I'm running similar platform to you. My System. I just ran the attached code (latest from the repo) and it's turning both motors. Please see if it does the same for you.

demo_dual_motor - Archive [Date 2022.07.14 Time 14.42].zip

NOTE: I'm running with 18.5V battery. You may need to adjust the power setting as it is set to PWR_18p5V. Make this match your power, first.

Also, just to make sure something wasn't broken, I set mine to PWR_12V (even with my using 18.5v) and the motors still turn correctly, just a tiny bit slower as expected.

from p2-bldc-motor-control.

Nij-alter avatar Nij-alter commented on September 23, 2024

i ran the code from the folder above and the result is still the same.

from p2-bldc-motor-control.

ironsheep avatar ironsheep commented on September 23, 2024

OK, then we are more likely chasing a hardware issue.

Q1: The consistent thing is that any "driver-board, motor" pair on p0-p15 doesn't work, am I right?

Q2: Do you have another mini-breakout board? Or do you have a JonnyMac board?

Q3: Do you have another P2 Edge module?

from p2-bldc-motor-control.

Nij-alter avatar Nij-alter commented on September 23, 2024

Q1: correct I have 2 sets of motor driver pairs and none of them are functioning on those pins

Q2/Q3: I do not have any other parts

is there a way to send like a dummy code to the 0-15 pins and check if they indeed can emit signals or not? something like analogwrite for Arduino ?

from p2-bldc-motor-control.

ironsheep avatar ironsheep commented on September 23, 2024

Oh, also, since you moved the boards to the other connector pair that also tested both motor-boards and both motors and they work, right?

Re: dummy code, yes. But it wouldn't accomplish anything as the pins on the motor boards are fixed to their locations.

We can go further in isolating the problem to specific P0-p15 pins by creating special software and then you looking for the signal we are writing to the pins. Do you have a logic analyzer or scope? Or what would you use?

We can also come up with some sort of signal or voltage to place on each pin to see if we can read those values at P0-P15.

In the end, we really need to know which part needs a replacement: (A) the P2 Edge or (B) the mini breakout board, right?
Am I missing anything?

from p2-bldc-motor-control.

Nij-alter avatar Nij-alter commented on September 23, 2024

yes exactly
I have an Arduino that I can use to read PWM and a multimeter.
would that help?

from p2-bldc-motor-control.

ironsheep avatar ironsheep commented on September 23, 2024

NOTE: please remove the motor board from P0-P15 before running these tests...

WRITE TEST

Ok, here's some sample code to simply toggle the pins 0-15. Set the low time and high time so you can see it change with the meter. Go to each pin and see which if any are not behaving correctly. (the code has repeat forever 3 sec LOW then 5 sec HIGH for all P0-P15 at the same time.)

test_pins_toggle - Archive [Date 2022.07.14 Time 17.11].zip

After you check all 16 pins you will know if you have an output problem.

READ TEST

The next thing you'll want to do is read from all 15 pins and display the output. Run the next archive with debugging on then simply ground each pin one by one and you will know which pins are not reading correctly after you've tested them all.

test_pins_read - Archive [Date 2022.07.14 Time 17.24].zip

After you check all 16 pins this time, you will know if you have any input problems.

ISOLATE P2 EDGE vs. Breakout board

I look forward to hearing what you find. Of course, the next step is to focus on seeing if the issue is with the P2 EDGE or the breakout board. You might be able to check this by probing the failing pins at the edge connect as it goes into the socket. Learning which pins are failing first will make this later probing easier in that you only need to check the pins that are failing.

This help?

from p2-bldc-motor-control.

Nij-alter avatar Nij-alter commented on September 23, 2024

yess i did this write test

when the pins are supposed to be high, all the pins show 3.3V except 8-10 which show 0V

from p2-bldc-motor-control.

ironsheep avatar ironsheep commented on September 23, 2024

Good to see a result, not happy at it of course.

Let's see what you have for the read side?

Also, do you see anything that could be grounding those three pins?

Have you tried removing and re-seating the P2 Edge module? And was it seated well to start with?

from p2-bldc-motor-control.

ironsheep avatar ironsheep commented on September 23, 2024

@Nij-alter any more news/findings?

from p2-bldc-motor-control.

Nij-alter avatar Nij-alter commented on September 23, 2024

no, I gave up, to be honest, the project is timely and I need to figure out how to drive the motors some other way ...

from p2-bldc-motor-control.

ironsheep avatar ironsheep commented on September 23, 2024

Sorry to hear... is there anything near the board underneath that could be shorting?

Anyway, let me know if you have any further questions...

from p2-bldc-motor-control.

Nij-alter avatar Nij-alter commented on September 23, 2024

nope it was on a wooden surface. thank you for all the help. cheers

from p2-bldc-motor-control.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.