# Possible to use XOD w/ SCT-013-000 Current Sensor?

**URL:** <https://forum.xod.io/t/possible-to-use-xod-w-sct-013-000-current-sensor/6317>\
**Category:** Uncategorized\
**Created:** [November 8, 2022, 3:13am UTC](https://forum.xod.io/t/possible-to-use-xod-w-sct-013-000-current-sensor/6317 "2022-11-08T03:13:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigjoncoop](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/bigjoncoop/32/3676_2.png) [@bigjoncoop](https://forum.xod.io/u/bigjoncoop)\
**Post date:** [November 8, 2022, 3:13am UTC](https://forum.xod.io/t/possible-to-use-xod-w-sct-013-000-current-sensor/6317/1 "2022-11-08T03:13:27Z")

</div>

Hey my fellow DIY’ers,

I’ve been curious about using graphical / visual programming for the arduino for a while now.

I have a fairly simple project I would like to make but when it comes to writing a sketch for the Arduino I’m completely lost. I have Dibble and Dappled with Arduino sketches in the past but mainly just modifying existing code and barely getting into work…

This project would entail using a AC current sensor (SCT-013-000) and a voltage divider in order to read DC voltage and multiply the two together and output the value onto a LCD screen.

Is this something that can be done using XOD? I would assume this would be fairly easy as long as there is a “Module / Node” for the SCT-013-000 Current Sensor within XOD.

Thanks guys. Also if this is possible, any advice or pointers you can give me would be greatly appreciated.

---

<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:** [November 8, 2022, 4:11pm UTC](https://forum.xod.io/t/possible-to-use-xod-w-sct-013-000-current-sensor/6317/2 "2022-11-08T16:11:02Z")

</div>

Looks like you can create a XOD wrapper ([Wrapping Class-based Arduino Libraries — XOD](https://xod.io/docs/guide/wrapping-arduino-libraries/)) for [GitHub - openenergymonitor/EmonLib: Electricity monitoring library - install in Arduino IDE's libraries folder then restart the IDE](https://github.com/openenergymonitor/EmonLib) and just create a single node that calls emon1.current(, 111.1) \* 230.0 (those two constants might need changed for different voltages, etc.)

An example of probably many pages with information on how to setup this sensor: [SCT-013-000 Split Core Current Transformer, 100A, 50A, 30A](https://innovatorsguru.com/sct-013-000/). There may be other libraries or sample code that could be used directly in XOD rather than needing to import a library.

---

<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:** [December 8, 2022, 4:11pm UTC](https://forum.xod.io/t/possible-to-use-xod-w-sct-013-000-current-sensor/6317/3 "2022-12-08T16:11:15Z")

</div>

Closed on December 8, 2022, 4:11pm UTC

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