Hello friends, I hope you all are doing great. Today, I am going to share the TRIAC Lamp Dimmer with ESP32 - Proteus Simulation, the ninety-first project of our IoT Projects series. If you have searched for a TRIAC dimmer with an ESP32, how phase-angle control works, a zero-crossing detector with a PC817, or how to dim an AC lamp from a web page, here is a complete one in a Proteus simulation. Every rotary wall dimmer you have ever turned works the same way: it does not lower the voltage, it switches the lamp on part-way through each half-cycle of the AC. This project builds that dimmer around an ESP32. A PC817 optocoupler tells the ESP32 when the AC crosses zero; the ESP32 waits, then gives a BT136 triac a short gate pulse; the triac conducts until the next zero. The later the pulse, the less power reaches the lamp. But there is a catch: the power does not follow the delay in a straight line. So this ESP32 does it properly: you ask for 25 % of the power, and it solves the RMS formula of a phase-cut sine for the firing angle that gives exactly that. In this tutorial, we will go through the circuit, how a triac works and why it switches itself off at every zero, the zero-crossing detector and its small offset, the firing angle and the power formula, why a cold filament needs a soft start, and why this sketch has no display. Then we dim a 21 W lamp in the simulation, compare a soft start with a hard one, and run a sunrise. At the end, you can download the project with the ...
Hello friends, I hope you all are doing great. Today, I am going to share the Wind Turbine Charging Monitor on Raspberry Pi 5 - Proteus Simulation, the ninetieth project of our IoT Projects series. If you have searched for a wind turbine with a Raspberry Pi, how a wind charge controller and its dump load work, how to measure a wind generator's speed, or how to monitor an off-grid battery with an INA219, here is a complete one in a Proteus simulation. A small wind turbine on a cabin roof is a lovely thing: free power whenever the wind blows, day or night. But it is also a power source nobody can switch off. A wind generator must always have a load, or it races in a gust. So every small wind system has a charge controller with a dump load: when the battery is full, the surplus is burned in a big resistor. This project builds such a system from a vertical-axis wind turbine, a 3-phase permanent-magnet generator, a wind charge controller and a 12 V lead-acid battery, and adds a Raspberry Pi 5 that watches all of it. The Pi measures the turbine's speed from the generator's frequency, reads the battery's voltage and current with an INA219, and does something useful with the surplus: just before the controller would start dumping, it switches on a useful load and dims it so that the battery stays at 13.35 V. In this tutorial, we will go through the circuit, the Savonius rotor and its power curve, the generator and why the battery sets its speed, the controller's dump load, the speed ...
Hello friends, I hope you all are doing great. Today, I am going to share the nRF9161 DK Library for Proteus, so you can run a cellular IoT simulation of Nordic Semiconductor's nRF9161 development kit. The nRF9161 is a system-in-package with an Arm Cortex-M33, an LTE-M and NB-IoT modem, DECT NR+ and GNSS under one metal shield - a complete cellular node the size of a fingernail. With this library the kit runs your Arduino sketch in Proteus 8.5, talks to its modem with AT commands, sends and receives SMS and reads a GNSS position. For the demo we built a cellular motion alarm for a shed, a boat or a holiday home without Wi-Fi. A PIR sensor watches the room; when the alarm is armed, motion sends an SMS with a map link to the owner's phone, and the owner arms, disarms and checks the alarm by SMS. NOTICE: Proteus has no nRF9161 model, so our team has put a lot of effort into building this board ourselves: the pins, the LEDs, the buttons and the cellular modem with SMS and GNSS are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the nRF9161 DK Library for Proteus: The nRF9161 DK (PCA10153) is Nordic Semiconductor's development kit for the nRF9161 SiP. The SiP joins the processor, the cellular modem, the RF front end and the power management in one ...
Hello friends, I hope you all are doing great. Today, I am going to share the nRF21540 DK Library for Proteus, so you can run a long-range Bluetooth LE simulation of Nordic Semiconductor's nRF21540 development kit. The kit pairs the popular nRF52840 with the nRF21540, an RF front end that boosts the transmit power up to +20 dBm and amplifies what the antenna receives - a range extender for Bluetooth LE, Thread and Zigbee. With this library the kit runs your Arduino sketch in Proteus 8.5 and talks to a phone over Bluetooth LE. For the demo we built a Bluetooth gate monitor for a farm gate or a yard gate far from the house - exactly where a range extender helps. A micro limit switch on the gate post knows whether the gate is closed, a red lamp shows when it is open, and an armed gate that opens raises an alarm on the phone. NOTICE: Proteus has no nRF52840 model, so our team has put a lot of effort into building this board ourselves: the pins, the LEDs, the buttons and Bluetooth LE to the phone are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below. And if our free libraries help you, you can buy us a coffee. So, let's get started with the nRF21540 DK Library for Proteus: The nRF21540 DK (PCA10112) is Nordic Semiconductor's development kit for the nRF21540 front-end module. It is built like the nRF52840 DK - the same SoC, headers, buttons ...
Hello friends, I hope you all are doing great. Today, I am going to share the new Float Switch Library for Proteus Simulation. The float switch is the simplest water level sensor there is: a plastic float on a stem, a magnet in the float and a reed contact in the stem. When the water lifts the float past the reed, the contact closes. Sump pumps, aquarium top-up systems, water tanks on roofs, coffee machines and boilers all use one. With this library you can run a full Proteus simulation of the float switch, with the water and the float moving on the sheet as the level changes. This is the last part of our list of fifty new modules. The demo is a sump pump: two float switches in one tank make a level band, an Arduino UNO V4.0 reads them, and our relay module switches our submersible pump. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the switch board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Float Switch Library for Proteus Simulation: A float switch is a level switch with no electronics at all. The common vertical type has a hollow polypropylene float that slides on a sealed stem. Inside the stem sits a reed switch: two thin ferromagnetic blades in a glass tube that touch when a magnetic field crosses ...
Hello friends, I hope you all are doing great. Today, I am going to share the new MCP23017 I/O Expander Library for Proteus Simulation. The MCP23017 gives an Arduino sixteen more pins over the two I2C wires, and unlike the simplest expanders it gives them the features of real microcontroller pins: a direction for every pin, push-pull outputs, built-in pull-ups, inverted inputs, and an interrupt that tells you which pin changed and what the port looked like at that moment. With this library you can run a full Proteus simulation of the MCP23017 board and watch all twenty-two of its registers at work. The demo runs a light back and forth on eight LEDs, reads a DIP switch with the chip's own pull-ups, and uses a loop-back wire so the interrupt-on-change fires by itself every time the light reaches the end of the row. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the LCD board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the MCP23017 I/O Expander Library for Proteus Simulation: A 16-bit I/O port on I2C, organised as two 8-bit ports, A and B. Each port is controlled by a set of registers, the same way a microcontroller's own ports are: one register sets which pins are inputs or outputs, another switches on ...
Hello friends, I hope you all are doing great. Today, I am going to share the new TCA9548A I2C Multiplexer Library for Proteus Simulation. Sooner or later every I2C project meets the same wall: two sensors with the same address. Many chips have one fixed address or only two to choose from, and two of them on one bus answer together. The TCA9548A is the classic way through: one small board that turns one I2C bus into eight separate channels, so the Arduino can talk to identical devices one at a time. With this library you can run a full Proteus simulation of it and watch it switch the channels. The demo puts three VL53L1X distance sensors - a robot's left, front and right eyes, all at 0x29 - on one Arduino, and it also shows exactly what goes wrong when the three are connected at once. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the VL53L0X board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the TCA9548A I2C Multiplexer Library for Proteus Simulation: A 1-to-8 I2C switch. On one side it has the host bus - SDA and SCL from the microcontroller. On the other it has eight channels, SD0 and SC0 to SD7 and SC7, each a little I2C bus of its own. Inside are eight pairs of switches. The TCA9548A is itself an I2C ...
Hello friends, I hope you all are doing great. Today, I am going to share the Sensorless Peltier Cooler Controller with ESP32 - Proteus Simulation, the eighty-ninth project of our IoT Projects series. If you have searched for a Peltier module with an ESP32, TEC1-12706 temperature control, the Seebeck effect, or how to control a thermoelectric cooler without a temperature sensor, here is a complete one in a Proteus simulation. A Peltier cooler normally needs a thermistor or a DS18B20 glued to its cold plate. This one needs none, because the Peltier module itself is the thermometer. A Peltier module pumps heat when current flows through it, and it works the other way round too: when the two sides are at different temperatures, it makes a voltage. That is the Seebeck effect, and for the TEC1-12706 it is 0.0517 V for every kelvin between the plates. So this ESP32 switches the module off for 40 ms every half second, measures that voltage with two cheap 0-25 V sensor modules, works out the temperature difference and holds it at a target with a PI loop through an IRLZ44N MOSFET. In this tutorial, we will go through the circuit, how a Peltier module pumps heat, the Seebeck voltage and why it can only be read with the current off, the measurement window, the PI loop with its anti-windup, the power, and a fault check. Then we watch the module cool in the simulation, hold 15 K and 25 K, run at full power and warm back when it is switched off, and compare every reading of the ESP32 with ...
Hello friends, I hope you all are doing great. Today, I am going to share the new PCF8574 I/O Expander Library for Proteus Simulation. The PCF8574 is the simplest way to give an Arduino more pins: eight of them, over the same two I2C wires that already run your sensors. It has no registers and no configuration - one byte out sets the pins, one byte in reads them - and it is the chip on almost every "I2C LCD backpack". With this library you can run a full Proteus simulation of the PCF8574 board and see exactly what its unusual pins do. The demo uses two boards on one bus: one drives four LEDs and reads a DIP switch, the other drives a 16x2 LCD in 4-bit mode - an I2C LCD backpack built by hand, so you can see how the ready-made ones work. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the LCD board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the PCF8574 I/O Expander Library for Proteus Simulation: An 8-bit I/O port on I2C. The chip has eight pins, P0 to P7, and nothing else to set up: there is no direction register, no pull-up register, no mode. Write one byte and the eight pins take its eight bits. Read one byte and you get the eight pins as they are. Three address pins give it eight addresses, 0x20 to 0x27, ...
Hello friends, I hope you all are doing great. Today, I am going to share the new PS2 Wireless Controller Library for Proteus Simulation. The 2.4 GHz PS2-style game pad with its little receiver is the favourite remote control of robot builders: two analog sticks, sixteen buttons, two rumble motors, a range of several metres - and a receiver that speaks a simple four-wire protocol any Arduino can handle. With this library you can run a full Proteus simulation of that receiver, drive its controller from a pop-up, and watch every byte of the protocol go by. The demo is the classic project for this pad: a two-wheeled robot car with an L298N - throttle on the left stick, steering on the right, a horn that makes the controller rumble, and a turbo button. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the joystick board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the PS2 Wireless Controller Library for Proteus Simulation: It is a game pad in the familiar two-grip shape - a D-pad, four face buttons, four shoulder buttons, SELECT and START, two analog sticks that also click as buttons - sold with a small 2.4 GHz receiver. The controller and the receiver pair by themselves when both are powered; the receiver then ...