# Looking for an oscillator

**URL:** <https://discourse.nodered.org/t/looking-for-an-oscillator/85094>\
**Category:** General\
**Created:** [31 January 2024 21:50 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094 "2024-01-31T21:50:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [31 January 2024 21:50 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/1 "2024-01-31T21:50:16Z")

</div>

Hi,  
for a test setup i need a programmable oszillator to trigger a ADS1115 I2C A/D converter for 0.1 to 1 seconds at 6 to 12 kHz.  
Has anyone an idea how to realize this?

---

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [31 January 2024 21:57 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/2 "2024-01-31T21:57:57Z")

</div>

Oh sorry,  
i see its in the hardware section, should be in general. Can i move this over to general?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [1 February 2024 10:01 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/3 "2024-02-01T10:01:29Z")

</div>

did you try a google search with `programmable oscillator`?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 February 2024 15:44 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/4 "2024-02-01T15:44:34Z")

</div>

Do you mean you are looking for a programmable hardware oscillator that can be connected to a machine running node-red?

---

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [1 February 2024 18:50 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/5 "2024-02-01T18:50:54Z")

</div>

I was thinking about a software solution.  
A 'Hardware solution' might be setting up an i/o pin as pwm, connect it to an input pin and trigger with that the a/d conversion. Might work, but is it a 'clever' solution?  
@zenofmud : no i did a search in the node collection.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 February 2024 20:57 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/6 "2024-02-01T20:57:22Z")

</div>

I doubt whether you can drive an input pin on something like a Pi (if that is what you are thinking of) at 12kHz.

---

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [1 February 2024 21:03 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/7 "2024-02-01T21:03:26Z")

</div>

I never tested it, but i'm pretty shure you are right. This is why i am looking for an software solution.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 February 2024 21:29 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/8 "2024-02-01T21:29:15Z")

</div>

Doing anything in a pi at 12kHz is not going to work well. The Pi OS is not a real time OS, you cannot guarantee timing at that speed.

---

<div class="post-metadata">

**Author:** ![alexander77](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Post date:** [2 February 2024 07:30 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/9 "2024-02-02T07:30:07Z")

</div>

OK, looks like i need some hardware to do this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 May 2024 07:30 UTC](https://discourse.nodered.org/t/looking-for-an-oscillator/85094/10 "2024-05-02T07:30:34Z")

</div>

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