I'm using a raspberry pi, wheezy, raspbian, revision B. I'm
I'm connecting a servo motor with these specs:
Required Pulse: 3-5 Volt Peak to Peak Square Wave Operating Voltage: 4.8-6.0 Volts
Required Pulse: 3-5 Volt Peak to Peak Square Wave Operating Voltage: 4.8-6.0 Volts I want to turn the motor, play a sound, repeat.
Every time I turn the motor, then try to play the sound, the audio won't work (it spits out data in the command line as though it has worked, but it doesn't actually work).
What I've tried:
command line using wiringPi gpio pwm 1 1000 gpio pwm 1 0 omxplayer my_mp3.mp3 gpio pwm 1 1000 gpio pwm 1 0 omxplayer my_mp3.mp3
I tried writing a python script from RPIO import PWM
from RPIO import PWM
servo = PWM.Servo() # Add servo pulse for GPIO 17 with 1200µs (1.2ms) servo.set_servo(17, 1200) # Add servo pulse for GPIO 17 with 2000µs (2.0ms) servo.set_servo(17, 2000) # Clear servo on GPIO17 servo.stop_servo(17)
and when the script was done executing, I typed omxplayer my_mp3.mp3
omxplayer my_mp3.mp3 I tried both omxplayer and mpg321. It does the same thing regardless.
I thought maybe it was a focus issue, so I tried the screen command, creating a new instance of the screen, and closing it each time.
I also considered that since pin 18 is the hardware pwm, that perhaps trying a software pwm might help. NOPE. It's
It's as though the sound drivers are crashing once the motors move. Any ideas?