Skip to content

SG90 Servo Disrupts Receiver While Attached #4

@KonradMcClure

Description

@KonradMcClure

I've been trying to put together a test program to test each component together before it's assembled, and I ran into an odd problem that took awhile to pin down.

I'm not sure if something changed in the libraries, but while the SG90 Servo is attached (myservo.attach(A5);) and the TSOP4838 is enabled (irrecv.enableIRIn();) the servo motor "vibrates" idly and the IR receiver just pumps out random values. I assume some kind of interrupt or timer is shared between the two and disrupting them, but I haven't been able to nail it down. Loading up the plotter sketch, the same thing is happening. The only difference I can find in our hardware is that my TSOPs only work from 4.5-5.5V rather than the lower voltage version you had used.

I'm currently trying to address it by only temporarily attaching the servo when it needs to move, but I have the feeling that's not going to be viable in a real test. If you have any ideas as to what might be causing this I'd love to hear it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions