-
Notifications
You must be signed in to change notification settings - Fork 30
Description
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.