had built an Relais - Array with servos, what presses/releases microswitches
to switch model railway circuits. that works wonderful except one servo
got warm and buzzed continously even without any order to do anything..
4 pwm pins of A.mega where used (3,4,5,6) , the one "buzzer" used pin3
watching the pin-diagram for A.mega i realized that pin 3 was marked as PWM/Int ,
the others only with PWM.
does Int causes the servo to act mysterious ?
then i connected same servo to pin7 (pwm) and all worked fine !
who can explain me what the int (interrupt ?) means on an pwm-pin ?
A number of pins can have more than one functionality. Based on your description, pin 3 can be an interrupt pin (input) or a pwm output or a general purpose IO pins.
by the way, i have tried that with bistable relays - that was discussed in older thread -, but they switched ocasionally without order too..that was not a solution..
my goal was to strongly separate controlling and powering circuits and use this with model railway with and without protocol..
as i have no oscilloscope i cant see whats going on at pin3
It's a very strange idea to use a servo/microswitch combination instead of a simple relais ( not bistable). Why didn't you try with simple relais? I use lots of relais on my model railway without any problem. I use servos to set turnouts only
as i was adjusting the servo-arms for postions to press the microswitches correctly,
i was not aware that problem and didnt realize it, because the on-job-times were
rather short.
The code for adjusting a servo is like example inVarSpeed-lib, only pin modified..
the speed is at 150.