Browse Source

First commit

master
Your Name 6 years ago
parent
commit
964c0c6c80
21 changed files with 3341987 additions and 0 deletions
  1. +5
    -0
      TODO
  2. +111690
    -0
      data/062918_homesolar.txt
  3. +646045
    -0
      data/070818_homesolar.txt
  4. +646045
    -0
      data/070818_homesolar_b.txt
  5. +646045
    -0
      data/070818_homesolar_b.txt~
  6. +42
    -0
      data/loadme_HomeSolar
  7. +26
    -0
      data/notes
  8. +646044
    -0
      data/output.csv
  9. +646044
    -0
      data/output2.csv
  10. +1
    -0
      docs/.~lock.HomeSolar4.odt#
  11. BIN
      docs/HomeSolar.odt
  12. BIN
      docs/HomeSolar1.pdf
  13. BIN
      docs/HomeSolar2.odt
  14. BIN
      docs/HomeSolar3.odt
  15. BIN
      docs/HomeSolar4.odt
  16. BIN
      docs/HomeSolar4.pdf
  17. BIN
      pics/062918_homesolar.jpg
  18. BIN
      pics/062918_homesolar_b.jpg
  19. BIN
      pics/070818_homesolar.jpg
  20. BIN
      pics/DSCN0156.JPG
  21. BIN
      pics/DSCN0158.JPG

+ 5
- 0
TODO View File

@ -0,0 +1,5 @@
need to graph time on the upper x axis.
ground unused ampref pin

+ 111690
- 0
data/062918_homesolar.txt
File diff suppressed because it is too large
View File


+ 646045
- 0
data/070818_homesolar.txt
File diff suppressed because it is too large
View File


+ 646045
- 0
data/070818_homesolar_b.txt
File diff suppressed because it is too large
View File


+ 646045
- 0
data/070818_homesolar_b.txt~
File diff suppressed because it is too large
View File


+ 42
- 0
data/loadme_HomeSolar View File

@ -0,0 +1,42 @@
File='./output2.csv'
set y2tics border
# 6 Volts is about cutoff
set y2range [11:14]
# shorten range, if batteries are charged.
set yrange [500:700]
set term jpeg size 1920,1280
set output 'homesolar.jpg'
set title 'Home Solar' font ',20'
set xlabel 'Iteration #'
set ylabel 'ADC Reading: Current'
set y2label 'Volts'
samples(x) = $0 > 4 ? 5 : ($0+1)
avg5(x) = (shift5(x), (back1 + back2 + back3 + back4 + back5) / samples($0))
shift5(x) = (back5 = back4, back4 = back3, back3 = back2, back2 = back1, back1 = x)
init(x) = (back1 = back2 = back3 = back4 = back5 = sum = 0)
plot sum = init(0), \
File using 3:(avg5($2)) title 'Current' with lines axes x1y1,\
File using 3:(avg5($1)) title 'Battery Voltage' with lines axes x1y2
#File using 3:(avg5($1)) title 'Battery Voltage' with lines axes x1y2
#plot File using 4:1 with lines axes x1y2, File using 4:2 with lines axes x1y1,\
#File using 4:3 with lines axes x1y1"
#file looks like this:
#12.55 583 40
#12.55 582 41
#12.55 570 42
#12.55 571 43
#12.55 600 44
#12.55 588 45
#12.55 579 46
#12.55 572 47
#12.55 587 48

+ 26
- 0
data/notes View File

@ -0,0 +1,26 @@
csvfilter is used
installable
pip install csvfilter
csvfilter -f (fields you want)
you want the 500 number to the right.
so
csvfilter -f 6,8,10 062918_homesolar.txt > output.csv
as an example
then
sed 's/,/ /g' output.csv > output2.csv
to make it ready for gnuplot
then
gnuplot loadme_HomeSolar

+ 646044
- 0
data/output.csv
File diff suppressed because it is too large
View File


+ 646044
- 0
data/output2.csv
File diff suppressed because it is too large
View File


+ 1
- 0
docs/.~lock.HomeSolar4.odt# View File

@ -0,0 +1 @@
,dev,dev.dev,09.07.2018 13:09,file:///home/dev/.config/libreoffice/4;

BIN
docs/HomeSolar.odt View File


BIN
docs/HomeSolar1.pdf View File


BIN
docs/HomeSolar2.odt View File


BIN
docs/HomeSolar3.odt View File


BIN
docs/HomeSolar4.odt View File


BIN
docs/HomeSolar4.pdf View File


BIN
pics/062918_homesolar.jpg View File

Before After
Width: 1280  |  Height: 720  |  Size: 83 KiB

BIN
pics/062918_homesolar_b.jpg View File

Before After
Width: 1280  |  Height: 720  |  Size: 109 KiB

BIN
pics/070818_homesolar.jpg View File

Before After
Width: 1920  |  Height: 1280  |  Size: 179 KiB

BIN
pics/DSCN0156.JPG View File

Before After
Width: 4608  |  Height: 3456  |  Size: 3.4 MiB

BIN
pics/DSCN0158.JPG View File

Before After
Width: 4608  |  Height: 3456  |  Size: 3.4 MiB

Loading…
Cancel
Save