article

Rob Duthie avatar image
Rob Duthie posted

Victron Raspi HAT

Hi All

Progress on the the Raspi HAT code name is called the Stetson as it does not follow the Raspi HAT

protocols, so i named it the Stetson due to space constraints in the PCB design with all the relays and plugs and sockets required etc.

It has the following inputs and outputs canbus PSU etc. All has being tested and confirmed working OK to date. as of version on Venus Ver 2.60. release and 2.66 candidate. All OK, For Later Version >2.66 there are issues that not all works as it used to. Update some progress with new version >2.66 to 2.80.19

As in Bold all working again except the VE direct I2C ports USB is OK.

2x Temperature using the the LM335 devices: Working OK on Ver 2.80.24 Added 4 temps

3x Tanks resistive: Working OK on Ver 2.80.24 Added 4 tanks

5x Digital Hi ports all isolated with pulse counting etc: Working OK on Ver 2.80.24

1x Canbus port Working: OK on Ver 2.80.24 on USB and SPI ports

2x VE Direct ports: Not sorted yet with software USB OK but

6x relays outputs: Working OK on Ver 2.80.24

1x PSU from 10 to 55vDC to be upgraded to higher voltage 75vDC

Attached schematic for you information.

Options for the future: buzzer indicator, code is there just need some time to redirect the code to the right GPIO pins to make it work.

The PCB design is almost complete, it will mount in a din rail enclosure and a main 40 pin ribbon cable will connect between the Raspi and the Stetson. Updated PCB files with VE direct ports.

Update 20/10/2021 Schematic updated to full 6x relays on board and new PSU module and the 4x Tank and 4x Temp sensor inputs. Digital input circuit change, PCB is done, BOM done.

Victron Raspi Hat.pdf

Victron Raspi Stetson.pdf

Regards

Rob D

NZ

Victron Raspi Hat.pdf

Victron Raspi Stetson.pdf


Raspberry Pi
149 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

jimmyendt avatar image jimmyendt commented ·

Hello,

I've searched this forum thoroughly, looking for upgrades on my raspberry pi venusos installation. This raspberry pi HAT seems awesome. I've already contacted Rob Duthie

He told me there are some people making these awesome boards? Is there a way to buy a board somewhere? Would like so very much!


Thanks in advance,

2 Likes 2 ·
jondrane avatar image jondrane jimmyendt commented ·

Hi Jimmy, did you ever get the information? I am in the same situation and have got some temp sensors working on my pi4. I really like the look of the all in one hat by Rob. Do you know if these are available for purchase?

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie jondrane commented ·

Hi

Yes all the temp and fuel sensor all work OK 4x4 of each, if i had more time i woild do the PCB etc, there other out there how are making them based on my design.

If and when in get a chance i would make them i had a complete Din rail case to mount them into from aliexpress etc.

Regards

Rob D

NZ

0 Likes 0 ·
jondrane avatar image jondrane Rob Duthie commented ·

Rob, I have seen your schematic and it’s I looks great. I can only thank you for all the work you have put in. Would you mind sending me the files so I can get one made up? I am uk based. Email is jondrane@hotmail.com

0 Likes 0 ·
Mark avatar image Mark commented ·

Thanks Rob.


1 Like 1 ·
s-exley avatar image s-exley Mark commented ·

Hi Mark,

I've sent you an email, if there's anything I can do to help, let me know.

Cheers
Simon

0 Likes 0 ·
sv-soleil avatar image sv-soleil Mark commented ·

img-7258.jpegI stumbled onto this thread as I am trying to connect a MCP3208 to RPI. Would @Rob Duthie or anyone be able to explain in basic terms the role of the 10K ohm resistors?


I’m assuming they slow down the flow of current into the MCP3208 but the exact nature of the need for this is beyond my understanding. In other words why 10K and not some other value? Thanks.

0 Likes 0 ·
img-7258.jpeg (297.6 KiB)
Vincent Royer avatar image Vincent Royer commented ·

Looks awesome. Can I make some suggestions?


- 2 x CAN, isolated, like the Octo-GX, using RJ-45 connectors, or a board-mounted dip for termination resistor


- Ideally a whole other isolated CAN that can be a different speed (for can-bms and can-xxx at the same time)

- ve-direct ports that dont peel off the board when you look at them wrong like the ones on Octo-GX

- PSU with a +12V output as well for integration w/ the relays

- smd LEDs on the board at each input / relay output to show state

- if you can put all connections on one edge, otherwise it doubles the size of the install

- don't use spring connectors, use screw types and oversize them


0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Vincent Royer commented ·

Hi Vincent

Answers in bold

- 2 x CAN, isolated, like the Octo-GX, using RJ-45 connectors, or a board-mounted dip for termination resistor. I will look into a dual isolated depends if another interrupt is required or not. I have already a 120 ohm jumper on board. I am using hard wired screw header connector

- Ideally a whole other isolated CAN that can be a different speed (for can-bms and can-xxx at the same time) as above, i have testing the canbus with a pylon US2000 with the USB port and direct canbus port both work OK, it will need some extra code to add the can0 and can1 ports? so far it is bullet proof with just can0 running.

- ve-direct ports that dont peel off the board when you look at them wrong like the ones on Octo-GX:Only have one serial port to work with for the VE direct port i will add a isolated serial port to suit RJ45 connector OK or screw terminal?

- PSU with a +12V output as well for integration w/ the relays: Can be added means another DC to DC converter PSU has to added to what current are you looking at 1Amp?

- smd LEDs on the board at each input / relay output to show state: Yes i was thinking about that and now will add into the design.

- if you can put all connections on one edge, otherwise it doubles the size of the install: I have used a dual edge Din rail enclosure to keep the PCB small, enclosure 125x90mm. other wise i will have to use a lot longer enclosure, due the size on the connectors i am using, i could use micro connectors, but is tight for the larger wires sizes there are trade offs.

- don't use spring connectors, use screw types and oversize them: I have used plug and header socket with spring terminals as standard. which take the larger wire sizes. These are duel in line to save space for the Analog and DIO ports the relays are screw terminal header plugs.

0 Likes 0 ·
Vincent Royer avatar image Vincent Royer Rob Duthie commented ·

Why screw connectors for CAN? you should stay with the Victron standard of RJ45. It eliminates user headaches figuring out their own can cables. Also, when you connect it to Victron equipment, you will have to cut an RJ45, leaving you with tiny 26AWG wires which won't reliably connect to your screw terminals. Use RJ45!

For Ve-direct maybe the best way is to implement direct serial input, its 5V ttl iirc, so you'll have to level shift it. But I wouldn't omit it entirely from your design.

For the 12V out, you don't need a lot of current, 1A is fine, but something with built in flyback so we can hook it up to a bigger contactor. Some designs offer the ability to switch the relay COM to a 12V source (I prefer a separate output). Can use it to drive a bigger status LED or even a small fan.

For the terminals, I've never used a spring terminal I didn't wish was a screw terminal instead. There just doesn't seem to be a situation where they are better.


Are you using one of those little white Din-rail RPi cases by phoenix contact?


0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Vincent Royer commented ·

Why screw connectors for CAN? you should stay with the Victron standard of RJ45. It eliminates user headaches figuring out their own can cables. Also, when you connect it to Victron equipment, you will have to cut an RJ45, leaving you with tiny 26AWG wires which won't reliably connect to your screw terminals.Use RJ45! I use boot laces with no problems There are other applications for other lithium BMS battery connections that don't use RG45 connectors i will consider it. Have to consider BYD and Pylontech and other manufactures as well plus the other DIY user of Tesla and Nissan leaf batteries etc.

For Ve-direct maybe the best way is to implement direct serial input, its 5V ttl iirc, so you'll have to level shift it. But I wouldn't omit it entirely from your design. : Done, levels shifted and isolated. Needs to be tested i am using pins 8,10 on the the raspi GPIO which are the UART.

For the 12V out, you don't need a lot of current, 1A is fine, but something with built in flyback so we can hook it up to a bigger contactor. Some designs offer the ability to switch the relay COM to a 12V source (I prefer a separate output). Can use it to drive a bigger status LED or even a small fan. Done easy to add just more cost and will have to use a larger PCB and Din rail enclosure.

For the terminals, I've never used a spring terminal I didn't wish was a screw terminal instead. There just doesn't seem to be a situation where they are better. Had no issue to date with spring terminals, they are used only on the Analog and digital inputs, due to space constraints etc.


Are you using one of those little white Din-rail RPi cases by phoenix contact?

No, too expensive i am using a Chinese version with a tinted grey clear top Note: With the changes required the design of the PCB has blown out. So will have to upgrade the enclosure to the next size up. 150x90mm.

Regards

Rob D

NZ


0 Likes 0 ·
gc50 avatar image gc50 Rob Duthie commented ·

Hi Rob

Where can I get one of these boards

I am in Motueka NZ

Been looking for a canbus port for the Venus RPI

Which has been running on VRM for 7 years now

Want to connect my 150/70 Ve.Can MPPT

Cheers

Gil



0 Likes 0 ·
Show more comments
nebulight avatar image nebulight commented ·

Awesome! Sign me up!

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie commented ·

Hi All

Note: Updated Schematic file with all the extras included.

VE direct port x1

Can bus port x1

LED relay indicators x4

Extra 12 V independent PSU for use with relay outputs if required.


Regards
Rob D

NZVictron Raspi Hat.pdf

0 Likes 0 ·
nzmikec avatar image nzmikec Rob Duthie commented ·

Looks awesome! Im keen to build one of these up. @Rob Duthie have you had PCB's built? Do you plan on selling a kit or sharing the greber files? JLBPCB have a build service ive used in the past, not sure if they will have the chips in your design tho.

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie nzmikec commented ·

Hi

Yes i will be sharing, and selling the main PCB and din rail mounted enclosure all the parts are common nothing odd ball.

Just finalization of the PCB design.

I use Altium for PCB work, so i work in pcbdoc file format.


Regards

Rob D

NZ

1 Like 1 ·
Rob Duthie avatar image Rob Duthie commented ·

Hi

Updated schematic due small change in on of the spi ports select port CS1 not being assigned to the correct device.

Victron Raspi Hat.pdf

Regards

Rob D

NZ

0 Likes 0 ·
victron-raspi-hat.pdf (947.3 KiB)
laurenceh avatar image laurenceh Rob Duthie commented ·

Rob
do you know the answer to my separate thread about getting dbus-adc directory for the Rpi I have a card with the chip on ( and driver I think) but need this directory to get Venus os to recognise it.

Thanks

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie laurenceh commented ·

Hi Laurence

Have you installed the updated file dbus-adc into /opt/victronenergy folder

Then runs these commands to activate, this is all that is required to make the ADC to work.

install dbus-adc file into /opt/victronenergy/ // (install via Bitvise the file ( dbus-adc )
chmod 755 /opt/victronenergy/dbus-adc/start-adc.sh
chmod 755 /opt/victronenergy/dbus-adc/dbus-adc
chmod 755 /opt/victronenergy/dbus-adc/service/run
chmod 755 /opt/victronenergy/dbus-adc/log/run (need to add a folder called log and a file called run inside it) if missing?
touch /var/log/dbus-adc (sets time stamp of the file or created one)
ln -s /opt/victronenergy/dbus-adc/service /service/dbus-adc


Regards

Rob D

NZ

0 Likes 0 ·
laurenceh avatar image laurenceh Rob Duthie commented ·

Rob

I know I need to do these things what is puzzling me is where to find the dbus-adc files required, so explicitly :

What do I download from where?
if they are part of larger image how do I extract the files required?

Thanks

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie laurenceh commented ·

Hi

You have the mcp3208-overlay.dtb installed in the over lays folder file?

https://github.com/aaronsb/victronvenussupport/blob/master/mcp3208-overlay.dtb


The file ADC dbus file wont upload to this site, can be found here.

https://www.dropbox.com/sh/gd80g2u048ls0h3/AAAeY2HSD05qb1W3CkBS64dva?dl=0


0 Likes 0 ·
laurenceh avatar image laurenceh Rob Duthie commented ·

Excellent and thanks.

I’m out today should be able to try tonight.

0 Likes 0 ·
Show more comments
Show more comments
mihair avatar image mihair commented ·

Hi Rob,


May I suggest not using SI8422 plus MCP2551? They are not so reliable parts in ICS environment. Instead please use ISO1050 from TI

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie mihair commented ·

Hi

The ICS stands for industry control systems? more robust device.

What is wrong with the MCP2551 device? this is what i have used and have no problems to date connecting to a Pylon tech BMS systems etc.

So you saying to use just the one combined chip with isolation and canbus, which would make sense and one less part to wire up etc.

OK i will take your advise, re do the schematics and PCB, and up load later.


Regards

Rob D

NZ

0 Likes 0 ·
mihair avatar image mihair Rob Duthie commented ·

Nothing's wrong with MCP2551 itself but your implementation has the can converter as last device on the bus, after the isolator. In case of voltage spikes it could be easily damaged or communication perturbed


From the ISO1050 doc:

"

As a CAN transceiver, the device provides differential

transmit capability to the bus and differential receive

capability to a CAN controller at signaling rates up to

1 megabit per second (Mbps). The device is designed

for operation in especially harsh environments, and it

features cross-wire, overvoltage and loss of ground

protection from –27 V to 40 V and overtemperature

shutdown, as well as –12-V to 12-V common-mode

range

"

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie mihair commented ·

Hi

Yes taken note on this now, thanks.

0 Likes 0 ·
pau1phi11ips avatar image pau1phi11ips commented ·

Sounds awesome, gonna be better than the CC GX at this rate!

0 Likes 0 ·
rvoosterhout avatar image rvoosterhout commented ·

Hi Rob,

This looks amazing! Do you have any updates on the Stetson? I would love to use this, but I have no experience with PCB ordering.


Rick

0 Likes 0 ·
rvoosterhout avatar image rvoosterhout rvoosterhout commented ·

Awesome Rob, i'm looking forward to it!

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie rvoosterhout commented ·

Hi All

Just an update on the stetson, we could have up to 6 output relays if required (Mark UK) has tested it to 8 but some GPIO clashed with the canbus control, but i need to confirm as i am running out of space to to fit them all, unless i upgrade the PCB design and case i had in mind to use, as the case was a din rail mount type with a cover 150x90x45 etc.

As per photo attached.

OK updated PCB and Schematic to have 2x extra relays they are named Aux 1 & 2 as they control a 12v external relay coil only, due space constants etc. They have a indicator LED each and an output current of 500mA max.

Confirmed we have 6x relay outputs all working OK now. An you can name as required via WinSCP. If some one wants the files just email me and i will send the required files to make the 6 relays work, just a matter of copy and paste into the Venus folders.


Victron Raspi Stetson.pdfVictron Raspi Hat.pdf

0 Likes 0 ·
captain-nemo avatar image captain-nemo commented ·

Very nice initiative! I assume te RPI is powered via the Stetson board, I know on RPI there is a fuse to protect against overvoltage etc. located at the micro USB connector on the RPI, powering over the RPI header bypasses this fuse. Would this be useful to add a fuse on the stetson on the 5v pin that powers the RPI?

Oh, and what about gps? Is it possible to add another hat fo GPS or would USB GPS be the only option?

Cheers,

Menno

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie captain-nemo commented ·

Hi Captain Nemo

Thanks for the feed back, looking at extra power protection etc. I do have over voltage protection built in, and a USB port which can be feed to the raspi directly etc. As the unit has dc to dc power regulators converters, external fusing is required as like the CCGX units have done.

Also there is a 12v 1amp feed output for the external relays coils etc.

The GPS works already by plugging in a USB GPS receiver type # BU-353S4 and these work very well with no issues to date.

Updated files below.


Regards

Rob D

NZ

Victron Raspi Hat.pdfVictron Raspi Stetson.pdf

0 Likes 0 ·
captain-nemo avatar image captain-nemo Rob Duthie commented ·

Hi rob,

Thanks for the feedback!
what would be the next step to make this board? Is it ready to use or does it need more testing? If it needs testing, can I help? For pcb making a gerber file would do, but soldering Smd it not my strongest suit. I know some local pcb companies that I used for making pcb’s for my company. Silk screen etc are also needed in this case.

Please advice on what I can do.

Br

Menno

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie captain-nemo commented ·

Hi

The PCB you can make your self if required once i release the Gerber files etc.

Hand soldering will be slow and time consuming etc. The PCB will have all the silk screens in place etc.

So just going threw final checks and BOM etc now.

Regards

Rob D

NZ

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie commented ·

Hi

Their have being some changes we have now 6x relay outputs and added a USB port for power only. And a 12v external supply for relay coils to use.

Victron Raspi Stetson.pdfVictron Raspi Hat.pdf

0 Likes 0 ·
captain-nemo avatar image captain-nemo Rob Duthie commented ·

Looks ok to me, don't see any issues.

0 Likes 0 ·
dennis-brok avatar image dennis-brok Rob Duthie commented ·

all i need is the parts list and the gerber file and ill test this

ig you sell a kit anywhere send me the link and ill order it

thanks for youre input and work in making this

i have the victron bmv 712 the 100/30 mppt smartsolar the 12/12-30 amp dc to dc charger and a raspberry pi3 b+ with the 7 inch touch screen running venus i want to add 2 tank (drinking and grey water) with temperature and lvl and a remote start for my generator maybe a extra temp sensor and then look at what more i can add on


thanks again

dennis

0 Likes 0 ·
Show more comments
matt-kay avatar image matt-kay commented ·

Hi @Rob Duthie any update on when this will be available to purchase?

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie matt-kay commented ·

Hi Matt

Yes the PCB design is done i have a person in the UK who is getting some made to test.

As i have being busy working on other jobs and projects and have put it to one side until i getting PCB costing done etc.

I am am based in New Zealand.

The design is open source, you are welcome to use files to get some made.

I will up an link to down load etc.

Rob D

NZ

1 Like 1 ·
padigree avatar image padigree Rob Duthie commented ·

Hey, any news? Would be glad to get the files so I can order a board with some other pcbs I have to order :)

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie padigree commented ·

Hi


Send me a email and i will send the files.

Regards

Rob D

NZ

0 Likes 0 ·
padigree avatar image padigree Rob Duthie commented ·

Thank you! But I can't find any email adress on your profile, neither anywhere on your posts, nor on the web :/


0 Likes 0 ·
Rob Duthie avatar image Rob Duthie padigree commented ·
0 Likes 0 ·
Show more comments
s-exley avatar image s-exley commented ·

Hi Rob,

I'm also in the UK and am interested in getting one of these hats, I'm quite happy to buy one or make one depending on what's easiest for you, if that was possible.

Cheers

Simon


0 Likes 0 ·
Rob Duthie avatar image Rob Duthie s-exley commented ·

Hi

There is guy called Mark Bramfield who has my design there and he is getting some PC done.


Regards

Rob D

N Z

2 Likes 2 ·
s-exley avatar image s-exley Rob Duthie commented ·

I don't suppose you have contact details for him or is he on here?

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie s-exley commented ·
2 Likes 2 ·
nick-peck avatar image nick-peck commented ·

also interested in purchasing one of these

0 Likes 0 ·
p0lar avatar image p0lar commented ·

how do we get one?

0 Likes 0 ·
Steve avatar image Steve commented ·

Thank you very much for all this research and development !!! I too would be interested in buying one !!! I am from Canada. You can contact me at: teardrop-quebec@hotmail.com


Thank you !!!

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Steve commented ·

Hi Steve

As you have a hotmail account it gets blacklisted.Victron Raspi Hat.pdfVictron Raspi Stetson.pdf

As attached information. i did have a guy in the UK getting some made, not sure were he is at.
As you can see by the schematic to what it can do etc.

0 Likes 0 ·
Steve avatar image Steve Rob Duthie commented ·

Out of curiosity, is this a guy named Mark (Spunky), (IVEA VAN) from the MBC Off Grid Solution site ??

MBC Off Grid Solution

If so, I am very happy to have the plans for the Stetson hat in hand.

See the pictures !!a2d-1.jpga2d.jpg

If not, too bad Lollll !!!

The A2D module is sold by MBC 150 GBP and the kits are sold for 300 and 400 GBP.

0 Likes 0 ·
a2d.jpg (35.2 KiB)
a2d-1.jpg (40.9 KiB)
Mark avatar image Mark Steve commented ·

Hi Steve

Yes Rob's is far more advanced than the one I made with robs help.

As you will see there is a lot of work goes into this and Rob has put a lot of time and effort into it. And then gives the plans free of charge to people.

The unit on MBC website is for people who don't want to make it or spend the time making it from components.

The cost is for making it and supplying it as a plug and play unit.

I'm sure you will see what goes into now you have the plans to make one.

Thanks

Mark

1 Like 1 ·
Steve avatar image Steve Mark commented ·

Hi Mark,

unfortunately I don't think I could make this module by myself as I don't have enough electronics knowledge to be able to do it on my own. I'll have to find another solution or someone who can do it for me.

As for the turnkey systems that you offer, it is very interesting but with the value of the Canadian currency at the moment I will have to pay almost double the asking price in GBP which becomes less interesting on the monetary side, because for the same price here I could have the Victron screen and the Cerbo GX, which is nonsense to go in that direction. I'm in a dead end and can't find a suitable solution.

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Steve commented ·

Hi Steve

Me and Mark are working on a solution which will have enhanced features and is plug and play design with the raspi units and our raspi HAT called a stetson. as per file below as you can see on the schematic at what it can do etc.

Rob D

NZ

Victron Raspi Hat.pdfVictron Raspi Stetson.pdf

1 Like 1 ·
Show more comments
Show more comments
Show more comments
aph avatar image aph commented ·

Hi all,

I was wondering if anyone has had a few of this awesome Victron hat produced and would be willing to sell one to me?

I am sure there are some more fellows here in the forum who would buy one.

CU,

Arne

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie aph commented ·

Hi Anre

Yes had to add some extra analog inputs which i have not finish yet.

Regards
Rob D

NZ

0 Likes 0 ·
alan avatar image alan Rob Duthie commented ·

Is the hat fully functional with VE.Direct devices?

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie alan commented ·

Hi Alan

Yes it is, for USB and Serial ports, had some of the code changed to allow for 2x VE direct ports.

Regards

Rob D

NZ

0 Likes 0 ·
Show more comments
Ralf Klüber avatar image Ralf Klüber commented ·

This is brilliant. Thanks for sharing.

0 Likes 0 ·
Kevin Windrem avatar image Kevin Windrem commented ·

I know this is very late in the game but I was wondering if it would be possible to provide the option of converting the tank sensor inputs to temperature sensor inputs. It appears the only electrical difference is the pull-up resistor on the input. Through hole parts would be easier to change out, or maybe you could provide a jumper to select the correct pull-up.

I have a SeeLevel tank system so there's no need for the tank inputs but can see using at least 4 inputs for temperature sensors around the RV: inside/outside temps, refrigerator/freezer.

0 Likes 0 ·
Markus avatar image Markus commented ·

Thank you for your schematics I created another layout for mounting on Raspberry Pi 7" touchscreen with 100x160mm PCB.

I made a few changes to the power supply like the Venus GX with LM5085. With the SC16IS752IPW I connected the 3.3V, 5V on the circuit diagram is not correct, see data sheet.

I created the new layout with my program Target3001 but I can also export the data to Eagel


0 Likes 0 ·
Warwick Bruce Chapman avatar image Warwick Bruce Chapman Markus commented ·

Exciting! I'm looking forward to this :)

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Markus commented ·

Hi

With Ver 2.70 the I2C and serial ports and SPI USB don't work anymore after they added the onboard bluetooth function which knocks out the UART ports.

My unit PCB fits into a Din rail mounted case. And am looking at up grading the onboard PSU to a higher voltage input rating to 75v

Ver 2.66 is all OK

Regards
Rob D

NZ

0 Likes 0 ·
Markus avatar image Markus Rob Duthie commented ·

i use the LM5085 has a wide 4.5-V to 75-V input Voltage range

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie Markus commented ·

Hi Markus

Did you use the same circuit as the CCGX design VE BBB cape?

There is another device with intergrated driver LM5576, 6 to 75v 5.1 @ 3Amp which would save space?

Do you have a 12 v feed for 6x relays outputs?

As most caravan setup have 12v relays for external control etc. And having onboad 12v is handy for the control of external relays.?

Or do have just the relays controlled by 5v and people can add there own 12-24v supply onto the relay contacts to control what ever there voltage supply is? This way it removes the 12v PSU and i will populate with 2x more relays.

Updated drawing with dual VE ports.

Regards

Rob D

NZ

Victron Raspi Hat.pdf

Victron Raspi Stetson.pdf

0 Likes 0 ·
Markus avatar image Markus Rob Duthie commented ·

Hi Rob,

yes I use the same desing as in the Venus GX and it takes up a lot of space. The proposal with the LM5576 is not bad, it takes up less space. With me, the relays can be equipped either as 5V or as 12 / 24V, the voltage can be connected to the 5V of the switching converter via a jumper or as an external voltage. Also, on my version, the relays cannot be fitted and the relays can be set off via a cable with an extra circuit board. I am helping a friend to resorb his mobile home, which is based on a Hanomag from 1969 and a solar system is to be installed there. I can also use the circuit to operate my HAM repeater DO0TEK.


regarts

Markus

0 Likes 0 ·
Markus avatar image Markus Rob Duthie commented ·

Hi Rob,

this is the version with LM5085, I also brought out the Raspberry Pi UART. I have 4 x16A relays and 2 x 6A Sil relays. I also put the CAN on an RJ45 as in the Venus GX. I have come to the conclusion that the LM5576 you proposed is better. With PIN 2 "SD" on the LM5576 it is possible to switch off in the event of undervoltage

that picture is the version with LM5085raspi-venus-hat.jpg


regarts

Markus

0 Likes 0 ·
raspi-venus-hat.jpg (177.8 KiB)
Werner Keller avatar image Werner Keller commented ·

Hi Rob,

what a great project - congrats.
I followed the story and all the progress you made so far.
Raspi, Venus and Victron components are ready for my camper van.
Currently running venus 2.66.
There are many approaches to connect and controle devices of any kind. But your Victron Raspi Hat appears to be the right choice to cover (almost) all needs.
It will definitely ease my life.

Therefore I would like to kindly ask for the latest pcb- and BOM-files.
mail to: wk.nt@bluewin.ch

0 Likes 0 ·
David avatar image David commented ·

Does this project have a home page? It’s hard to follow this massive thread to see where it’s at or what’s the latest file versions?

0 Likes 0 ·
johnwi avatar image johnwi commented ·

Hello Rob, I have no experience to produce a pcb and soldering smd components. Is it a posibility to produce this so that we can buy a complete hat?

0 Likes 0 ·
Warwick Bruce Chapman avatar image Warwick Bruce Chapman commented ·

Thanks for the update Rob!

0 Likes 0 ·
marco-lingua avatar image marco-lingua commented ·

Hi, I have installed version 2.80-41 on my 3b + rbi. I would like to be able to operate the analog inputs to connect the clear water probe and a relay to control the switching on of the pump. In addition to following the wiring diagram for the connections, what should I set on RPI and how. I tried to understand by myself by reading the tread but I can't get over it. The ideal would be to have a step by step guide on the steps to follow. I need help!

Thank you

0 Likes 0 ·
courty avatar image courty commented ·

I've just got Venus working on a Rasp Pi 3 and would be very interested in the hat / helping

Anything I can do to help ?

Courty

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie courty commented ·

Hi

What is your speciatly ?

0 Likes 0 ·
courty avatar image courty Rob Duthie commented ·

Hi Rob,

I'm an Electronic Engineer with a fair amount of PCB experience (Eagle mainly)

happy to help wherever I can be of use..

Courty

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie courty commented ·

Hi

I have done the whole design do you what to look it over? as attached schematic and PCB design layout.

Victron Raspi Hat.pdf

Victron Raspi Stetson.pdf

1 Like 1 ·
courty avatar image courty Rob Duthie commented ·

Hi Rob, Looks good - the MCP3208-BI_SL and other chips, are they chosen for there support in Venus / Rasp Pi ? These chips are on back order everywhere as are the not so critical SI8422AB-B-IS ?

Courty

0 Likes 0 ·
Rob Duthie avatar image Rob Duthie courty commented ·

Hi Courty

Yes there are, and there work very well with no issues.

I use Alitium designer for the PCB software, do you want to make a couple of test boards?

Rob D

0 Likes 0 ·
Elimac avatar image Elimac Rob Duthie commented ·

Hi Rob, excelent work! If is not too much to ask, can you share the editable files? Mainly the schematic, when I have the time I would like to give a shot at a striped down design, with smaller pcb. If so, please use "eliseu.macedo -at- gmail -dot-com". Thanks!

0 Likes 0 ·
dennispochenk avatar image dennispochenk commented ·

Dear Rob Duthie, i've been following a lot of your posts and you are doing great work for this community, can i ask if you can send me this PCB with the SMD parts already soldered?
I have no problem paying for the work, soldered parts and shipping.
I will solder the THT parts myself as they could increase the chance of damage in shipping
You can reach me through email at dennispochenk@gmail.com and i can do Paypal of Bank transfer.

And maybe one note on what could be improved: The mounting holes for a shielded RJ45 bus connected to ground are missing, adding the posibility of using a shielded cable would lower the chance of interference with devices along the CAN cable and would always be optional.

0 Likes 0 ·
eicke avatar image eicke commented ·

Hey Rob,

I would be very interested in the gerber files for this project. I'm an embedded Software developer by profession so in exchange i might give you some help integrating it into venus os. I'm also working on getting a sim7600 hat with 4g+GPS working with venus OS

You can chekout my github profile

https://github.com/KorribanMaster/venus-sim800

my email would be eicke.hecht@gmx.de

0 Likes 0 ·
user5575 avatar image user5575 commented ·

@Rob Duthie how do we contact you?

Cheers, mark@estasmania.com

0 Likes 0 ·
josef-svatuska avatar image josef-svatuska commented ·

Hi Rob,


was there any update lately? Did you test the HAT with Venus os v3.0?


Is it possible to buy whole product or pcb/parts?


J.

0 Likes 0 ·
ruffrider avatar image ruffrider commented ·

I would be very interested in the gerber files for this project.

If possible send to w.wullaert@gmail.com

0 Likes 0 ·
eurodiagnostyka avatar image eurodiagnostyka ruffrider commented ·

Has anyone received the project in Gerber?

0 Likes 0 ·
martinten avatar image martinten commented ·

Please send the gerber, bom anf pick&place files to

martin@tenbrock.net

0 Likes 0 ·
xaxar avatar image xaxar commented ·

¡Trabajo fantástico!

¿Podrías enviar el archivo gerber?

jjsalar@gmail.com

0 Likes 0 ·
brinet avatar image brinet commented ·

Are these available for purchase? I have read through this topic, but admittedly this form of communication is horrible at best. Comments are scattered throughout with no clear timeline that is discernible.

I’m interested in a finished product, if available.

0 Likes 0 ·
Alex Pescaru avatar image Alex Pescaru commented ·

Hi @Rob Duthie

Very nice project.

Can I make one suggestion?

For the CAN port, the idea of terminal link with the resistor is good when the board is at one end.

But if it's in the middle of a daisy chain and the resistor is not used, then a second RJ45 socket will be good on the board for easy interfacing...

Thank you for listening.

Alex

0 Likes 0 ·
Al avatar image Al commented ·

Did anyone in the UK / EU make any Stetson boards? where can I get one?

Thanks

0 Likes 0 ·
Michelle Konzack avatar image Michelle Konzack Al commented ·

I am interested too, but I am in Estonia

0 Likes 0 ·

Article

Contributors

Robduthie contributed to this article

Related Articles