LumeoStasis® Electronics and Software
Block Diagram
1.5V AA Cell
POWER @ 1.5V
Hall effect sensor SQUARE WAVE @ f OF IMPELLER RPM
Voltage Booster POWER @ 15V
POWER @ 15V
Frequency to voltage converter
Reset switch (jug only)
ANALOGUE V
Power regulator
PIC #1
PIC #2
PIC #3
BINARY SIGNAL
POWER @ 5V
POWER @ 5V
BINARY SIGNAL
PWM
MOSFET driver
PWM
MOSFET driver PWM
MOSFET
MOSFET driver PWM
MOSFET AMPLIFIED PWM
G
PWM
MOSFET AMPLIFIED PWM
R LED
PWM
B
AMPLIFIED PWM
Schematic
Frequency to voltage converter
Voltage Booster
+1.5V
8.2uH choke
1MΩ
22uF
+15V
10Ω
100kΩ 22uF 0.047uF
0.1pF
4k7Ω 0.0047uF
0V
VANALOGUEOUT
350Ω
LT1372 45 8 2 6 71
1N4937
4.4pF
2kΩ
AD650 1 14 2 13 3 12 4 11 5 10 6 9 7 8
0V One PIC and one FET driver per channel of the LED with the PICs daisychaining
{
1 2 3 4 5 6 7
1
14 13 12 11 10 9 8
PIC microcontroller
TC427 1 8 2 7 3 6 4 5
LM7805
+5V
0.33uF
20kΩ
0.1uF 250kΩ 0.1uF
FIN Hall effect sensor
500Ω
560pF 2kΩ
500Ω
0V 330Ω
PIC 16F684
To PIC #2
+15V
1N4937
VANALOGUEOUT
Jug only: To decoder and LCD
Power regulator
+5V
STP16NF
10Ω
0V
Reset switch
MOSFET driver
RGB LED (1 channel)
} x3
Schematic From PIC #1
330Ω
PIC 16F684
To PIC #3
1 2 3 4 5 6 7
2
14 13 12 11 10 9 8
TC427 1 8 2 7 3 6 4 5
STP16NF
0V
From PIC #2
330Ω
PIC 16F684 1 2 3 4 5 6 7
3
14 13 12 11 10 9 8
PIC microcontrollers
+5V
TC427 1 8 2 7 3 6 4 5
+5V
STP16NF
0V MOSFET drivers
RGB LED
Software Plan Main routine
Calc subroutine
SLEEP MODE
CALCULATE AVERAGE VOLUME/TIME FOR ALL EVENTS IN THE PAST HOUR (CURRENT TIME - T < 1 HOUR). STORE VALUE = R
VOLUME PER EVENT = FREQUENCY X CONSTANT R = SUM FOR EVENTS IN PAST HOUR / 1 HOUR
IMPELLER MOVES? YES
SMOOTH CHANGE OF R TO OCCUR OVER ~3 SECONDS
NO
PWR ON
CONVERT VALUE OF R TO PULSE WIDTH MODULATION IN 3 CHANNELS: CHANNEL 1: ONBOARD PWM CHANNEL 2 & 3: DIGITAL O/P SINGLE PIN (SENT TO PIC #2 - VALUE CONTAINING CHANNEL 2 & 3
RESET TOTAL AND RATE TO ZERO
START COUNTER = COUNT CAP EXIT SUBROUTINE
IMPELLER MOVES? YES RESET COUNT
JUG CALCULATE TOTAL VOLUME (VT) SEND DIGITAL O/P SIGNAL TO LCD
NO COUNT = 300?
YES NO
NO STORE VALUES FOR FREQUENCY (F) AND TIME OF EVENT (T)
RUN ‘CALC’ SUBROUTINE
RESET PRESSED? YES
EVENT MEANS WHEN SOMEONE TAKES A SIP, GIVING AN INPUT TO THE PIC
RESET TOTAL TO ZERO