Answers.Body: <p>Smoking breadboard connectors are never a good thing - so check your wiring to make sure all is connected well. Also, make sure that you have the GND of your powersource connected to the GND of the RPi, so that all voltages are relative to the same ground potential. Finally, I'm not sure if the Servo will work with 6.5V - it has been designed to work on 9V. A different powersource might give better results.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-29T11:50:17.710Z
Answers.LastActivityDate: 2015-10-29T11:50:17.710Z
Answers.UserDisplayName: Phil B.
Body: <p>My 88004 servo does not move at all. Don't know how I should connect the wires correctly. </p>
  
  <p>I think the inner two cables are C1 and C2 and the outer two GND and VCC. </p>
  
  <p>When I connect 6.5V to the outer two cables the breadboard connector cables smoke up. I connected one GPIO from the RaspberryPI with a PWM frequency of 1200Hz to C1 and kept C2 at GND but nothing happened. </p>
  
  <p>I found a video on youtube with a wiring diagram for an Arduino to 88004 but there is also GND and VCC connected with outer cables.</p>
  
  <p>I orientated my Code like from the page <a href="https://bricks.stackexchange.com/questions/4886/how-to-control-a-88004-servo-motor-with-a-raspberry-pi">How to control a 88004 Servo Motor with a Raspberry Pi?</a></p>
  
  <p>Nothing happened with this Code (but I think the problem is my wiring):</p>
  
  <pre><code>import RPi.GPIO as GPIO
  
  GPIO.setmode(GPIO.BCM)
  
  GPIO.setup(12, GPIO.OUT)
  GPIO.setup(16, GPIO.OUT)
  
  Left = GPIO.PWM(12, 1200)
  Right = GPIO.PWM(16, 1200)
  
  Left.stop()
  Right.stop()
  
  Left.start(100)
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-26T19:50:56.590Z
Comments.Text: Can you post a schematic of your setup? Smoking breadboard connectors is not a good thing - and, 6.5V shouldn't cause any smoking unless you are pushing excessive Amps through the wires. Also, check http://philohome.com/pf/pf.htm for all the wiring details regarding LEGO PowerFunctions motors - for the servo you need both GND+VCC as well as C1 and C2. The motor won't move if you only use C1 and C2.
Comments.UserDisplayName: Phil B.
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-27T19:58:46.687Z
Comments.Text: My setup: RPi #16 - C1, RPi #12 - C2, 6.5V - VCC + GND
Comments.UserDisplayName: Matthias W
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-27T23:32:13.430Z
Comments.Text: so you have VCC connected to 6.5V and GND to the GND of the same 6.5V source? You will also need to connect GND to the RPi GND, otherwise there is no common reference between the VCC and the C1/C2 pins. Finally - the motor was made to run with 9V DC - it would be best if you tried a 9V source first.
Comments.UserDisplayName: Phil B.
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-28T19:21:27.337Z
Comments.Text: ok thank you now it works. there were two faults... i tried 12V and now the servo turns around. and i inverted the GND and VCC of the servo -> no smoke anymore.
Comments.UserDisplayName: Matthias W
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-10-29T11:50:13.373Z
Comments.Text: I've converted my comments to an answer.
Comments.UserDisplayName: Phil B.
Tags: <technic><motor><power-functions>
Title: Wiring and Controlling an 88004 servo from a RaspberryPI
UserDisplayName: Matthias W
ThreadText: # Wiring and Controlling an 88004 servo from a RaspberryPI
  
  (Asked by: username_0 on 2015-10-26)
  
  My 88004 servo does not move at all. Don't know how I should connect the wires correctly. 
  I think the inner two cables are C1 and C2 and the outer two GND and VCC. 
  When I connect 6.5V to the outer two cables the breadboard connector cables smoke up. I connected one GPIO from the RaspberryPI with a PWM frequency of 1200Hz to C1 and kept C2 at GND but nothing happened. 
  I found a video on youtube with a wiring diagram for an Arduino to 88004 but there is also GND and VCC connected with outer cables.
  I orientated my Code like from the page How to control a 88004 Servo Motor with a Raspberry Pi?
  Nothing happened with this Code (but I think the problem is my wiring):
  import RPi.GPIO as GPIO
  
  GPIO.setmode(GPIO.BCM)
  
  GPIO.setup(12, GPIO.OUT)
  GPIO.setup(16, GPIO.OUT)
  
  Left = GPIO.PWM(12, 1200)
  Right = GPIO.PWM(16, 1200)
  
  Left.stop()
  Right.stop()
  
  Left.start(100)
  
  **Tags:** technic, motor, power-functions
  > **Comments:**
  > **username_1**: Can you post a schematic of your setup? Smoking breadboard connectors is not a good thing - and, 6.5V shouldn't cause any smoking unless you are pushing excessive Amps through the wires. Also, check http://philohome.com/pf/pf.htm for all the wiring details regarding LEGO PowerFunctions motors - for the servo you need both GND+VCC as well as C1 and C2. The motor won't move if you only use C1 and C2.  
  > **username_0**: My setup: RPi #16 - C1, RPi #12 - C2, 6.5V - VCC + GND  
  > **username_1**: so you have VCC connected to 6.5V and GND to the GND of the same 6.5V source? You will also need to connect GND to the RPi GND, otherwise there is no common reference between the VCC and the C1/C2 pins. Finally - the motor was made to run with 9V DC - it would be best if you tried a 9V source first.  
  > **username_0**: ok thank you now it works. there were two faults... i tried 12V and now the servo turns around. and i inverted the GND and VCC of the servo -> no smoke anymore.  
  > **username_1**: I've converted my comments to an answer.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-10-29. Score: 2
  
  Smoking breadboard connectors are never a good thing - so check your wiring to make sure all is connected well. Also, make sure that you have the GND of your powersource connected to the GND of the RPi, so that all voltages are relative to the same ground potential. Finally, I'm not sure if the Servo will work with 6.5V - it has been designed to work on 9V. A different powersource might give better results.
  
  
  ---
  
  