Code Monkey home page Code Monkey logo

ac_control's Introduction

AC_control

Arduino library for AC phase controller with peak detection.

This library controls AC power through phase cutting, with a synchronisation signal based on peak detection rather than zero crossing detection. It makes use of pin change interrupts (on PORTD) and Timer1.

Please note: SYNC_PIN (receiving the peak transition pulse) must be conneted to a pin in PORTD, i.e. one of the digital pins 2-7. GATE_PIN can be connected to any digital or analog pin (except A6/A7). This library uses pin change interrupt on PORTD. This will cause problems if used with another library that tries to use the same interrupt vector (PCINT2_vect). This library uses Timer1 and timer interrupts. This library supports only one AC control unit per Arduino. It is currently limited to 50 Hz AC (this is a code limitation).

Phase cutting is an AC control technique using a TRIAC to control how much of the waveform is let through to the device. The later in the wave the TRIAC is switched on, the less power is transferred to the connected device.

Schematics

In the ./schematics folder are the complete schematics and PCB development files.

The V1 PCB has been tested and was found to have some issues: the TRIAC was connected incorrectly, and an optocoupler footprint was wrong. These issues have been corrected in the development version in the root directory.

The schematic has been tested by reworking bits of the V1 PCB, but the redesigned PCB has not been tested as such.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.