Skip to content
View in the app

A better way to browse. Learn more.

Power Forum - Renewable Energy Discussion

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PowerForum Solar Data Collection - using a Raspberry Pi 3 :-)

Featured Replies

5 minutes ago, SilverNodashi said:

this card is just too small

If you resize the second partition, it will fit. /boot is about 60MB, and only 1.1GB is used on /. You can fit it in easily on that card and have space free.

On the other hand, those old cards are often old tech that isn't very fast, so spending a couple bob and doing it properly (and saving time) can probably be justified quite easily :-)

  • Replies 491
  • Views 93.5k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Let me tell you guys something. Writing at the lowest possible level, i.e. C and assembler, allows one to extract and use all the available power from a microcontroller. While there's not really aythi

  • Chris Hobson
    Chris Hobson

    Hi PLonky  When I am prototyping I generally use a breadboard rather than a breadbin.    

  • I'm making an image of the Rpi distro now. I'll post a link here in a few minutes, soon as I have the wifi details and stuff sanitised :-)

Posted Images

12 minutes ago, plonkster said:

If you resize the second partition, it will fit. /boot is about 60MB, and only 1.1GB is used on /. You can fit it in easily on that card and have space free.

On the other hand, those old cards are often old tech that isn't very fast, so spending a couple bob and doing it properly (and saving time) can probably be justified quite easily :-)

There isn't a second partition to resize, extend or remove. Only one partition, 3.7GB. 

1 minute ago, plonkster said:

That's odd. I definitely see two on the RPI.

Sent from my GT-I9195 using Tapatalk

yes you will cause the Pi image created two partitions, on a memory card that's big enough. What's the size of your memory card?

 

This particular one I have is just not a true 4Gb card 

36 minutes ago, SilverNodashi said:

What's the size of your memory card?

pi@raspberrypi ~ $ sudo fdisk -l /dev/mmcblk0 

Disk /dev/mmcblk0: 3.8 GiB, 4075290624 bytes, 7959552 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xba2edfb9

Device         Boot  Start     End Sectors Size Id Type
/dev/mmcblk0p1        8192  122879  114688  56M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      122880 8447999 8325120   4G 83 Linux

Interesting. That says my card is a little OVER 4GB. Though 8325120 times 512, assuming 1024 byte-sized units, is 3.97GB. Fine, it seems I'm a bit too close to the marketing/real size divide :-)

I hope you are going to give a tutorial to install Mosquitto as well. I have installed it and it shows the process is running but I can not connect to it. I refuses my connection all the time

Hahahaha LOL nevermind. It will help if you start it up the correct way. All is working now.

Ok, got Pi working, now just to get my inverter and MPPT read and displayed. :D

This Pi interface goes right back to the good old day of Ms-Dos. :P

Plonky don't you think Twisted is a better subscribe / publish solution for Python on the Pi? It is event based. So then you dont have to worry about threading that much.

11 hours ago, jdp said:

Plonky don't you think Twisted is a better subscribe / publish solution for Python on the Pi? It is event based. So then you dont have to worry about threading that much.

Suppose that could also have worked. How many non-python twisted libs are there though? :-)

12 hours ago, The Terrible Triplett said:

Ok, got Pi working, now just to get my inverter and MPPT read and displayed. :D

Logged into TTT's Pi and debugged it a bit. I saw the "P" token in the VE.Direct document and used that, and only realised now that "P" is only used by the BMV, not by the BlueSolar. It has PPV (Panel Power) but that will be a bit higher than what makes it into the battery. I hacked his version (for now) to use PPV, but I need to make it multiply battery voltage and charge current to get a better value.

Also, it was the first time my mk2 library ran against a phoenix. There is a problem with the way I parse out the dc current from the reply frame. I need to figure that out and fix it. Then his setup should start working.

Thanks for the platform, TTT :-)

No I don't know. At this stage I take it your MQTT is one way ? How will you handle both ways if you cant run threads ?

I am also using MQTT and it works well in one direction.

On the remote control of the Pi. How do you remote ? I use https://dataplicity.com/ for now.

Seems to be working OK. Then I do not need Teamviewer or VPN access or port forwarding etc.

 

1 hour ago, plonkster said:

..., but I need to make it multiply battery voltage and charge current to get a better value.

Thanks for the platform, TTT :-)

Groot Plesier.

Remember, the MPPT 75.15 you are seeing, is running on system 2. It is a 12v off-grid system with a teeny weeny Victron 350w Phoenix inverter'tjie.

The Phoenix YOU are seeing, is the 1600VA 24v Phoenix, on System 1.

One very good test to connect two different system to the same Pi. :P:D

15 minutes ago, jdp said:

How do you remote ?

Plonkster is in via SSH(?).

I sit and watch him doing his magic by logging in to the Pi with Windows 10 Remote Desktop. Plonkster just had to open the firewall. 

Okay, there is a small issue with the mk2 library, something I've seen before. For some reason, when you query the scale and offset values, the return packet is a byte short. Eg, When I send it 'W 36 05 00' (I'm omitting the length, 0xFF and checksum here) it should reply with:

08 FF 57 8E 0A 80 8F 00 00 ??

Instead it replies with:

07 FF 57 8E 0A 80 00 00 8B

The packet is perfectly formed, the checksum matches, the length is right. But the 8F separator between the scale and offset isn't there.

I've seen this once before, right after using VEConfigure. I unplugged the mk2 and plugged it back in, and the problem went away. Now I see TTT's does the same. I'm going to have to ask them about it.

Shall I unplug?

5 minutes ago, The Terrible Triplett said:

Shall I unplug?

Leave it for now, I sent an email to Matthijs. Have to do some real work here too. Meeting finally over, and so is lunch. No more excuses :-)

Ek soek dit gou.

42 minutes ago, jdp said:

No I don't know. At this stage I take it your MQTT is one way ? How will you handle both ways if you cant run threads ?

Depends on the implementation. The python one has a built-in method to turn it into a background thread that just sits there accepting traffic, and calling your registered callbacks when something interesting arrives. When you need to send something, you just send it...

If you can't use threads, the library includes a call that you periodically call from your application loop.

17 minutes ago, plonkster said:

TTT, can you plug that into VEConfigure and check the mk2 version, so I can pass it on?

I am a bit at a loss. Checked all the software I have installed but MK2, not seeing that. Any pointers?

4 minutes ago, The Terrible Triplett said:

I am a bit at a loss. Checked all the software I have installed but MK2, not seeing that. Any pointers?

Plug it back in and I'll query it from here.

It is back in.

Is it not an idea to add the Firmware versions on the screen?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.