Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I meant that using the PWM option would be longer to implement compared to something easier such as a lookup table as you suggested. I think the lookup table option you suggested is exactly what I was looking for. It is fast and provides a quick way to tune frequency. Thanks. Commented Jun 23, 2016 at 17:44
  • You still need both. And the PWM option is very difficult to implement, at most, you'll need to learn how interrupts work, and how PWM works, which might be a lot of work, but should be worthwhile if you're interested in Arduino in general. Commented Jun 23, 2016 at 18:04
  • @uint128_t: Did you mean "not very difficult..."? Commented Jun 23, 2016 at 18:29
  • @JRobert I did, thank you. OP: PWM is not very difficult. Commented Jun 23, 2016 at 19:32