Electric 1x1
Basic knowledge of electrical engineering
Basic knowledge of electrical engineering
Here you will find a small compilation of the most important basics of electrical engineering that you need in the DIY maker area. We know that these topics seem daunting to many at first... The comparison with water is ideal for explaining difficult-to-grasp relationships in the world of electricity. Electric current is the movement of charge carriers through a substance. Charge carriers are, for example, ions and electrons - if these move through a copper wire, this is called current flow. You can imagine this as a river in nature - more precisely, like the movement of water in a riverbed in a certain direction.
Tension - the potential
Voltage is required for current to flow. Voltage is the driving force that causes the charge to move.
Whether a river flows calmly or becomes a raging torrent depends largely on the difference in height it overcomes. In the case of electricity, this gradient is called "electrical voltage" and is measured in volts. Therefore, the general rule is: the higher the voltage (at the same resistance value), the more current can flow.
Current - the flow
The amount or strength of the flowing current is given in amperes. These can be very large or tiny amounts. To use a clear example in our water image: several thousand liters of water flow through the Elbe in Magdeburg every second, while perhaps only a few liters flow through a small stream.
However, the amount of water or electricity on a certain stretch of road cannot be increased at will: If a riverbed or - for the sake of comparison - a pipe is full, it must be enlarged in order to transport more water without causing damage. Power lines are also only designed for certain amounts: If too much electricity flows, this can lead to overloads, defects and failures. In the case of rivers, this is referred to as flood damage - in the case of cables, this is referred to as overheating and fire. (This is why we always have to protect our cables - more on this below!)
Resistance - the mill
Resistance can be seen as the antagonist of voltage, because voltage drops across every resistor - i.e. decreases. Electronic components generally have a resistance - even an electronic conductor such as a cable has its own resistance at which voltage drops. In our metaphor with the flow, you can imagine this as a mill that slows down the flow of current. Thus, resistance (abbreviated to 'R') is a measure of how strongly electrons are slowed down. The current, voltage and resistance can be calculated using Ohm's law - to do this, you divide the falling voltage by the strength of the flowing current.
Performance
It's about how much electrical work the electricity does every second, or how much electrical energy is converted into other forms of energy. In our example with the water wheel, you can imagine the following: If the wheel is on a wide, deep, and fast-flowing river, the power that the wheel can gain from the river is enormous. The yield from a small, calm stream is correspondingly low. In electrical engineering, this power is given in watts or kilowatts (1000 watts). The higher the power of a device, the more electricity it uses (just as a large water wheel needs more water to drive it). The time dimension also plays a role here: If you run a hairdryer with an output of 2,000 watts (2 kilowatts) for an hour, for example, it uses two kilowatt hours (kWh).
Cable cross-section & fuses
When laying new power cables, you should first calculate the required cable cross-section. This step is essential to prevent cable fires. If we think of a toaster, for example, a high current is sent through a thin, long wire - this leads to heating and our slices of bread are browned. The electrical energy is therefore converted into heat. However, since we do not use our power cables as a source of heat, but want to operate our consumers safely and reliably, the correct cable cross-section must be selected using a table, for example. There are various ways to determine the cable cross-section: the diameter can be determined and the longitudinal cross-section calculated from this, there are special cross-section meters, or you can use wire end ferrules in different sizes - the sleeve that just fits over the stripped strand indicates the power cross-section. To prevent cable fires, each live cable may only be used up to a maximum current and protected by a fuse.
battery
Are you thinking about getting a battery in your van or boat, but still have questions? We have put together a comparison of the pros and cons to help you find out which type is best for your needs.
BMS - Battery Management Systems for LiFepo4 batteries
Why do Lifepo4 batteries need a BMS, i.e. a management system for the battery?
A finished battery always consists of 4 cells. These cells are connected in series and thus form our system voltage of 12.8V, with each cell contributing a voltage of 3.2V. The BMS now has two important core tasks: monitoring the cell voltages and preventing charging at temperatures below 0°C.
1. When monitoring the cell voltage, the final charging voltage and the cut-off voltage are particularly important. A LiFePo4 cell should always be operated between 2.6V and 3.65V. This means that as soon as a cell reaches 3.65V, the charging process is interrupted and as soon as a cell reaches 2.6V, the BMS disconnects the battery from the consumers. These are recommended settings to increase the number of cycles of the battery. If you want more capacity and are willing to accept the reduction in the number of cycles, you can set the parameters to 2.5V to 4.2V. As you can see here, however, the system depends on each cell. The cells should therefore all have the same charge level and capacity when they are connected in series. This is also referred to as "initial balancing". If a cell were only half charged, for example, or only had half the capacity due to a defect, this would always trigger the BMS's undervoltage protection. Conversely, if one of the other three cells has reached the upper limit of the charging voltage, the charging is interrupted and the reduced cell is no longer charged.
2. If a LiFePo4 cell is charged at sub-zero temperatures, it can form so-called "dendrites" which cause damage. If you still want to use a battery in cold areas, you must first heat the battery above freezing point.
Battery monitoring
When is it important and what for?
Anyone who has ever travelled independently in a camper or motorhome knows exactly how important it is to know the condition of the battery. Nobody wants to suddenly find themselves sitting in the dark. There are roughly two methods for monitoring the battery:
1. Measure the voltage.
This method is very simple and therefore not very precise. The current state of the battery is calculated using the battery voltage. This is possible because it decreases with the charge level. This is still fairly accurate for an AGM/lead-gel battery, as you can speak of an almost linear drop, but it is hardly applicable to a LiFePO4 battery, as the voltage remains very stable and only drops sharply at the end.
2. Counting the current.
The capacity is given in ampere hours Ah or watt hours Wh. Let's take a 100Ah LiFePO4 battery as an example, it can deliver 100A for one hour or 1A for 100 hours. We now need the option to monitor the outgoing and incoming currents of the battery and count them over time. This function is already integrated in many (required) battery management systems for LiFePO4 batteries and we can find out the state of charge, often SOC (State of Charge). The various manufacturers provide apps or interfaces for this. In our VAN PI system, Daly/JBD - Xiaoxing/Liontron are currently supported via cable or Bluetooth. Another method of monitoring the current is a shunt. This is a calibrated "resistance" - or rather an area in the circuit - where we can calculate the current using the resulting voltage drop. Such shunts have a typical voltage drop of 75mV for a certain current such as 100A. This voltage drop is linear and we can therefore calculate and monitor the currents precisely.
How do I charge my battery?
Shore power
If you are at home or at a campsite, you can charge the battery using chargers from a variety of manufacturers. Two things are particularly important here: firstly, the charging current should be sufficiently dimensioned and secondly, the type of battery used must be supported. Different batteries have different charging curves and end-of-charge voltages, all of which must be taken into account when making your selection.
Solar
Of course, it is possible to charge the battery via the solar system; you can find all important information under the heading "Solar".
Alternator - Booster
Charging via the alternator used to be a small thing. The internal resistance of lead-gel batteries prevents extreme current consumption, so second batteries could be operated in parallel with the starter battery without any major concerns. Of course there were "charging boosters" back then, but these were used much more to compensate for the voltage loss between the second battery and the alternator. Mostly for caravans, as the voltage reaching the car's battery is already very low. Back then it was actually still a boost - nowadays we only talk about a booster for marketing purposes. You know the drill ;)
When used with a LiFePO4, however, it is much more of a limiter - because unlike the old batteries, this new technology accepts much higher charging currents and does so until just before 100% charge. Our alternator would therefore run at 100% load all the time and would quickly fail due to overheating. The charging booster you choose should therefore provide a current that your alternator can provide without any problems and is large enough for you to charge the battery in a reasonable amount of time.
Example calculation: 200Ah LiFePO4 with a 25A charging booster
Our battery is empty and we want to charge it while driving on a warm day. The refrigerator is on. Ideally we would have to drive 200Ah/25A = 8h to fully charge the battery.
However, the following is often forgotten: the charging boosters reduce the power when the temperature is high and the device is warm. Often only 70-80% of the charging power is achieved. Furthermore, consumers such as the refrigerator draw power at the same time. This means that the charging current is only around 15A.
So the new calculation is 200Ah/15A = 13.3 hours of driving time to charge the battery from 0 to 100%. If we now use a larger charging booster, we can shorten the time, but we should make sure that it is not greater than 50% of the rated output of the alternator.
Solar
What do I have to pay attention to and how much solar do I need?
When it comes to quantity, the more the better :)
Above all, it depends on how much of the area on your vehicle you can and want to equip with solar panels. Often, a compromise has to be made between the roof rack and the solar area.
Let's do another example calculation: let's assume that we have installed solar modules with an output of 200W - that would be an area of about 1 square meter. To calculate how much energy you can charge the battery in one day, you can use solar energy yield calculators. There you can use the coordinates to calculate the average yield over the year (don't forget to enter the inclination of 0°). With a 200W system you should therefore get about 22-25kWh in the summer months. That corresponds to a daily yield of about 750Wh or about 60Ah. However, this is the ideal case. In addition, there are shadows that are not taken into account, losses in the charging control and soiling of the solar modules. A realistic yield is probably more like 400-500Wh.
What is the electricity we generate in summer enough for?
Roughly speaking, the calculated power is enough to run a compressor cooler for around 15 hours. Longer periods of autonomous operation are therefore only possible in conjunction with a large battery. This is because other consumers such as lights or charging cell phones and laptops continue to discharge the battery. The cooler is often turned off at night, but 200W is usually not enough to generate a positive charge in the battery. However, with a suitable charging booster (more on this below), for example, the missing power can be quickly recharged by the alternator.
Wiring and charge controller
Let's start with the charge controllers. MPPT (Maximum Power Point Tracking) has become established on the market and is more efficient than the outdated PWM technology.
What do I need to look for in an MPPT charge controller?
The charge controllers always have two important parameters: the PV (photovoltaic voltage) and the maximum charging current. Using the example of the Victron Smart Solar 75/15, this means: the voltage of the solar system can be a maximum of 75V and the controller can then achieve a maximum charging current of 15A. This controller can therefore be used for 220W solar systems. 15a (14.4V*15A).
How should I design the solar panels?
Solar panels come in a variety of dimensions and circuits. The most important thing here is the PV (or open circuit voltage) and the nominal current. If we now design a solar system for the solar controller mentioned above, we can use solar modules with a maximum voltage of 75V. This voltage seems very high, but you could now connect three solar modules with 100W and an open circuit voltage of 20V in series and have an open circuit voltage of 60V.
But we can only achieve a maximum of 220W with the solar controller (75/15), so why 300W solar on the roof?
The solar panels reach 300W at peak power, i.e. with optimal alignment and a bright blue sky. However, since we install the modules flat on the vehicles and not at an angle, experience has shown that only 50% of the peak power is achieved - in this case 150W. It therefore makes sense to dimension the solar system somewhat above the solar controller.
What is the most effective way to switch on the solar modules?
The advantage of connecting solar panels in series is the low currents. The voltage is added, but the current remains the same. This means that thinner and lighter cables can be used. But there are also other controllers that cannot handle as much voltage. Or combination devices that are charging boosters and solar controllers in one, such as the Renogy DCC50s. This can only be operated with a maximum PV voltage of 25V. Here the solar modules would have to be connected in parallel. This means that the voltage remains the same and the currents add up.
Regardless of whether it is connected in parallel or in series, the solar system must be connected with appropriate cables and the fuse must not be forgotten under any circumstances!
Inverter 230V in the van
Pure sine or modified sine
A normal 230V socket on the road makes many things easy. To implement this, we now need to convert our 12V on-board power supply. We do this with an inverter. This converts the direct current to alternating current and thus increases the voltage. You often read about pure sine wave and simplified/modified sine wave. What does that mean?
In our normal power grid, we have an alternating frequency of 50 Hz. This means that the voltage and therefore the current change direction 50 times a second. This happens in a nice sine wave. This is the crux of the matter: pure sine wave inverters reproduce this curve 1:1 and are no different from normal shore power - modified sine wave inverters do not have a curve, but change the voltage in a step shape. The circuit is much simpler and these devices are therefore cheaper.
Which devices should definitely get a pure sine wave inverter?
These include, for example: coffee pad machines (such as Philips Senseo), televisions, chargers, audio amplifiers. Sensitive devices such as chargers could be damaged by a modified sine wave inverter. However, opinions differ here - many report years of use without any defects.
What performance?
Here it is of course important to know which devices are to be operated. If you only want to charge your laptop, camera, etc., inverters with low power are sufficient. If we assume a 250W inverter, for example, you can easily charge or operate a laptop and two other small devices.
However, if large consumers such as coffee machines, kettles or similar are planned, the output of the inverter must be very high.
Here is an example calculation for a vehicle with an induction hob and a 200Ah LiFePO4 battery.
1. Required inverter:
Our hob has 2000W power -> Therefore we need an inverter with at least 2000W continuous power. The peak power that can be accessed for a short moment is then usually 3000-4000W.
2. Cable cross-section to the inverter:
We have to generate the required 2000W from 12.8V voltage. This means we have a current of (2000/12.8) approx. 160A. To be on the safe side, we put the cable with 200A and use a 35mm² cable to connect our battery to the inverter. Don't forget to protect the whole thing directly after the battery ! Here we would also use a 200A fuse.
3. How long can I cook?
We have calculated that we need around 160A to operate the hotplate. We could therefore operate our fully charged battery with 200Ah for around 1 hour. (200Ah/160A = 1.25h) Here we assume that we only want to discharge the battery to 80% in order to have a longer cycle life. Now let's assume that we only want to cook for around 20 minutes. Is induction really an alternative again now?
(In the chapter Charging Booster and Solar you will find the calculations on charging times.)
Mains priority circuit
A mains priority switch is used to switch to shore power as soon as it is available. This separates the 230V system from the inverter and the energy is no longer drawn from the battery. At the same time, a charger can be switched on to charge the battery.
Let's do another example calculation: let's assume that we have installed solar modules with an output of 200W - that would be an area of about 1 square meter. To calculate how much energy you can charge the battery in one day, you can use solar energy yield calculators. There you can use the coordinates to calculate the average yield over the year (don't forget to enter the inclination of 0°). With a 200W system you should therefore get about 22-25kWh in the summer months. That corresponds to a daily yield of about 750Wh or about 60Ah. However, this is the ideal case. In addition, there are shadows that are not taken into account, losses in the charging control and soiling of the solar modules. A realistic yield is probably more like 400-500Wh.
What is the electricity we generate in summer enough for?
Roughly speaking, the calculated power is enough to run a compressor cooler for around 15 hours. Longer periods of autonomous operation are therefore only possible in conjunction with a large battery. This is because other consumers such as lights or charging cell phones and laptops continue to discharge the battery. The cooler is often turned off at night, but 200W is usually not enough to generate a positive charge in the battery. However, with a suitable charging booster (more on this below), for example, the missing power can be quickly recharged by the alternator.
Wiring and charge controller
Let's start with the charge controllers. MPPT (Maximum Power Point Tracking) has become established on the market and is more efficient than the outdated PWM technology.
What do I need to look for in an MPPT charge controller?
The charge controllers always have two important parameters: the PV (photovoltaic voltage) and the maximum charging current. Using the example of the Victron Smart Solar 75/15, this means: the voltage of the solar system can be a maximum of 75V and the controller can then achieve a maximum charging current of 15A. This controller can therefore be used for 220W solar systems. 15a (14.4V*15A).
How should I design the solar panels?
Solar panels come in a variety of dimensions and circuits. The most important thing here is the PV (or open circuit voltage) and the rated current. If we now design a solar system for the solar controller mentioned above, we can use solar modules with a maximum voltage of 75V. This voltage seems very high, but you could connect three solar modules with 100W and an open circuit voltage of 20V in series and have an open circuit voltage of 60V.
But we can only achieve a maximum of 220W with the solar controller (75/15), so why 300W solar on the roof?
The solar panels reach 300W at peak power, i.e. with optimal alignment and a bright blue sky. However, since we install the modules flat on the vehicles and not at an angle, experience has shown that only 50% of the peak power is achieved - in this case 150W. It therefore makes sense to dimension the solar system somewhat above the solar controller.
What is the most effective way to switch on the solar modules?
The advantage of connecting solar panels in series is the low currents. The voltage is added, but the current remains the same. This means that thinner and lighter cables can be used. But there are also other controllers that cannot handle as much voltage. Or combination devices that are charging boosters and solar controllers in one, such as the Renogy DCC50s. This can only be operated with a maximum PV voltage of 25V. Here the solar modules would have to be connected in parallel. This means that the voltage remains the same and the currents add up.
Regardless of whether it is connected in parallel or in series, the solar system must be connected with appropriate cables and the fuse must not be forgotten under any circumstances!
Auxiliary heaters
If you want to be on the road on cold days, you can't avoid having an auxiliary heater. Auxiliary heaters are available with different energy sources, with diesel and gas being the most common.
Gas is mainly used in many mobile homes and trailers. Diesel heaters are often used in vans and self-built systems. However, we will only be looking at diesel heaters from Webasto, Autoterm, LF Bros, Vevor etc.
All of these heaters use energy from the battery to burn diesel. However, this energy from the battery is much less than the heat we ultimately have available (approx. 35W from the battery produces up to 5000W of heating power).
Required performance?
Many people assume that the more power a heater has, the better it can heat a vehicle. What is often not taken into account is that restarting the device too often is not good for its lifespan. This is because combustion does not run optimally during the start-up process, which leads to soot and wear. If we have a very powerful heater that produces too much heat even at the lowest setting, the only way to counteract this is to open windows or temporarily switch the heater off. The latter, as described, shortens the lifespan of the heater. Experience has shown that a 2kW heater is more than sufficient for a normal VAN (long version).
Permanent installation or heating in a box?
Mobile diesel heaters are increasingly found in a small box with a battery and a diesel tank. The cheaper models from the Far East are often used for this purpose. This is because they often do not have approval to be permanently installed in a vehicle. This is not a problem with the more expensive devices.
Which heating modes?
The different heaters can be put into different operating modes; here are a few common methods which are used.
"Power mode": The heater runs at a fixed power level regardless of the temperature.
"Temperature mode": The heater attempts to maintain a certain target temperature by changing the power level.
"Hysteresis mode": The heater has an upper temperature limit at which it switches off and a certain switch-on temperature at which it starts again. The difference between the high and low values is called hysteresis. However, one should not forget that a heater that is starting is very loud and its service life is reduced by starting it several times.
CO detector
No matter what type of heating is installed, it is always advisable to install a CO detector in the vehicle. Even if the probability of something happening is very low, the consequences can be very dramatic. That is why we always recommend installing a CO detector in the vehicle. In an emergency, this will sound an alarm if carbon monoxide enters.
Water
Tank sensors
Two methods have been established for monitoring water tanks. Firstly, there are resistance tank sensors. These have a float and this float moves to different resistance points with the water level. These can then be easily measured. These sensors must be selected specifically for the height. With capacitive sensors, such as those from Votronic, the height of the tank can be subsequently adjusted by shortening. These sensors are more precise because the measured value moves linearly with the water level. Our VAN PI system supports both systems.
pump
A pump is needed to get the water out of the tanks again. There are cheaper submersible pumps that are embedded in the tank and must be activated via a switch. This switch is often integrated into the fitting. In addition to this technology, there are also suction pumps that are located outside the tank and suck in the water independently and switch off when a certain pressure is reached.
Let there be light!
Switching, dimming, automating...
What is of course essential is the control of lamps, pumps and other devices such as the cool box. The simplest option for this is a normal switch. These come in a variety of sizes and shapes. Such a switch simply separates the power supply from the consumer and switches it on or off. But since we have been talking about smart homes or SmartVans for a while now, this is of course far too trivial. That's why we're explaining to you here what other options there are.
Relays as switches
You have to imagine a relay like a remote-controlled switch. Whereby a small current through a coil creates a magnetic field and thus activates a larger switch. This means that we can switch our actual consumer with a small controller/processor. On our relay board, for example, there are 8 relays that you can control via the touchscreen, the web interface or the IOT bridge. But there are also WiFi or Bluetooth relays. The actual function always remains the same -> switching a consumer, only the control and conditions are different. The required current must also be taken into account. Each relay has a certain nominal current that must not be exceeded. However, relays can certainly be cascaded. For example, to use one of our relays to switch on a larger relay to enable larger currents.
Dimming and regulating
If you want more than just the on and off status of the consumer, you cannot use a relay for this, but need a transistor circuit. A transistor can be thought of as a "digital" relay that can switch much faster than a relay. This is exactly the principle that is used to dim or control lamps and fans in the DC voltage range. They are switched on and off very, very quickly. This is also referred to as a pulse width modulated signal (PWM). This makes it possible to control the consumer's power. So if you want to dim your LEDs, you definitely need a controller with a transistor circuit -> our PeKaWay DIMMY has 7 PWM channels that can be controlled via our system.
Automate
Turn on the heating when it gets too cold at night or automatically switch the refrigerator back on after 8 hours so you can sleep peacefully at night? All of these are of course desirable options. For this you need a controller that collects all the information and can be programmed. Our VAN PI system with its open Node-Red backend happens to be designed for exactly this. With a little programming knowledge you can adjust everything and customize your system to your needs.
Network? Ethernet?
IPIPIP!
There are often many devices in a modern network. IP addresses are used to assign them. These can be used to address each device specifically.
Router
A router connects different network values with each other and ensures that all data packets arrive where they should. Most routers used at home are not only the actual router but also a switch and access point. Above all, however, the router connects the home network with the Internet.
Switch
A switch ensures that packets are forwarded from one device to another. The difference to a router is that packets are only forwarded and not "redirected" or sent to other networks like a router does.
AP - AccessPoint
An access point is a WLAN point where devices can log in. An access point is usually operated with additional hardware such as a router. This means that devices are only connected and forwarded wirelessly.
DHCP
In the past, you had to manage all devices and their IP addresses manually, but in modern networks this happens automatically. However, this requires a DHCP server (usually integrated directly into the router). This receives a request packet for an IP address and sends a free one back to the connected device.
TOOLS
There are various tools to check or analyze a network.
Ping -> checks whether the connection to a specific IP address exists.
Netscan -> checks all IP addresses in the home network for devices.
Recommended app for smartphone "Net-Analyzer" or for PC "advanced-ip-scanner "
SSH - Headless - Web interface
Many servers or devices do not use a screen or physical input to make settings or get information. This is called a headless setup. Many people know it from their home network router, for example. You dial into the IP address of the device via a browser and can then access the device. This is also the case in our VAN PI.
Going one level deeper, we talk about the console. This is the lowest level of communicating with a system. If you now connect to a console remotely, you use the SSH protocol and can access the remote console. A very well-known and simple tool for this is Putty.
Related to VAN PI?
In the standard configuration, our VAN PI is an access point, router and switch in one. If you log in with your smartphone, it receives an IP address and can access the web interface. If you have an LTE stick connected, this Internet access will also be passed on. The system can also be integrated into an existing network as a client. In this case, you would have to look up the IP address you received in the router or use one of the tools listed above.