Community
cancel
Showing results for 
Search instead for 
Did you mean: 
ARami7
New Contributor I
952 Views

How do i power my servo motor?

Jump to solution

I dont have a bread board or bare connectors to power my servo motor by using the pins, instead im trying to power my motor using another set of pins shown below:

What's the C++ code to turn on or power these? (if possible)

1 Solution
Carlos_M_Intel
Employee
97 Views

Hi AdanChristo,

The pins you are trying to use are not designed for that purpose, these pins are used to program the Internal Flash Memory of the board with a debugger like a DediProg or another.

[http://www.intel.com/content/dam/support/us/en/documents/galileo/sb/galileo_fabh_schem_120514.pdf Galileo Gen2 Schematic - Page 18]

I suggest you to first check the requirements of the servo you are using, if you try to power the servo with the board but the servo requires more power it could damage the board. Take a look at the http://www.intel.com/content/dam/support/us/en/documents/Galileo-Edison_ShieldTestReport_330937-002.... Board Shield Testing Report, you will find some configurations with servos that may help you.

About the code to make it work, check the examples on the Arduino IDE for Servos File>Examples>Servo these examples are for Arduino. Currently, there are no examples for C++ but you can use the MRAA and UPM libraries to control the different GPIOs on the board.

http://iotdk.intel.com/docs/master/mraa/ mraa: Main Page

https://github.com/intel-iot-devkit/mraa/tree/master/examples/c%2B%2B mraa/examples/c++ at master · intel-iot-devkit/mraa · GitHub

http://iotdk.intel.com/docs/master/upm/ upm: Main Page

https://github.com/intel-iot-devkit/upm/tree/master/examples upm/examples at master · intel-iot-devkit/upm · GitHub

I hope this gives you an idea on how to continue on your project.

Regards,

Charlie

View solution in original post

2 Replies
Carlos_M_Intel
Employee
98 Views

Hi AdanChristo,

The pins you are trying to use are not designed for that purpose, these pins are used to program the Internal Flash Memory of the board with a debugger like a DediProg or another.

[http://www.intel.com/content/dam/support/us/en/documents/galileo/sb/galileo_fabh_schem_120514.pdf Galileo Gen2 Schematic - Page 18]

I suggest you to first check the requirements of the servo you are using, if you try to power the servo with the board but the servo requires more power it could damage the board. Take a look at the http://www.intel.com/content/dam/support/us/en/documents/Galileo-Edison_ShieldTestReport_330937-002.... Board Shield Testing Report, you will find some configurations with servos that may help you.

About the code to make it work, check the examples on the Arduino IDE for Servos File>Examples>Servo these examples are for Arduino. Currently, there are no examples for C++ but you can use the MRAA and UPM libraries to control the different GPIOs on the board.

http://iotdk.intel.com/docs/master/mraa/ mraa: Main Page

https://github.com/intel-iot-devkit/mraa/tree/master/examples/c%2B%2B mraa/examples/c++ at master · intel-iot-devkit/mraa · GitHub

http://iotdk.intel.com/docs/master/upm/ upm: Main Page

https://github.com/intel-iot-devkit/upm/tree/master/examples upm/examples at master · intel-iot-devkit/upm · GitHub

I hope this gives you an idea on how to continue on your project.

Regards,

Charlie

View solution in original post

ARami7
New Contributor I
97 Views
Reply