# Basic ESC with Raspberry Pi

**URL:** <https://discuss.bluerobotics.com/t/basic-esc-with-raspberry-pi/137>\
**Category:** Speed Controllers (ESCs)\
**Tags:** basic-esc\
**Created:** [November 26, 2015, 7:25am UTC](https://discuss.bluerobotics.com/t/basic-esc-with-raspberry-pi/137 "2015-11-26T07:25:56Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![rjehangir](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/rjehangir/32/671_2.png) [@rjehangir](https://discuss.bluerobotics.com/u/rjehangir)\
**Post date:** [November 29, 2015, 4:56am UTC](https://discuss.bluerobotics.com/t/basic-esc-with-raspberry-pi/137/9 "2015-11-29T04:56:38Z")

</div>

Hi guys,

Okay. If you have an Arduino available you can use the “pulseIn” function to check the pulse width that’s being output and make sure it is correct. Here’s an example: [https://www.arduino.cc/en/Reference/PulseIn](https://www.arduino.cc/en/Reference/PulseIn)

I looked at your code and the Adafruit library. The 0.9 correction is actually for the frequency, not the input signal. You might try `pwm.setFreq(int(60*0.9))` instead and see if that helps.

If that doesn’t work, I have the same board sitting at the office and I can try your code our tomorrow with an oscilloscope.

I’m sure we can get this working!

Best,

Rusty

---

_[View the full topic](https://discuss.bluerobotics.com/t/basic-esc-with-raspberry-pi/137)._
