Engineering Blog

Learn it. Build it. Simulate it.

2,735 step-by-step tutorials and projects on Arduino, ESP32, Raspberry Pi and Proteus.

2735 articles found.

ESP32-C3 SuperMini Library for Proteus: Tiny Wi-Fi Board

ESP32-C3 SuperMini Library for Proteus: the tiny 16-pin board with its blue LED lit

Hello friends, I hope you all are doing great. Today, I am going to share the ESP32-C3 SuperMini Library for Proteus. It is the fourth board of our Wi-Fi series, after the ESP32 DevKit V1 Library for Proteus V2.0, the ESP32-DevKitC V4 Library for Proteus and the ESP32-S3 DevKitC-1 Library for Proteus: the tiny ESP32-C3 SuperMini, a board smaller than a postage stamp with sixteen pins, a USB-C port, two buttons and a blue LED - the cheapest way to put a Wi-Fi chip into a small project. Let us be clear from the first line: Proteus 8 has no model of the C3's RISC-V core, so our team has put a lot of effort into building this board ourselves: the C3's pins, its LEDs, its buttons and Wi-Fi are all our own model. You write a normal ESP32-C3 Arduino sketch (GPIO numbers 0 to 10, 20 and 21, LED_BUILTIN on GPIO8, analogRead() from 0 to 4095, attachInterrupt() on any pin, WiFi, WebServer, HTTPClient) and compile it with our free Arduino IDE add-on, TEP Boards for Proteus. The simulation has its limits: 8 KB of RAM for your sketch, no FreeRTOS tasks, no Bluetooth and no native USB - we list every limit below. NOTICE: the real SuperMini has no RESET pin, so this board taught our model and our Arduino add-on a new trick: its RST button restarts the board through the watchdog - TEP Boards for Proteus is now version 1.3.0. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the ESP32-C3 SuperMini board of our forum. And if our free ...

ESP32-S3 DevKitC-1 Library for Proteus: RGB LED and Wi-Fi

ESP32-S3 DevKitC-1 Library for Proteus: the 44-pin board with its RGB LED in magenta

Hello friends, I hope you all are doing great. Today, I am going to share the ESP32-S3 DevKitC-1 Library for Proteus. It is the third board of our Wi-Fi series, after the ESP32 DevKit V1 Library for Proteus V2.0 and the ESP32-DevKitC V4 Library for Proteus: Espressif's newer ESP32-S3 on its official 44-pin development board, with the feature everybody loves on it - the addressable RGB LED on GPIO48. Let us be clear from the first line: Proteus 8 has no model of the S3's Xtensa LX7 cores, so our team has put a lot of effort into building this board ourselves: the S3's pins, its RGB LED and Wi-Fi are all our own model. You write a normal ESP32-S3 Arduino sketch (GPIO numbers up to 48, rgbLedWrite(), analogRead() from 0 to 4095, attachInterrupt() on any pin, WiFi, WebServer, HTTPClient) and compile it with our free Arduino IDE add-on, TEP Boards for Proteus. The simulation has its limits: 8 KB of RAM for your sketch, no FreeRTOS tasks, no Bluetooth and no native USB - we list every limit below. NOTICE: the S3 numbers its GPIOs up to 48 and carries an RGB LED, so this board taught our model and our Arduino add-on new things: GPIO numbers beyond 39, rgbLedWrite() and neopixelWrite(), and analog readings taken by the board model itself. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the ESP32-S3 DevKitC-1 board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the ...

ESP32-DevKitC V4 Library for Proteus: 38-Pin Wi-Fi Board

ESP32-DevKitC V4 Library for Proteus: the 38-pin board on Wi-Fi

Hello friends, I hope you all are doing great. Today, I am going to share the ESP32-DevKitC V4 Library for Proteus. This is the second board of our Wi-Fi series. The first was the ESP32 DevKit V1 Library for Proteus V2.0, the 30-pin DOIT board that runs your ESP32 sketch with Wi-Fi inside Proteus. Today it is the turn of Espressif's own development board, the 38-pin ESP32-DevKitC V4 - the board in Espressif's documentation, with every GPIO on its headers and the BOOT button on GPIO0. Let us be clear from the first line: Proteus 8 has no model of the ESP32's Xtensa processor, so our team has put a lot of effort into building this board ourselves: the ESP32's pins, rules and Wi-Fi are all our own model. You write a normal ESP32 Arduino sketch (GPIO numbers, analogRead() from 0 to 4095, ledcWrite(), attachInterrupt() on any pin, touchRead(), WiFi, WiFiUDP, WebServer, HTTPClient) and compile it with our free Arduino IDE add-on, TEP Boards for Proteus. The simulation has its limits: 8 KB of RAM for your sketch, no FreeRTOS tasks and no Bluetooth - we list every limit below. NOTICE: the DevKitC V4 shares its model with our DevKit V1, so the hard part - a board package for the Arduino IDE and a Wi-Fi network inside Proteus - was already there. For this board we drew Espressif's layout pin for pin, put GPIO0 on the header, and taught the model to drive an LED with PWM. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the ...

ESP32 DevKit V1 Library for Proteus V2.0: Wi-Fi Simulation

ESP32 DevKit V1 Library for Proteus V2.0: the board on Wi-Fi with its blue D2 LED on

Hello friends, I hope you all are doing great. Today, I am going to share the new ESP32 DevKit V1 Library for Proteus V2.0. Back in 2023 we shared the first ESP32 Library for Proteus: a nice ESP32 board you could place on the sheet, but it ran an Arduino UNO HEX file and had no Wi-Fi - Proteus simply has no ESP32 processor inside. Many of you asked for more: you wanted to run a real ESP32 sketch, with WiFi.begin(), a web server and a phone that opens its page. Version 2.0 does exactly that. Let us be clear from the first line: Proteus 8 has no model of the ESP32's Xtensa processor, so our team has put a lot of effort into building this board ourselves: the ESP32's pins, rules and Wi-Fi are all our own model. You write a normal ESP32 Arduino sketch (GPIO numbers, analogRead() from 0 to 4095, ledcWrite(), attachInterrupt() on any pin, WiFi, WebServer, HTTPClient, ESPmDNS, NTP time) and compile it with our free Arduino IDE add-on, TEP Boards for Proteus. The board joins a virtual router, gets an address, serves pages to a phone in its panel, talks to an internet host and to our ESP-01 modules on the same network. The simulation has its limits: 8 KB of RAM for your sketch, no FreeRTOS tasks and no Bluetooth - we list every limit below. NOTICE: a board that only looks like an ESP32 would have been easy. We wanted your ESP32 sketch to work as it is: the same pin numbers, the same Wi-Fi calls, a web server a phone can open, an ESP-01 on the same router. It took our team a lot of ...

MCP2515 CAN Bus Module Library for Proteus V1.0: Arduino CAN

MCP2515 CAN Bus Module Library for Proteus V1.0: the module with its STATUS panel next to an Arduino UNO

Hello friends, I hope you all are doing great. Today, I am going to share the new MCP2515 CAN Bus Module Library for Proteus V1.0. CAN is the network inside every modern car: the engine, the brakes, the dashboard and dozens of other controllers share two wires, CANH and CANL, and talk without a master. Tractors, lifts, robots and factory machines use it too. The cheap blue MCP2515 module with its TJA1050 transceiver puts an Arduino on such a bus over SPI. Until now there was no MCP2515 in Proteus on which you could watch two Arduinos talk over CAN. Behind the parts sits our own model, written from the MCP2515 datasheet and the CAN 2.0 specification. It answers the SPI instructions of the chip, keeps its registers, and puts every frame on CANH and CANL bit by bit: the identifier, the data, the CRC-15, the stuff bits and the ACK slot. Two nodes that start together go through a real arbitration, a broken frame ends in an error frame and is sent again, and the error counters climb exactly as on a real chip. You get a Simple device with a STATUS panel of the last frames, and an Advance device with a pop-up window where you can click any frame to see it field by field and bit by bit. The demo runs on two of our Arduino UNO V4.0 boards: an engine and a dashboard. NOTICE: a CAN module is easy to fake: a wire that copies one Arduino's data to the other. We wanted more. Our module puts each bit on the bus at its own bit time, so a dominant bit of one node overwrites a recessive bit of ...

MAX485 RS485 Module Library for Proteus V1.0: Modbus RTU + Arduino

MAX485 RS-485 Module Library for Proteus V1.0: the module with its STATUS panel next to an Arduino UNO

Hello friends, I hope you all are doing great. Today, I am going to share the new MAX485 RS-485 Module Library for Proteus V1.0. RS-485 is how microcontrollers talk across a factory floor, a farm or a building: two wires, A and B, carry the data hundreds of meters, and many devices share them - energy meters, temperature controllers, VFDs, PLCs. Most of them speak Modbus RTU. The small MAX485 module puts an Arduino on that bus. Until now there was no MAX485 module in Proteus on which you could watch a Modbus master and a slave talk. Behind the parts sits our own model, written from the MAX485 datasheet and the Modbus RTU specification. DE turns the driver on and RE the receiver, the board's bias resistors hold the idle line, and the A and B pins of two modules form a real half-duplex bus - two drivers at once is a collision. Every byte on the bus is decoded, grouped into Modbus RTU frames, checked with its CRC and explained: which slave, which function, which registers. You get a Simple device with a STATUS panel of the last frames, and an Advance device with a pop-up window where you can click any frame to see it field by field. The demo runs on two of our Arduino UNO V4.0 boards: a Modbus master with the ModbusMaster library and a Modbus slave. NOTICE: an RS-485 module is easy to fake: a wire that copies TX to RX. We wanted more. Our module only drives the bus while DE is HIGH, so a sketch that drops DE too early loses its last byte, a node that leaves RE LOW hears itself, ...

Micro SD Card Module Library for Proteus V1.0: Arduino Data Logger

Micro SD Card Module Library for Proteus V1.0: the module with its STATUS panel and file browser

Hello friends, I hope you all are doing great. Today, I am going to share the new Micro SD Card Module Library for Proteus V1.0. The micro SD card module is how an Arduino keeps data: a data logger writes its readings to a CSV file, a game loads its levels, a clock keeps a record of every event, and you take the card to your PC afterwards. The Arduino talks to the card over SPI with four wires, and the SD library does the rest. Until now there was no SD card module in Proteus that the real SD library could read and write. Behind the parts sits our own model, written from the SD card specification. The card wakes up in SD mode and enters SPI mode on CMD0, answers CMD8, needs ACMD41 until it has finished its power-up, reports itself as a standard-capacity card with CMD58, then reads and writes blocks of 512 bytes with the data tokens, the CRC and the busy time of a real card. On the card is a real FAT16 file system - a 64 MB card partitioned as a PC formats it - so the unmodified SD library mounts it, lists its folders, reads files and writes new ones. You get a Simple device with a STATUS panel that is a file browser, and an Advance device with a pop-up window that also shows every SPI command. The demo runs on our Arduino UNO V4.0. NOTICE: an SD card is easy to fake: a part that hands the sketch a file when it asks for one. We wanted more. Our card does not know what a file is - it only knows blocks, like the real one. The SD library on the Arduino finds the partition, the ...

DS3231 RTC Module Library for Proteus V1.0: Real Time Clock + Arduino

DS3231 RTC Module Library for Proteus V1.0: the ZS-042 module with its STATUS panel while an alarm fires

Hello friends, I hope you all are doing great. Today, I am going to share the new DS3231 RTC Module Library for Proteus V1.0. The DS3231 is the real-time clock of almost every Arduino clock, data logger, timer and alarm project: a small blue board with a coin cell that keeps the time and the date even while the Arduino is off. The Arduino reads the time over I2C whenever it needs it, sets alarms that pull a pin LOW at a given second, and stores data in the EEPROM chip next to the clock. Until now there was no DS3231 module to try all that in Proteus. Behind the parts sits our own model, written from the DS3231 and AT24C32 datasheets. The clock counts in BCD in the same registers as the real chip, a fresh module starts at 2000-01-01 with OSF set, the two alarms pull INT / SQW LOW at their exact simulation time, the pin can give a 1 Hz square wave, the temperature is converted every 64 s, the coin cell keeps the time when VCC goes, and the AT24C32 keeps 4 KB of your data. The unmodified RTClib drives it on the Arduino. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window that shows the clock, every register and every I2C transaction. The demo runs on our Arduino UNO V4.0. NOTICE: a real-time clock is easy to fake: a part that answers the PC's time whenever it is asked. We wanted more. Our module keeps its own time from the moment the simulation starts, latches the seven time registers at the start of a read as the real chip does, refuses ...

433MHz RF Module Library for Proteus V1.0: FS1000A + XY-MK-5V

433MHz RF Module Library for Proteus V1.0: the FS1000A transmitter sending a code

Hello friends, I hope you all are doing great. Today, I am going to share the new 433MHz RF Module Library for Proteus V1.0. The FS1000A transmitter and the XY-MK-5V receiver are the cheapest wireless pair in every Arduino kit: two tiny boards that send a remote-control code across a room, switch a socket, open a gate or carry the reading of a weather sensor. They are also famous for confusing beginners, because the receiver's output is never quiet - it shows noise all the time - and because the range depends so much on the antennas. In Proteus they could not be tried at all. Behind the parts sits our own model of how this pair behaves. The transmitter keys its 433.92 MHz carrier while DATA is HIGH, every receiver of the design hears it 20 us later, and without a carrier the receiver's DATA shows the noise of the band, as on a real module. The distance and the antennas decide what arrives: a perfect signal, a weak one that loses pulses, or nothing but noise. The unmodified rc-switch library sends and receives the codes on two Arduinos. You get Simple devices with a live STATUS panel and Advance devices with a pop-up window that draws every burst and decodes its code. The demo runs on our Arduino UNO V4.0. NOTICE: a 433 MHz pair is easy to fake: a wire from one DATA pin to the other. We wanted more. Our receiver is noisy when nothing is sent, loses pulses when the signal is weak, hears nothing beyond its range, and two transmitters at once collide - so the rc-switch receiver ...

DFPlayer Mini Library for Proteus V1.0: MP3 Player Module + Arduino

DFPlayer Mini Library for Proteus V1.0: the MP3 module playing a track from its micro SD card

Hello friends, I hope you all are doing great. Today, I am going to share the new DFPlayer Mini Library for Proteus V1.0. The DFPlayer Mini is the tiny MP3 player module with a micro SD card slot that so many Arduino projects use for a voice that says "welcome home", a door bell, an alarm or background music. The Arduino sends it short serial commands - play file 4, volume 20, next - and the module does the rest: it reads the card, decodes the MP3 and drives a speaker. In a simulation it was hard to try, because Proteus has no such part and no card to read. Behind the parts sits our own model, written from the datasheet of the module. It answers the 10-byte 7E FF 06 frames at 9600 baud, needs its 0.8 s to start, plays the files of a demo micro SD card - 14 short tracks in folders 01 and 02, MP3 and ADVERT - each for its real length, pulls its BUSY pin LOW while a track plays, and sends the 3D message when a track has finished. The unmodified DFRobotDFPlayerMini library on the Arduino drives it as it would a real module. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window that shows the card, the player and every frame on the UART. The demo runs on our Arduino UNO V4.0. NOTICE: an MP3 module is easy to fake: a part that lights an LED when a pin goes LOW. We wanted more. Our module speaks the serial protocol of its datasheet byte by byte on its RX and TX pins - so the DFRobot library talks to it as it would to a real module, a wrong ...