TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136548 times)
  2. FAT32 Library (69740 times)
  3. Network Ethernet Library (55846 times)
  4. USB Device Library (46184 times)
  5. Network WiFi Library (41803 times)
  6. FT800 Library (40991 times)
  7. GSM click (28926 times)
  8. PID Library (26385 times)
  9. mikroSDK (26287 times)
  10. microSD click (25301 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Project

AC Dimmer, 230V

Rating:

0

Author: dany

Last Updated: 2016-02-18

Package Version: 1.0.0.0

Category: Power supply

Downloaded: 1605 times

Followed by: 3 users

License: MIT license  

Simple galvanic isolated dimmer (with triac phase control) for 230V AC.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "AC Dimmer, 230V" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "AC Dimmer, 230V" changes.

Do you want to report abuse regarding "AC Dimmer, 230V".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Project Blog

This is a very simple dimmer with a triac output (phase control). It uses timer0 to do the timing.


The control part (here a P12F629) is competely isolated from the 230V mains supply:
- the zero crossing detector contains an optocoupler (4N25 or similar),
- the drive of the triac also contains an opto coupler (MOC3025 or similar). Be aware: the latter optocoupler should NOT have a zero cross detection!

The 5V power supply is not drawn in the schematic.

The ignition angle can be set in the example by setting the value of Tmr0 at the end of the zero crossing detection. The example uses only these 3 values, see the comments below:

     Case Step of
        0: Tmr0 := 0;   // never ignite triac (delay > 10 ms)
        1: Tmr0 := 140; // low value = long delay = late ignition = low power
        2: Tmr0 := 175; // average power
        3: Tmr0 := 250; // high value = short delay = high power
      end;

Dimmer

Dimmer

Schematic diagram

View full image

The 230V mains is connected between pins 1 and 2 of the connector, the load (e.g. an incandescent lamp) is connected between pins 3 and 4.

2015-10-10: the circuit diagram has been adapted to the correct (with galvanic separation between the grid and the PIC) one.

ALSO FROM THIS AUTHOR

Expanders

5

Package with "Expander" librarie(s). For now only 1 library is there: PCF8574(A). The documentation for the (SPI) expanders 74HCT165 (input expander) and 74HCT595 (output expander) is added.

[Learn More]

PIC based timer

5

Another example of using the 12F629 in a very small project. Switches off electrical appliances after a number of hours. Time indication via LEDs. Both circuit diagram and code is provided.

[Learn More]

Tool: Libraries for PIC/dsPIC/PIC32

5

The tool permits to select MCU's that have a certain set of libraries available. This is important when developing libraries in packages that rely on the existance of other libraries.
For mP, mC and mB, PIC, dsPIC and PIC32.

[Learn More]