I'm generating a high rate of errors 10-20% when sending messages out via xbee connected to UART but only when I use PWM at the same time. I'm using UART2 and I've tested this behavior using all of the other available PWM pins. Below is a piece of simplified code that has a high error rate. When I comment out the section that turns the PWM signal on, the UART/xbee sends messages pretty much faultlessly.
What is the fix to eliminate the high error rate?
Errors : yes garbage characters on the receiver side
Cross-talk : so I have had a servo motor (powered from it's own ubec) plugged in, however I thought that the ubec noise might be interfering, so I tried running the PWM signal without any device attached (no servo ubec running) and no pwm wire plugged into the beaglebone. But still had the same issue.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/eabc977d-e1ea-4c07-abf3-6193fe8c2518%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Thu, Aug 31, 2017 at 3:13 PM, <ojc...@gmail.com> wrote:Errors : yes garbage characters on the receiver side
Cross-talk : so I have had a servo motor (powered from it's own ubec) plugged in, however I thought that the ubec noise might be interfering, so I tried running the PWM signal without any device attached (no servo ubec running) and no pwm wire plugged into the beaglebone. But still had the same issue.OK--so now can you test by losing the open/close ,disconnecting the XBee and jumpering TX and RX and writing some simple text out and checking that you receive it back correctly, while running PWM. If you see errors, then maybe beaglebone is sensitive to crosstalk; if you don't then the crosstalk must be in the XBee. BTW, suppying the servo from a separate power supply might not fully prevent interference--it could be kickback from driving the servo.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/a13bf443-af43-4b66-9e7f-6610cb12d95a%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
See the two pictures below - I have tried to simplify things a few times - but nothing seems to change the high error rate, although it might have decreased a bit - a few times it has been ~50% (That was when I was trying to run my Power HD MG1235 servo on a 7.2V UBEC)
The Xbee and PWM are on different sides of the BBB the only thing in common as per the picture below is the GND.
The code below shows the computer side of things to get you an idea of what is going on there - I've posted the contents of xbee_tools.py below - not that I think there's an issue there - just as FYI.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/07ggqchj9ikgv02cet2ifpplp4suvtql71%404ax.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/0991da40-d839-41e0-891e-cc192b270d61%40googlegroups.com.