Beginners Guide to Processing 18650 Cells | Cell Database


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pip4048 + raspberry pi + influxdb + grafana
#1
Hi guys

I will share the information about my installation.

Hardware
Raspberry pi 3

serial to ttl 
custom cable 


Software
Raspbian as operating system
influxdb as database
grafana as visualization
Node.js  https://pastebin.com/hwMZvRh4 (code)

Result:



Configure the serial + tll

Install influxdb + grafana
 
http://engineer.john-whittington.co.uk/2...b-grafana/

I'm writing a full document about my powerwall based on Peter information, with some little changes, i will use RECBMS instead Batrium, but it's a "Copy" of his installation, when i have ready the full document, i will attach to this thread.

Now i have working 20kw , waiting for  to install 12x 320 w solar panels.



Thanks Guys
Batrium, hbpowerwall, Fredd And 7 others like this post
Reply


#2
Look at all that Blue Heat Shrink!!! Lol
Cell progress: 2016/10/17:
180cells@2.0
600cells@2.1-2.6a
70cells@2.7a+

Projects:
Mobile PowerBox
8Kw Powerwall
Insight Parallel PowerPak
1Kw PowerBlade
PowerRack (concept)
12v LED Sconce
Reply
#3
Looks awesome, cant wait for the full documentation!
Korishan likes this post
Reply
#4
Did you test running it directly from the USB port? Ie the hidraw* that comes up on the PI?
Follow me! >> YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#5
@daromer No, i don't try the USB port, sorry

Now i have working with same Raspberry pi 3 3 services.

1. PIP4048
2. SMAPPEE (google it , please)
3. REC-BMS (pican2)

and all in the same dashboard....
Reply
#6
Cool! Good work.


Of course.. I had to plug in and out it and now i can access it. Stupid thing Big Grin
Follow me! >> YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#7
I have followed the guide, and managed to get the grafana screen to come up on port 3000.
What I don't understand is what node.js is for, is that the JSON script for the graphs and stuff for Grafana?

I also can't add the logger as a datasource, as there is no option in the menu block of the grafana webpage.

I copy and pasted the script into a text file and saved it as logger.py. This is in my pi folder. At least I have got further than yesterday on windows, as I didn't even have the black Grafana screen. I added the 2 lines of code to make the server start to the config.txt file using sudo nano. I don't know if that was where it was supposed to go, but it was the only thing I could think of that runs a boot script.

I am quite pleased that I managed to get this far, even if it was parrot fashion! Not bad for an Electrician Smile
Reply
#8
Its not that easy im afraid hehe. Nodejs scriptet fetches data from the inverter and then delivers it to influxdb. So you need to install influx and configure that with grafana.

I have an image up and running now. Included support for above script and with support for running without the serial adapter. Ie works with USB directly.
nexsuperne101 likes this post
Follow me! >> YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#9
I got a bit further. It had an error with non-ascii character at line 20, 21 and 22. So I deleted those characters. ¬¬¬¬

Next error was import error for "automationhat" (not defined). Now I am stuck, again.... Smile

This was in the logger.py file, whilst trying to run python logger.py

This line fails as well, i think it is a dead link? sudo pip install influxdb

sudo pip install influxdb
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead

I had to change one of the influxdb source packages, as it had been updated
hbpowerwall likes this post
Reply
#10
(06-07-2017, 06:45 PM)daromer Wrote: Its not that easy im afraid hehe. Nodejs scriptet fetches data from the inverter and then delivers it to influxdb. So you need to install influx and configure that with grafana.

I have an image up and running now. Included support for above script and with support for running without the serial adapter. Ie works with USB directly.

Cool, let me know when you want to do a test run, as my Pi 3 is here, and the serial MAX3232 to TTL card will be here in about an hour Smile
Reply


Who read this thread?
100 User(s) read this thread:
hbpowerwall (07-27-2017, 04:49 AM), AZ_Tekkie (07-15-2017, 08:11 AM), Chickey (07-20-2017, 01:17 PM), ShaneE (08-20-2017, 04:09 AM), daromer (07-18-2017, 09:24 AM), FiremanDIYPowerwall (07-05-2017, 07:51 AM), mike (06-08-2017, 03:33 PM), Toochi84 (06-05-2017, 09:21 PM), goodnowm (10-18-2017, 03:39 AM), AveRageJoe (08-11-2017, 08:57 AM), BigBen (07-19-2017, 02:06 PM), PaulKennett (07-06-2017, 03:19 AM), Joaquinsfy (08-23-2017, 05:57 AM), SJBW (07-31-2017, 11:03 AM), TripDealers (07-31-2017, 08:58 AM), NiVa (10-29-2017, 10:29 AM), Lux_Gamer (07-05-2017, 01:41 PM), owitte (11-21-2017, 10:43 AM), opus40 (09-25-2017, 02:41 AM), RudyLiPower (06-14-2017, 01:43 AM), dakoal (07-09-2017, 08:43 AM), VdVoort4 (07-05-2017, 07:47 AM), Majorphill (06-20-2017, 01:11 AM), coolfx (07-18-2017, 11:46 AM), nexsuperne101 (06-11-2017, 07:38 PM), Herebus (07-20-2017, 01:19 AM), BatteryDIY (09-07-2017, 11:24 PM), ruby2 (08-25-2017, 10:11 AM), Korishan (08-15-2017, 03:12 AM), A + A (09-05-2017, 09:50 PM), PAF (07-21-2017, 02:09 PM), Prahe86 (08-16-2017, 07:18 PM), APD (06-14-2017, 02:26 AM), Dizelis (06-19-2017, 03:02 PM), Batrium (10-19-2017, 09:28 PM), Darmok (07-14-2017, 12:50 PM), Wattsup (07-05-2017, 09:23 AM), Scepterr (06-07-2017, 09:25 PM), BobinTN (Yesterday, 02:56 AM), Iordanis Kouroutsidis (10-28-2017, 01:35 PM), Watts_Up (06-21-2017, 10:39 AM), Frnandu Martiński (10-31-2017, 12:56 PM), egam (06-11-2017, 12:39 AM), CrankyCoder (07-11-2017, 02:47 PM), Robin Paine (06-08-2017, 08:49 AM), flight4900 (06-12-2017, 06:53 AM), Droid126 (06-08-2017, 04:03 PM), jdeadman (07-18-2017, 03:00 PM), charlie246 (06-13-2017, 09:12 PM), 2146 (10-27-2017, 04:04 PM), wim (08-15-2017, 06:27 PM), wimpie007 (06-10-2017, 06:31 PM), MajStealth (06-07-2017, 07:09 PM), Joe Farrugia (08-11-2017, 11:49 PM), frnandu (07-18-2017, 04:11 PM), josearaujo10 (06-26-2017, 10:11 PM), typ49 (07-10-2017, 02:04 PM), HandyAndy (07-07-2017, 01:46 PM), John (06-07-2017, 10:44 PM), Robert Baumer (06-08-2017, 10:17 PM), Charles Francis Speakman (06-08-2017, 01:25 PM), Jeremy Choy (06-11-2017, 04:59 AM), 1958 greyhound (07-21-2017, 07:03 AM), FreddieH (07-28-2017, 08:06 AM), kktuo (10-01-2017, 01:14 PM), Tobbe O Kompani (06-09-2017, 03:39 PM), Off Grid Power wall (06-05-2017, 05:45 PM), Ragulin83 (09-06-2017, 07:20 PM), Tychipowerwall (07-05-2017, 11:05 AM), dinoN17 (07-11-2017, 08:53 AM), kaits31 (06-08-2017, 10:27 AM), watts-on (07-18-2017, 09:28 AM), Dan Lim (06-10-2017, 08:54 AM), jesusangel (08-26-2017, 02:51 PM), Daggerzz (07-05-2017, 02:25 PM), Hanssing (07-18-2017, 04:22 PM), MetalFang (06-08-2017, 05:21 PM), Krowez (06-08-2017, 02:01 PM), Fredd (09-19-2017, 07:34 AM), autobd (07-26-2017, 01:22 PM), Haustechno (06-10-2017, 12:27 PM), ajcc71 (06-12-2017, 06:55 AM), Dicklinn (07-14-2017, 02:28 PM), mexx575 (08-15-2017, 12:25 PM), DrkHrs13 (07-15-2017, 02:56 PM), Jeflu (06-14-2017, 06:17 PM), kot (07-17-2017, 10:37 AM), mitchvr (06-19-2017, 12:08 PM), Arie Bal (10-13-2017, 11:54 PM), ismaildoganw (07-18-2017, 01:07 PM), kazbach (07-18-2017, 12:39 PM), ltdorn (07-19-2017, 01:09 AM), Davel (07-07-2017, 02:26 PM), Stefaan De Ridder (07-14-2017, 11:57 AM), zimo (07-14-2017, 02:23 PM), fin020 (07-01-2017, 03:34 AM), AzJames (07-05-2017, 07:54 PM), TomTinkerDIY (07-18-2017, 06:32 PM), Emmanuel Ory (08-25-2017, 04:48 PM), Yves Trlt (07-02-2017, 09:52 PM)

Forum Jump:


Users browsing this thread: 1 Guest(s)