The MPlabx version of fg004_a
Go to file
jakeg00dwin eba8344e36 Implimented Load detection module that auto cuts G1, G2 and G3 if values on the ADC_LOAD pins is outside parameters. 2024-07-02 17:16:53 -07:00
.generated_files/flags Updated the repo with the load.h and load.c files in order to impliment the Low Power Operation Mode. 2024-07-02 15:27:57 -07:00
build/default Updated the repo with the load.h and load.c files in order to impliment the Low Power Operation Mode. 2024-07-02 15:27:57 -07:00
dist/default Adding the binary output as well 2024-07-02 08:45:33 -07:00
nbproject Implimented Load detection module that auto cuts G1, G2 and G3 if values on the ADC_LOAD pins is outside parameters. 2024-07-02 17:16:53 -07:00
queuelogs Implimented Load detection module that auto cuts G1, G2 and G3 if values on the ADC_LOAD pins is outside parameters. 2024-07-02 17:16:53 -07:00
.gitignore Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00
ADC.c Implimented Load detection module that auto cuts G1, G2 and G3 if values on the ADC_LOAD pins is outside parameters. 2024-07-02 17:16:53 -07:00
ADC.h Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00
Doxyfile Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00
Makefile Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00
README.md Updated the readme file 2024-07-02 15:32:58 -07:00
RegEdit.c Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00
RegEdit.h Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00
TriacOut.c Updated the repo with the load.h and load.c files in order to impliment the Low Power Operation Mode. 2024-07-02 15:27:57 -07:00
TriacOut.h Updated the repo with the load.h and load.c files in order to impliment the Low Power Operation Mode. 2024-07-02 15:27:57 -07:00
config.h Implimented Load detection module that auto cuts G1, G2 and G3 if values on the ADC_LOAD pins is outside parameters. 2024-07-02 17:16:53 -07:00
defmplabxtrace.log Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00
defmplabxtrace.log.inx Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00
load.c Implimented Load detection module that auto cuts G1, G2 and G3 if values on the ADC_LOAD pins is outside parameters. 2024-07-02 17:16:53 -07:00
load.h Implimented Load detection module that auto cuts G1, G2 and G3 if values on the ADC_LOAD pins is outside parameters. 2024-07-02 17:16:53 -07:00
main.c Implimented Load detection module that auto cuts G1, G2 and G3 if values on the ADC_LOAD pins is outside parameters. 2024-07-02 17:16:53 -07:00
zero_cross_detection.c Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00
zero_cross_detection.h Converted the template unix project to mplabx 2024-07-01 17:53:09 -07:00

README.md

FG004_A(Low Power Mode)

Description

This embedded firmware is the testing mode for the triac software.

It causes the attiny404 to generate pulses continuously, which are delayed by a value configured in the config.h file.

The timing is done after the PZC(positive zero crossing) of the AC input waveform.

Micro Controller Pins

ATtiny404

  1. VDD(+5v)
  2. PA4(ADC_LOAD1)
  3. PA5(ADC_LOAD2)
  4. PA6(ADC_LOAD3)
  5. PA7(zerocrossing)
  6. PB3(G2)
  7. PB2(G3)
  8. PB1(SDA)
  9. PB0(SCL)
  10. RST(NC)
  11. PA1(G1)
  12. PA2(NC)
  13. PA3(NC)
  14. VSS(GND)

key NC:: Not Connected PBX:: Port B pin X PAX:: Port A pin X RST:: Reset pin

Project Layout

Documentation that has been generated is inside the docs folder which contains the html output that can be browswed via your regular web browser.

PDF genreation from the doumentaiton is also possible if enabled through the Doxyfile inside the projects root directory.

The build directory contains the output and makefiles genrerated automatically when using CMake.

This build directory also holds the bin files genreated along with the hex and elf files.

Build Requirements

  • AVR-GCC toolchain OR XC8 from microchip.
  • Make OR CMAKE
  • avrdude
  • A AVR programmer, usbasp for older chips and UPDI for newer ones.

Dev Requirements

  • ATtiny404 series micro-controller
  • AVR-GCC toolchain.
  • Cmake
  • cpputest(Unit testing harness.)
  • Doxygen(For documentation)
  • Git(For version control)