# 12v square wave read

**URL:** <https://forum.xod.io/t/12v-square-wave-read/6539>\
**Category:** XOD Programming Questions\
**Created:** [April 21, 2023, 2:57pm UTC](https://forum.xod.io/t/12v-square-wave-read/6539 "2023-04-21T14:57:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![krugdu](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@krugdu](https://forum.xod.io/u/krugdu)\
**Post date:** [April 21, 2023, 2:57pm UTC](https://forum.xod.io/t/12v-square-wave-read/6539/1 "2023-04-21T14:57:53Z")

</div>

Is it possible to read a 12v square wave with analog input or digital read if i run it through a voltage divider on an Arduino? I’m not sure what the frequency range would be.

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [April 21, 2023, 5:13pm UTC](https://forum.xod.io/t/12v-square-wave-read/6539/2 "2023-04-21T17:13:40Z")

</div>

It should work, unless the frequency of the wave is too high, in which case Arduino will miss some of the transitions.

---

<div class="post-metadata">

**Author:** ![krugdu](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@krugdu](https://forum.xod.io/u/krugdu)\
**Post date:** [April 21, 2023, 5:15pm UTC](https://forum.xod.io/t/12v-square-wave-read/6539/3 "2023-04-21T17:15:04Z")

</div>

Thank you. I’ll give it a try.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [May 21, 2023, 5:15pm UTC](https://forum.xod.io/t/12v-square-wave-read/6539/4 "2023-05-21T17:15:43Z")

</div>

Closed on May 21, 2023, 5:15pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
