- This topic has 1 reply, 2 voices, and was last updated 2 years, 9 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › EByte LoRa e32 UART devices sx1262/sx1268 › 2c Arduino NANO and 2x E32 900T30D to control 5 Servo with LoRa
Hi everybody.
I’m working in a project with 2x arduino NANO + 2x E32 900T30D (transmitter – receiver) to remote control 5 servos.
After some struggle, I got everything working as planned with just one servo plugged in.
I then proceed to add other servos (SG90) (after a week from the “all worked with 1 servo).
After setup all the code and HW, when I boot the Arduino (receiver), the servos just “glitch” as the packets arrive to the E32 900T30D. Debugging the code I’ve reach a point that I don’t even write (servo1.write) nothing to the servos and they still “glitch” as when just after turned on. I’ve simplified the code, the electrical and all until reach the schema I was using last week when able to control just 1 servo, but now the problem of this glitch prevails.
I’ve already dismissed power issues (is the same with USB, external USB, Lipo with 5V regulator, direct power to servos, etc.)
I’m suspecting the E32 lib is messing with the timers used by the servo lib (if I ignore the this schema worked one week ago!).
Anybody has any idea?
(Please disregard differences from the scheme and code regarding pin numbers. Are different versions and the problem is not there (triple check those))
Hi Paulo,
sorry for the late response, but I receive too many messages during this period (I need help :P).
I checked the code, and It’s pretty plain; the library command you use has no delay or block on the timer. It only uses the standard command to read the stream.
The only thing I can suggest is to be sure that the message delimiter was correctly ended and re-check the power supply.
Bye Renzo
More
Just like a well-organized workbench, this website uses cookies to function properly and efficiently.
🛠️ The Essentials (Necessary): Some cookies are categorized as necessary and are stored on your browser because they are critical for the basic working of the site.
📊 The Analytics (Third-party): We also use third-party cookies to help us analyze traffic and understand which projects you like the most. These are stored only if you give us the green light.
You can choose to opt-out, but keep in mind that disabling them might make the site experience a bit less "smooth".
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
