GithubHelp home page GithubHelp logo

Doggo code seems not running about doggo HOT 12 CLOSED

nate711 avatar nate711 commented on July 16, 2024
Doggo code seems not running

from doggo.

Comments (12)

CrazyAZ avatar CrazyAZ commented on July 16, 2024

The LED will actually not start flashing until you have established a serial connection with the Teensy, so it is possible that the code is running but you have simply not been able to connect to it.

The first thing I would try is making sure that in config.h the line #define USE_XBEE is commented out. If it is not, the Teensy will be looking for communication from the XBee rather than the USB. Also make sure that your serial monitor is running at a baud rate of 115200.

from doggo.

caobencheng avatar caobencheng commented on July 16, 2024

Hi,Aaron, thank you for your reply. Now the teensy board starts to run after I comment the #define USE_XBEE, and it can output serial information for monitoring. However, the LED still not flash. And the serial output "IMU beginSPI failed (non-fatal)...". How can I enable the LED flashing? Why the SPI failed? Thanks. BEN

from doggo.

caobencheng avatar caobencheng commented on July 16, 2024

Hi, Aaron, I found the reason why the LED is not flashing after running. When the IMU thread fails, it will change the LED port to input type, so the LED will not flash. So, now I move the calling of BlinkThread after the calling of IMUThread in chSetup() , then the LED flashes normally.

from doggo.

CS4Liu avatar CS4Liu commented on July 16, 2024

Hi, Aaron, I found the reason why the LED is not flashing after running. When the IMU thread fails, it will change the LED port to input type, so the LED will not flash. So, now I move the calling of BlinkThread after the calling of IMUThread in chSetup() , then the LED flashes normally.

Hi, thanks for sharing your solution of the LED flashing problem. I spent much time there too.
But now, I meet another problem: when I send orders using USB Serial port, it seems the corresponding thread is working from the output in the Serial Monitor, but the motor has no action!
Do you have this problem too?
And I test on one motor, I connect teensy pin9 to Odrive GPIO1, pin10 to GPIO2. Is this right?
And I don't re-flash the ODrive firmware because the ODrive3.5 is perflashed with firmware.

from doggo.

caobencheng avatar caobencheng commented on July 16, 2024

from doggo.

CrazyAZ avatar CrazyAZ commented on July 16, 2024

@CS4Liu, you need to re-flash the odrives with the firmware we provide or else it will not work with our code. We modified the communications protocol in order to make it faster and also changed the closed-loop control code.

from doggo.

CS4Liu avatar CS4Liu commented on July 16, 2024

@CS4Liu, you need to re-flash the odrives with the firmware we provide or else it will not work with our code. We modified the communications protocol in order to make it faster and also changed the closed-loop control code.

OK, thanks very much. I missed this step.

from doggo.

CS4Liu avatar CS4Liu commented on July 16, 2024

Hi, I download the source code, make successfully and get the '.hex' file. But after I re-flashed, my ODrive is not be recognized when I start odrivetool. The screenshoot is like:
图片

I follows the ODrive docs to find my serial number. And run "odrivetool --serial-number 'my_number' ",but it don't works.
So I 'make clean' and 'make' again ,reflash the ODrive again. But comes another problem:wait for ODrive all the time:
图片

Do you know how to solve this?

from doggo.

SamitHashaN avatar SamitHashaN commented on July 16, 2024

Hi @caobencheng,
I am also following the same project. Flashed the firmware to odrive. But having issues with the Closed loop control. axis1 motor spis at a higher speed. Is there any solution for this?
Thank you.
Samith

from doggo.

caobencheng avatar caobencheng commented on July 16, 2024

from doggo.

caobencheng avatar caobencheng commented on July 16, 2024

Hi, Aaron,

I found I may have missed ordering the Sparkfun BNO080 IMU. I double check the Bom of Doggo project, and I have not found the Sparkfun BNO080 IMU listed in the BOM. Do I need to order the Sparkfun BNO080 IMU before I assembly the whole system?
Regards
BEN

from doggo.

CrazyAZ avatar CrazyAZ commented on July 16, 2024

It's weird that it is not in the BOM. You can assemble the whole system without it and add it later. The only thing you need it for right now is doing a backflip.

from doggo.

Related Issues (20)

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.