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 ·
Show more comments
Mark avatar image Mark commented ·

Thanks Rob.


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

Article

Contributors

Robduthie contributed to this article

Related Articles