From a56df061616410b49e5bc83a844d1867f398ae25 Mon Sep 17 00:00:00 2001 From: Philip Lampkin Date: Sat, 24 Apr 2021 12:44:20 -0500 Subject: terminology updates --- .../arduino-uno-controller/controller.kicad_pcb | 1 + .../arduino-uno-controller/controller.pro | 33 +++++++++++++++++ .../arduino-uno-controller/controller.sch | 4 +++ .../arduino-uno-controller/firmware/firmware.ino | 41 ++++++++++++++++++++++ digital-controller/controller.kicad_pcb | 1 - digital-controller/controller.pro | 33 ----------------- digital-controller/controller.sch | 4 --- digital-controller/firmware/firmware.ino | 41 ---------------------- 8 files changed, 79 insertions(+), 79 deletions(-) create mode 100644 digital-controller/arduino-uno-controller/controller.kicad_pcb create mode 100644 digital-controller/arduino-uno-controller/controller.pro create mode 100644 digital-controller/arduino-uno-controller/controller.sch create mode 100644 digital-controller/arduino-uno-controller/firmware/firmware.ino delete mode 100644 digital-controller/controller.kicad_pcb delete mode 100644 digital-controller/controller.pro delete mode 100644 digital-controller/controller.sch delete mode 100644 digital-controller/firmware/firmware.ino (limited to 'digital-controller') diff --git a/digital-controller/arduino-uno-controller/controller.kicad_pcb b/digital-controller/arduino-uno-controller/controller.kicad_pcb new file mode 100644 index 0000000..02c8ecb --- /dev/null +++ b/digital-controller/arduino-uno-controller/controller.kicad_pcb @@ -0,0 +1 @@ +(kicad_pcb (version 4) (host kicad "dummy file") ) diff --git a/digital-controller/arduino-uno-controller/controller.pro b/digital-controller/arduino-uno-controller/controller.pro new file mode 100644 index 0000000..152769c --- /dev/null +++ b/digital-controller/arduino-uno-controller/controller.pro @@ -0,0 +1,33 @@ +update=22/05/2015 07:44:53 +version=1 +last_client=kicad +[general] +version=1 +RootSch= +BoardNm= +[pcbnew] +version=1 +LastNetListRead= +UseCmpFile=1 +PadDrill=0.600000000000 +PadDrillOvalY=0.600000000000 +PadSizeH=1.500000000000 +PadSizeV=1.500000000000 +PcbTextSizeV=1.500000000000 +PcbTextSizeH=1.500000000000 +PcbTextThickness=0.300000000000 +ModuleTextSizeV=1.000000000000 +ModuleTextSizeH=1.000000000000 +ModuleTextSizeThickness=0.150000000000 +SolderMaskClearance=0.000000000000 +SolderMaskMinWidth=0.000000000000 +DrawSegmentWidth=0.200000000000 +BoardOutlineThickness=0.100000000000 +ModuleOutlineThickness=0.150000000000 +[cvpcb] +version=1 +NetIExt=net +[eeschema] +version=1 +LibDir= +[eeschema/libraries] diff --git a/digital-controller/arduino-uno-controller/controller.sch b/digital-controller/arduino-uno-controller/controller.sch new file mode 100644 index 0000000..fff8c68 --- /dev/null +++ b/digital-controller/arduino-uno-controller/controller.sch @@ -0,0 +1,4 @@ +EESchema Schematic File Version 2 +EELAYER 25 0 +EELAYER END +$EndSCHEMATC diff --git a/digital-controller/arduino-uno-controller/firmware/firmware.ino b/digital-controller/arduino-uno-controller/firmware/firmware.ino new file mode 100644 index 0000000..e87db8d --- /dev/null +++ b/digital-controller/arduino-uno-controller/firmware/firmware.ino @@ -0,0 +1,41 @@ +#include + +#define I2C_SLAVE_ADDR 0x26 // I2C slave address (38, 0x26) + +void setup() +{ + pinMode(A4, OUTPUT); + pinMode(A5, OUTPUT); + // init the Wire object + Wire.begin(); + + // wait for slave to finish any init sequence + delay(2000); + + Serial.begin(9600); +} + +void loop() +{ + for( int a=10; a<=255; a++ ){ + //generate buffer containing data to send via I2C + uint8_t buf[1]; + buf[0] = 255-a; // adjusting this byte changes fan speed. Can be adjusted from 0 to 256. + buf[1] = a; // adjusting this byte changes LED intensity. Can be adjusted from 0 to 256. + Serial.println(int(buf)); + + // send buffer + Wire.beginTransmission(I2C_SLAVE_ADDR); + Wire.write(buf, 2); + Wire.endTransmission(); + + // delay 20 milliseconds to accomodate slave onReceive() + delay(20); + + /////////////////////// WHY DO I NEED THIS PART?////////////////////////// + Wire.requestFrom(I2C_SLAVE_ADDR, 1); + + // delay 1 second so user can watch results + delay(50); + } +} diff --git a/digital-controller/controller.kicad_pcb b/digital-controller/controller.kicad_pcb deleted file mode 100644 index 02c8ecb..0000000 --- a/digital-controller/controller.kicad_pcb +++ /dev/null @@ -1 +0,0 @@ -(kicad_pcb (version 4) (host kicad "dummy file") ) diff --git a/digital-controller/controller.pro b/digital-controller/controller.pro deleted file mode 100644 index 152769c..0000000 --- a/digital-controller/controller.pro +++ /dev/null @@ -1,33 +0,0 @@ -update=22/05/2015 07:44:53 -version=1 -last_client=kicad -[general] -version=1 -RootSch= -BoardNm= -[pcbnew] -version=1 -LastNetListRead= -UseCmpFile=1 -PadDrill=0.600000000000 -PadDrillOvalY=0.600000000000 -PadSizeH=1.500000000000 -PadSizeV=1.500000000000 -PcbTextSizeV=1.500000000000 -PcbTextSizeH=1.500000000000 -PcbTextThickness=0.300000000000 -ModuleTextSizeV=1.000000000000 -ModuleTextSizeH=1.000000000000 -ModuleTextSizeThickness=0.150000000000 -SolderMaskClearance=0.000000000000 -SolderMaskMinWidth=0.000000000000 -DrawSegmentWidth=0.200000000000 -BoardOutlineThickness=0.100000000000 -ModuleOutlineThickness=0.150000000000 -[cvpcb] -version=1 -NetIExt=net -[eeschema] -version=1 -LibDir= -[eeschema/libraries] diff --git a/digital-controller/controller.sch b/digital-controller/controller.sch deleted file mode 100644 index fff8c68..0000000 --- a/digital-controller/controller.sch +++ /dev/null @@ -1,4 +0,0 @@ -EESchema Schematic File Version 2 -EELAYER 25 0 -EELAYER END -$EndSCHEMATC diff --git a/digital-controller/firmware/firmware.ino b/digital-controller/firmware/firmware.ino deleted file mode 100644 index e87db8d..0000000 --- a/digital-controller/firmware/firmware.ino +++ /dev/null @@ -1,41 +0,0 @@ -#include - -#define I2C_SLAVE_ADDR 0x26 // I2C slave address (38, 0x26) - -void setup() -{ - pinMode(A4, OUTPUT); - pinMode(A5, OUTPUT); - // init the Wire object - Wire.begin(); - - // wait for slave to finish any init sequence - delay(2000); - - Serial.begin(9600); -} - -void loop() -{ - for( int a=10; a<=255; a++ ){ - //generate buffer containing data to send via I2C - uint8_t buf[1]; - buf[0] = 255-a; // adjusting this byte changes fan speed. Can be adjusted from 0 to 256. - buf[1] = a; // adjusting this byte changes LED intensity. Can be adjusted from 0 to 256. - Serial.println(int(buf)); - - // send buffer - Wire.beginTransmission(I2C_SLAVE_ADDR); - Wire.write(buf, 2); - Wire.endTransmission(); - - // delay 20 milliseconds to accomodate slave onReceive() - delay(20); - - /////////////////////// WHY DO I NEED THIS PART?////////////////////////// - Wire.requestFrom(I2C_SLAVE_ADDR, 1); - - // delay 1 second so user can watch results - delay(50); - } -} -- cgit v1.2.3 From 871f3f9ebe774e12ba870eedd2409ee9af6a6189 Mon Sep 17 00:00:00 2001 From: plampkin <83132062+plampkin@users.noreply.github.com> Date: Sat, 24 Apr 2021 14:36:58 -0500 Subject: Create README.md --- digital-controller/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 digital-controller/README.md (limited to 'digital-controller') diff --git a/digital-controller/README.md b/digital-controller/README.md new file mode 100644 index 0000000..796b347 --- /dev/null +++ b/digital-controller/README.md @@ -0,0 +1,10 @@ +# Digital Controller + +The digital driver board can be controlled using a "digital control unit." +Potential digital control units include Arduino microcontrollers or Rasberry Pi devices. +These control units can "supervise" the light intensity and fan speed of WPP devices fitted with digital driver boards. + +Custom control unit firmware is required to enable supervision of digital driver boards. +Open-source firmware for controlling an digital driver board with an Ardunio microcontroller is provided. + +Instructions on using this firmware with an Arduino microcontroller is provided in the fabrication and operation instructions. -- cgit v1.2.3