Ford Transit USA Forum banner
1 - 16 of 84 Posts

· Registered
2022 U8U
Joined
·
759 Posts
I don't know how committed you are to your current path, but if you were starting from scratch I would strongly recommend you take a close look at Home Assistant and ESPHome. They are a hugely popular and active open-source project intended to do exactly what you are envisioning. I believe that you could accomplish 100% of your goals with 30% of the time and effort.

That said, I do understand that sometimes it is the journey and not the destination, so you may have very good reasons to continue down your current technical path.
 

· Registered
2022 U8U
Joined
·
759 Posts
I haven't looked at either really. These days I pretty much assume everything involves an internet connection and a phone app.
I am 100% with you on the "no mandatory cloud" principle. But that's the thing: Home Assistant was founded on just that principle. They bend over backwards to keep everything local (although you CAN access remotely if you like). It really is at least worth a look. You might at least find it useful to fill in the cracks until you have a chance to cover them properly.

BTW: I agree about your work. First rate.
 

· Registered
2022 U8U
Joined
·
759 Posts
For the Espar side, Mike had mentioned folks looking to have remote switches & sensors for the heater have accomplished it using the analog bus.
Could you elaborate on this? What "analog bus" are you referring to?
I will be using a Rixen's system, and I have been assuming that I will end up sniffing the Espar CANbus. There seems to be nothing on the Net as of yet, at least that I could find.
 

· Registered
2022 U8U
Joined
·
759 Posts
OK, I have been biting my lip. I completely understand that many consider it to be "cool" to be able to control everything from the phone, but ...

What are the actual practical advantages over a more typical setup where the heater/AC have their own thermostat, the fan has an on/off switch and speed control, and the inverter comes with a battery monitor? Add tank level sensors if the tanks are hidden from view, and what else is there?

Just trying to understand why this consolidation of everything is considered an advantage. Doesn't it significantly increase the odds of a single failure shutting down many systems? What is gained?
Advantage 1: Visibility
There are a lot of things that should be monitored, but generally aren't. Is your freezer cold enough? Are your undercarriage water tanks too cold? Are your shore power cord and TV antenna stowed before you drive away? All hatches closed? Is the temperature rise across your Espar as expected? Is everything set properly when you leave for a day hike?...

Advantage 2: Vigilance
Once you have all of the above available somewhere, who is going to watch it all? Did anybody notice that the battery isn't charging? That the waste tanks were getting full? That the A/C is cycling abnormally?.... Having automatic setpoints on such things is invaluable.

Advantage 3: Convenience
You settle into the driver's seat and put on your belt and then realize you left the ceiling fan open -- Can you fix it from your seat? Sitting down to watch TV -- set all those nice LED lights all over the van to an appropriate setting without scurrying around. etc...

Advantage 4: Automation
Set thermostat appropriately for bedtime, based on outside temperature and time of year. Define modes for "living", "sleeping", "away", "storage" and get them right every time. Power up/down subsystems as needed in order to conserver battery. Modify such behavior depending on battery level. Manage charging behavior depending on more than simple SOC. Automatically shut off inverter when it hasn't been used recently. Automatically shut down systems when faults detected,,,

Advantage 5: Consistency
Rather than learning a dozen random user interfaces for various systems, they can be presented to the user in a consistent, easy to learn manner.

Yes, I understand that you currently get by without any of this, and you are perfectly capable of doing most of it manually. But it is silly to argue that none of it has value. And, many traveling companions have no interest in understanding enough about, say, lithium battery charging to be prepared to know how to best manage it by hand.

Just trying to understand why this consolidation of everything is considered an advantage. Doesn't it significantly increase the odds of a single failure shutting down many systems? What is gained?
This is a legitimate point, and one that is often overlooked. But, the kind of systems being discussed here use distributed controls that eliminate single point failures. This is what projects like ESPhome are all about.
 

· Registered
2022 U8U
Joined
·
759 Posts
What are some options for variable speed control of fans via microcontroller? Mine is [email protected], full speed. The idea to automate it comes and goes for me with the seasons, but the season where it's more important is coming soon!
Hm. 11A is more than I was guessing. Too much for the Shelly device I referenced.

This looks like it would work:

 

· Registered
2022 U8U
Joined
·
759 Posts
I have been investigating similar things but for a different reason. I am looking into using CANBUS SAE J1939 or Nema 2000 for automation but also so that I can have multiple switch panels connected via low voltage data all controlling the same equipment. The scenario of wanting to turn the outside lights on from the bed or having a panic button that turns all the exterior lights on at once seems to be handy.
ESPhome makes all such projects trivial. You can use wires if you like, but WiFI is living the dream. It took me some time to come over to the belief that waves were as good as wires, but I got there. ESPhome is amazing. Even more so when paired with HomeAssistant.
 

· Registered
2022 U8U
Joined
·
759 Posts
Now we just need to perfect wireless power and we're set!

Yes, I know batteries are a possibility, but no - I'm not going down that road for multiple nodes in a control system.

Maybe micro-atomics...
My intention is to run regulated 5VDC power feeds throughout the van, just as we do with 12VDC. Of course 12V-5V buck converters are also trivial.

I also intend to deploy the nodes in a way that is robust to central failures. I am treating HomeAssistant as icing, not the cake.
 

· Registered
2022 U8U
Joined
·
759 Posts
But the question then remains, since power needs to be run to each module, why not communication bus wires too?
There is no compelling argument against a hardwired LAN. For many years, I was strongly in the "use wires whenever possible" camp. But, confronting the practical realities of my upcoming build, combined with real-world experience with ESPHome has caused me to reevaluate. I am actually kind of surprised that my position has changed on something that I once thought was totally obvious, but it has. If I were designing some closed system that I believed would rarely change (e.g, an HVAC system in a large building) I would still tend to prefer wire. But, all of my vans have proven to be open-ended experiments, and that tips the balance for me.

This is not an issue that I feel like proselytizing about -- there are arguments both ways. But here are what I see as the arguments for wireless:

--WIreless technology, and WiFi in particular, has become VERY robust, due to its wide deployment in the consumer world. The likelihood of serious performance or reliability issues in machine-to-machine applications has gotten very low.
--Wireless is likely to be more robust, not less, in a mobile environment, since there is nothing physical to break (to speak of). And, most problems can be debugged without often-difficult physical access. Of course, wired LANs can be made arbitrarily reliable, but doing so is neither easy nor inexpensive. I have no problem with folks who enjoy this challenge, but do not underestimate it.
--Comparing LAN wiring with power wiring is fair, but the fairness depends on the choice of LAN topology. Most wired LANs use star topologies for bandwidth and maintainability reasons. Such topologies are a lot more complex than a simple electrical bus. The historical exceptions, such as RS-485, have many limitations and tend to be difficult to scale. This, of course, leads to CANbus. There are very good reasons why the automotive industry has gone this route. It is a true distributed daisy-chain network and is indeed on the same order of complexity as power wiring. If you are prepared for all of the complexity of going to a CANbus-based system, then I have no quibble with it. Be prepared for a science experiment, though. And make sure that the wiring is very robust, since every inch of it is a potential point of failure.
--Extensibility: This is probably the thing that tipped the balance for me. With a wireless lan, slapping in a new node is a casual project, anywhere power is available. For example, deciding to put a new light switch somewhere you overlooked is trivial. Putting a temperature sensor on your under-chassis tanks--no problem. If your style is to design/build/walk-away, this doesn't apply. But, that is not my style at all.
--Maintainability: The thing that won me over to ESPhome in particular was the seamless way they handle OTA updates. Once ESP is running on a node, you never have to plug it into a computer again. Remote updating is like falling off a log. You can add features from the comfort of your living room. Yes, this could in principle be done with CANbus etc, but actually doing it with hobbyist MPUs would be quite a project as far as I can see.
--Hardware simplicity: The existence of SOC processors with on-chip WiFi an Bluetooth (such as the ESP32) means that simple nodes can be almost unbelievably simple from a hardware perspective. And simple means reliable. Again, not a show-stopper, but I have found working with such MPUs to be incredibly pleasant and productive,

Again, I am not really trying to convince anybody here--I will leave it to someone else to develop the list of advantages of wired LANs. But I did want to lay out the arguments that led to my conversion on this point.
 

· Registered
2022 U8U
Joined
·
759 Posts
For you Home Assistant fans, note that ESPhome has a CANbus module.
CAN bus
It supports both the ESP-32's internal CANbus transceiver and external CANbus modules such as the TJA1050 (which interfaces to the ESP via SPI). So, the low-level CAN stuff is all nicely done in a dedicated ESP, in proper edge-computing style. This is how I intend to proceed, at least at first.

People have also gotten the Canable USB/CAN device working directly in Home Assistant, but that would require plugging the Canable device directly into the RPI, which I am trying to avoid.
 

· Registered
2022 U8U
Joined
·
759 Posts
Instead they struggled at 0 C, which isn't even cold.
Could you give an example of this? Not my experience.

For example, the ESP32 is rated
-40C to +125C

It is true that the RPI's published temperature range is a little scary. But, read this:

In any event, there are plenty of alternatives available if that becomes a problem.
 

· Registered
2022 U8U
Joined
·
759 Posts
RV-C has its merits, but I think it is mostly interesting if you need to talk to an existing device that speaks it.
@brío Do you know of or have any examples of using ESPHome/Home Assistant in a van environment that would help jumpstart a newbe?
Yes, I have been building modules to measure temperature and current consumption of the fridge; perform motion control of a TV lift; read CANbus data; use an accelerometer to measure vehicle level; and control LED lights (using ESP-based Shelly controllers). ESPhome is the best thing since sliced bread. Very easy if you are any kind of a programmer. Home Assistant will run on a Raspberry Pi, with a local touchscreen and also a wall-mounted Fire Tablet. Waiting for my van to install all this stuff.
 

· Registered
2022 U8U
Joined
·
759 Posts
Good to know. I’ve been researching Home Assistant on Raspberry Pi. I think I’ve found all the bits I need to control lighting and handle 12v I/O. Now I just need to convince myself that this would be a fun task ;-)
Well, I'm having fun, FWIW.

You should note that Raspberry Pis have been pretty much unobtanium at any reasonable price since before the holidays, due to the current chip shortages. They are starting to appear on Amazon now and then, usually packaged with power supplies and cases (which you probably want anyway). I recently snagged a pair of 4GB Pi-4s for $99 each, which was a steal in the current market. They are out of stock now. I have seen some kits for $129 recently, which is still not bad.

If you decide to proceed, I would be glad to help you get started.
 
1 - 16 of 84 Posts
Top