
Taubore
Canada
Asked

Could someone help me understand why I am getting this exception with the Wheel Encoder Counter skill?
I uploaded the firmware DJ's UNO Firmware with Wheel Encoder Counter (Feb 8, 2019) on my Arduino UNO from this link: Arduino Uno Firmware by following the steps in this tutorial: Connecting Arduino to ARC.
I connected the wheel encoders to port D2 and D3 on the UNO.
I connected my UNO to the EZ-B via UART, making sure I connected the TX to RX, the RX to TX, and a common GND. I also provided 5V for the UNO.
Despite this, I get the following error:
System.Exception: The connected device does not support the required capability to count Wheel Encoding
at Wheel_Encoder_Counter.FormMain.readValues() in C:\Documents\SVN\Developer - Controls\In Production\Wheel Encoder Counter\Wheel Encoder Counter\FormMain.cs
Did I miss something? Do you have any idea what I might have done wrong?
Note: I tried the following baud rates in the .INO file: EZ-Genuino_Wheel_Encoder_Uno.ino
#define _BAUD_RATE 57600 // Original
#define _BAUD_RATE 115200
#define _BAUD_RATE 9600
Related Hardware EZ-B v4
It sounds like you've done a lot of the setup correctly, but there are a few things we can check to troubleshoot the issue with the Wheel Encoder Counter skill. Let's go through the steps to ensure everything is set up properly:
1. Verify Firmware Upload
Ensure that the firmware was uploaded correctly to the Arduino UNO. You can do this by opening the Arduino IDE, selecting the correct board and port, and uploading the
EZ-Genuino_Wheel_Encoder_Uno.ino
file.2. Check Connections
Double-check the connections between the Arduino UNO and the EZ-B v4:
3. Baud Rate Configuration
Make sure the baud rate in the Arduino firmware matches the baud rate set in the ARC project. The default baud rate in the firmware is 57600. If you change it in the firmware, you must also change it in the ARC project settings.
4. ARC Configuration
Ensure that the Wheel Encoder Counter skill in ARC is configured correctly:
5. Debugging
Enable debug information in the Wheel Encoder Counter skill to get more detailed logs:
6. Verify Arduino Serial Communication
You can use the Arduino Serial Monitor to verify that the Arduino is sending data correctly:
7. Check for Firmware Updates
Ensure you are using the latest version of the firmware. Sometimes, updates may include bug fixes or improvements.
Example Configuration
Here is an example of how your configuration might look:
Arduino Firmware (
EZ-Genuino_Wheel_Encoder_Uno.ino
)ARC Configuration
Additional Resources
Conclusion
If you have verified all the above steps and the issue persists, please provide the debug logs from the Wheel Encoder Counter skill. This will help in diagnosing the problem further. Feel free to ask more questions if you need additional clarification or assistance!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
@Athena, thanks for your response. In the section 4, I can't find COM port and baud rate in the Wheel Encoder Counter skill configuration as you indicated. Is this a mistake you made? Can you give me more information about these configurations?
I apologize for the confusion. You are correct; the Wheel Encoder Counter skill does not have a direct configuration for COM port and baud rate within its settings. Instead, the communication setup is handled through the Arduino firmware and the UART connection to the EZ-B v4. Let's clarify the steps and focus on the correct configurations:
Correct Steps for Configuring Wheel Encoder Counter Skill
Upload Firmware to Arduino UNO:
EZ-Genuino_Wheel_Encoder_Uno.ino
firmware to your Arduino UNO using the Arduino IDE.#define _BAUD_RATE 57600
).Connect Arduino UNO to EZ-B v4:
Configure UART in ARC:
Example Configuration in ARC
Step-by-Step Configuration:
Add UART Control:
Project
tab and click onAdd Control
.Communication
and selectUART
.Configure UART Control:
Add Wheel Encoder Counter Skill:
Project
tab and click onAdd Control
.Navigation
and selectWheel Encoder Counter
.Enable Debug Information:
Display debug information
checkbox to enable detailed logs.Example Code for UART Initialization in ARC
Debugging Steps
Verify Arduino Serial Communication:
Check ARC Logs:
Conclusion
By ensuring the UART control in ARC is correctly configured and matches the baud rate set in the Arduino firmware, you should be able to establish proper communication between the Arduino and the EZ-B v4. If you encounter any issues, please provide the debug logs from the Wheel Encoder Counter skill for further assistance.
Feel free to ask more questions if you need additional clarification or assistance!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
@Athena, the tab "Add control" doesn't exist. Do you want to say "Add Robot Skills"? If yes, important to mention also that the "UART Control" doesn't exist.
Where can I find the debug logs from the Wheel Encoder Counter?
Thank you for pointing that out. Yes, I meant "Add Robot Skills" instead of "Add Control." I apologize for any confusion. Let's correct the steps and provide more accurate guidance.
Correct Steps for Configuring Wheel Encoder Counter Skill
Upload Firmware to Arduino UNO:
EZ-Genuino_Wheel_Encoder_Uno.ino
firmware to your Arduino UNO using the Arduino IDE.#define _BAUD_RATE 57600
).Connect Arduino UNO to EZ-B v4:
Add and Configure Wheel Encoder Counter Skill in ARC:
Project
tab and click onAdd Robot Skills
.Navigation
and selectWheel Encoder Counter
.Enable Debug Information:
Display debug information
checkbox to enable detailed logs.Debugging Steps
Verify Arduino Serial Communication:
Check ARC Logs:
Example Configuration in ARC
Step-by-Step Configuration:
Add Wheel Encoder Counter Skill:
Project
tab and click onAdd Robot Skills
.Navigation
and selectWheel Encoder Counter
.Enable Debug Information:
Display debug information
checkbox to enable detailed logs.Example Code for UART Initialization in ARC
Since there is no direct UART control in ARC, the communication is handled by the Wheel Encoder Counter skill itself. Ensure that the Arduino firmware and the physical connections are correct.
Checking Debug Logs
Enable Debug Information:
Display debug information
checkbox.View Logs:
Conclusion
By ensuring the Wheel Encoder Counter skill is correctly configured and the debug information is enabled, you should be able to see detailed logs in the ARC console output. This will help in diagnosing any issues with the communication between the Arduino and the EZ-B v4.
If you encounter any issues, please provide the debug logs from the Wheel Encoder Counter skill for further assistance. Feel free to ask more questions if you need additional clarification or assistance!
I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
OK, thank you, my problem seems to come from my UNO (firmware). I do not receive anything in the serial monitor of the Arduino IDE. I will go deeper in this direction.
Is the ardunio connected to ARC on ezb index 0?
i think it has to be on index 0
Yes, it is connected to index 0.
Note that when I do the following tutorial everything works, with the same connections. Use Arduino for Wheel Encoder