Shop OBEX P1 Docs P2 Docs Learn Events
Problem with DHB-10 and Arduino Shield — Parallax Forums

Problem with DHB-10 and Arduino Shield

So I am building the Arlo robot.
Today I was testing the connection between the Arduino and the DHB-10. Then as described in the assembly guide I got the wrong number inputs for fwver and hwver.
So I did the troubleshooting part from the guide but I don't know how to fix the problem now. In the attached picture you can see what's written in the serial terminal. But I don't know what Y1\r means or how to fix it. If someone could help me it would be awesome.

Comments

  • Could you post photos of your setup, so we can see the wiring between the devices?

  • Not really because my camera is broken, but all the lights work how they are supposed to and I checked all the connections more than ones.
  • I did try to make the pictures with the front cam so they are not in top quality
    3554 x 2232 - 882K
  • just say if you need other pictures I will try to get better pictures tomorrow
    2921 x 3452 - 1M
  • They show the connections well.

    I'm not familiar with the Arduino setup, but does your Arduino have internal pull-up resistors activated ?
    Are you able to add a line to your Arduino code that disables internal pull-ups on the pins being used for communication with DHB-10 and try again ?

  • I tried it but nothing changed. Still only fwver 0 and hwver 0
  • but know the message is no reply (timeout) on both if I run the troubleshooting programm
  • To help any more I'd need to set up with the same shield and parts you are using.

    Is that an Uno hiding under the BOE shield ?

    In case no-one more expert chimes in beforehand, I'll set up a test jig on the weekend and see if I can figure out what's happening.

  • Sentrinity wrote: »
    but know the message is no reply (timeout) on both if I run the troubleshooting programm

    If you are getting the message no reply (timeout), that means the TX/RX pins were switched. I was trying to make the connection without the arduino shield, when I had the incorrect pin setup, I would get the timeout message.

    I actually just purchased the Arduino BOE shield as well to make the connections, and I am still failing this test; however, you should try to run the following tests: Test-Motor-Connections and Arlo-Test-Encoder-Connections. I am actually getting the motors to spin correctly, as well as the correct encoder counts. I think this may be some firmware issue.
  • VonSzarvas wrote: »
    To help any more I'd need to set up with the same shield and parts you are using.

    Is that an Uno hiding under the BOE shield ?

    In case no-one more expert chimes in beforehand, I'll set up a test jig on the weekend and see if I can figure out what's happening.

    Yeah the uno is under the BOE shield
  • geistmate wrote: »
    Sentrinity wrote: »
    but know the message is no reply (timeout) on both if I run the troubleshooting programm

    If you are getting the message no reply (timeout), that means the TX/RX pins were switched. I was trying to make the connection without the arduino shield, when I had the incorrect pin setup, I would get the timeout message.

    I actually just purchased the Arduino BOE shield as well to make the connections, and I am still failing this test; however, you should try to run the following tests: Test-Motor-Connections and Arlo-Test-Encoder-Connections. I am actually getting the motors to spin correctly, as well as the correct encoder counts. I think this may be some firmware issue.

    But where are the TX/RX pins? SO does your roboter work eventhough the dhb-10 connections is wrong but and the rest is fine?
  • VonSzarvas wrote: »
    They show the connections well.

    I'm not familiar with the Arduino setup, but does your Arduino have internal pull-up resistors activated ?
    Are you able to add a line to your Arduino code that disables internal pull-ups on the pins being used for communication with DHB-10 and try again ?

    Could the problems be with the motor wires because on one terminal the blue wire is left and on the other terminal the blue wire is right.
  • VonSzarvasVonSzarvas Posts: 3,272
    edited 2018-08-31 08:11
    Sentrinity wrote: »
    Could the problems be with the motor wires because on one terminal the blue wire is left and on the other terminal the blue wire is right.

    You've got them connected properly. The motors are bi-directional, so you only want to ensure you have the cables the same orientation on both sides - otherwise forward for motor 1 will be backward for motor 2 :)
    See this diagram that explains the pins. You're good with the motor wiring. Nice tidy connections and also nice short cables between the power board and your DHB-10.


    In the meantime, I found an UNO board, and an old BOE shield. Today is manic in the office, but I'll pop in over the weekend to test them out. I don't have a MEGA board unfortunately, which @geistmate was using, but I figure the issue will be the same. Let's see if I can spot something with a fresh pair of eyes on the matter.
  • VonSzarvasVonSzarvas Posts: 3,272
    edited 2018-08-31 08:13
    Here's that image
    2907 x 1749 - 180K
  • thank you
  • VonSzarvasVonSzarvas Posts: 3,272
    edited 2018-09-02 10:51
    Little update...

    Set up the circuit according to: http://learn.parallax.com/tutorials/robot/arlo/arlo-arduino-uno-boe-shield-brain/connect-boe-shield-dhb-10

    Run the test code to read fwver, etc... same problem as reported here.

    Checked the voltage levels, and it seems ch12 is OK, but ch13 (rx at the UNO) might not be getting low enough.

    It's off by about the value of an internal UNO 20K pullup resistor, so that could be one issue.

    Also noticed an on-board LED on that pin 13. I'm thinking that swapping to using the UNO (via the BOE carrier) pins P10 and P11 (instead of P12 and P13) might solve. Out of time today, but will come back to this soon.



  • VonSzarvas wrote: »
    Little update...

    Set up the circuit according to: http://learn.parallax.com/tutorials/robot/arlo/arlo-arduino-uno-boe-shield-brain/connect-boe-shield-dhb-10

    Run the test code to read fwver, etc... same problem as reported here.

    Checked the voltage levels, and it seems ch12 is OK, but ch13 (rx at the UNO) might not be getting low enough.

    It's off by about the value of an internal UNO 20K pullup resistor, so that could be one issue.

    Also noticed an on-board LED on that pin 13. I'm thinking that swapping to using the UNO (via the BOE carrier) pins P10 and P11 (instead of P12 and P13) might solve. Out of time today, but will come back to this soon.



    Maybe if I turn down the internal pullup resistor in the code? Maybe then it will work?
  • Hi Sentrinity,

    Did you ever solve your communication issue between your Arduino and the DHB-10?

    By the way, I believe that it is pin 12, not pin 13, on the Arduino that receives the transmitted response from the Propeller through Channel 2 on the DHB-10.

    Regards,
    TCIII AVD
  • Hi all,

    I'm now using this combination, Arduino UNO and BOE and I have the same issue. Could somebody solve this problema and can help me to solve it? I read some of the messages but I'm a little confuse.

    I think that the solution is between pins 12 and 13 or 10 and 11 or disable some pullups but I'm not shure which is the correct and how I need to do that.

    Thank you so much in advance.

    Best Regards,
    Pau
  • TCIIITCIII Posts: 81
    edited 2019-08-20 21:16
    @paumi,

    The communication issue is strictly a software timing issue and not a hardware issue.

    I have gotten correct responses from the DHB-10 using the Arduino Uno R3 by sending an information request, delaying around 10ms, and then sending the request again. Works every time.

    Checkout this thread for more information: forums.parallax.com/discussion/170266/problems-with-arduino-to-dhb-10-serial-connection#latest

    Regards,
    TCIII AVD
Sign In or Register to comment.