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 ·
Show more comments
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 ·
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 ·
Show more comments
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 ·
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 ·
Show more comments
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 ·
Show more comments
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 ·
Show more comments
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 ·
dennis-brok avatar image dennis-brok Rob Duthie commented ·

will we be able to buy a kit for this somewhere ?


0 Likes 0 ·
Show more comments
dennis-brok avatar image dennis-brok Rob Duthie commented ·

so just to be clear

this will add 6 output relais

2 temp inputs

3 tank inputs

2x Digital Hi ports all isolated with pulse counting

3x Digital Low ports all isolated with pulse counting

1x canbus portand

and a psu input


this sounds amazing if this would work with the rapberry pi3 running victron venus

cant wait to build or get one


but where to get it


greetings


dennis (holland)


0 Likes 0 ·
Show more comments
hector avatar image hector Rob Duthie commented ·

Hello rob!

Thank you so much for your work !! It looks very well executed.

I am trying to connect an MCP and a couple of sensors to the raspberry and this is just what I was looking for. I have no problems with pcb production or smd mounting.

Could you send me the files to produce the pcb?

Thank you very much again for your time.

0 Likes 0 ·
Show more comments
jayy169 avatar image jayy169 Rob Duthie commented ·

Hi


Is it possible to get the gerber files sent over to joel@smarterconsulting.wales

Thanks!

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 ·
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 ·
Show more comments
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 ·
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 ·
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 ·
Show more comments
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 ·
Show more comments
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