![]() Vw_set_ptt_inverted(true) // Required for DR3100 Serial.println("Initialize RF Link Rx Code") The servo just jitters and doesn't respond to input.Ĭode: Select all // RF LINK RECEIVER CODE The issue occurs when I try to write the pulse width to the servo through any of the pins, even the ones not controlled by Timer1 (used by VW). The transmitted pulse widths are between 13uS, and the pulse widths will show up on the Serial Monitor on the receiving Uno with no problem. The receiver is connected to an Uno, and the servo is also on that Uno. To do this, I hooked up my 315MHz transmitter and receiver, and a servo, and wrote some code that will send a pulse width from the position of a slide pot through the transmitter and to the receiver. I have finally come to the realization I will just need to run the servo on its own microcontroller, but before I bought one, I wanted to make sure that the VirtualWire and Servotimer2 libraries can control a servo remotely. ![]() I tried to regain control of pins 3 and 11 (which are controlled by Timer2) by removing the pins from the motor shield that connect to those pins on the Arduino, and just plugging in my servo to pin 3. I learned there was a conflict of timer use and there just wasn't enough hardware to work all of the boards at once.Įven with ServoTimer2, this wouldn't work because as I understand it, VirtualWire uses Timer1, ServoTimer2 uses Timer2, and the Motor Shield uses both Timer0 and Timer2. ![]() I originally ran into problems trying to use the motor shield, the virtualwire library, and the servo library. I have been working on making an RC car with two Arduino Unos (one for transmitting information from a controller, and one for receiving it on the car) and a motor shield (Arduino R3 version here. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |