Engineering Blog

Learn it. Build it. Simulate it.

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

2702 articles found.

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 ...

Fingerprint Sensor Library for Proteus V1.0: R307 / AS608 + Arduino

Fingerprint Sensor Library for Proteus V1.0: the R307 module with finger C on its window

Hello friends, I hope you all are doing great. Today, I am going to share the new Fingerprint Sensor Library for Proteus V1.0. The black R307 optical fingerprint module - and the AS608 modules that speak the same protocol - is the classic way to add a fingerprint lock, an attendance system or a door opener to an Arduino project. It talks over a serial port with packets: take an image, turn it into a character file, search the library, store a new finger. In a simulation it is hard to try - a fingerprint module needs a finger on its window, and Proteus has none. Behind the parts sits our own model, written from the R307 user manual. It answers every packet of the manual at 57600 baud with the real acknowledge packets and confirmation codes, keeps a library of 1000 templates while the simulation runs, and gives you six fingers to place on its window: click a finger card on the schematic and that finger lies on the glass, its ridges drawn. The unmodified Adafruit Fingerprint library on the Arduino enrolls it, searches for it and finds it - or tells you that the image is too messy. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window that shows every packet on the UART. The demo runs on our Arduino UNO V4.0. NOTICE: a fingerprint module is easy to fake: a part that says "found" when you click a button. We wanted more. Our module speaks the R307 packet protocol byte by byte on its TXD and RXD pins - so the Adafruit library talks to it as it ...

IR Receiver + Remote Library for Proteus V1.0: VS1838B NEC Remote

IR Receiver and Remote Library for Proteus V1.0: the VS1838B receiver and the 21-key NEC remote

Hello friends, I hope you all are doing great. Today, I am going to share the new IR Receiver + Remote Library for Proteus V1.0. The small black VS1838B infrared receiver and the slim 21-key remote that comes with it are in almost every Arduino starter kit, and they are the quickest way to control a project from across the room: a TV-style remote, a receiver with three pins, and the IRremote library. In a simulation they are hard to try - the remote sends 38 kHz light, and Proteus has no light. Behind the parts sits our own model. You click the keys of the remote on the schematic while the simulation runs, the remote builds the real NEC frame - a 9 ms leader, the address, the command and their inverses, bit by bit - and the receiver's OUT pin goes LOW and HIGH exactly as a real VS1838B does, so the unmodified IRremote library on the Arduino decodes it. Hold a key and it sends repeat codes every 108 ms; move the remote away or off the axis and frames start to break; switch on NOISE and a lamp floods the receiver. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window that draws the last frame burst by burst. The demo runs on our Arduino UNO V4.0. NOTICE: an IR remote is easy to fake: a part that hands the key you click straight to the sketch. We wanted more. Our remote sends the real NEC timing on the receiver's OUT pin - so the IRremote library decodes it as it would on a real board, a sketch that reads the wrong pin or the wrong code ...

TTP229 Touch Keypad Library for Proteus V1.0: 16-Key Capacitive Keypad

TTP229 Touch Keypad Library for Proteus V1.0: the 16-key capacitive touch keypad with its STATUS panel

Hello friends, I hope you all are doing great. Today, I am going to share the new TTP229 Touch Keypad Library for Proteus V1.0. The red TTP229 16-key capacitive touch keypad is the easiest way to give an Arduino project a modern, button-free front panel: sixteen round pads under a thin cover, no moving parts, nothing to wear out. It talks to the Arduino over two wires, SCL and SDO, and for a hobby board it hides a surprising number of traps: it comes with only 8 of its 16 keys switched on, it reports one key at a time unless you bridge two pads, and its serial interface is not I2C at all. Behind the parts sits our own model, written from the TTP229-BSF datasheet. You click the pads on the board while the simulation runs, and the chip answers the way the real one does: it calibrates at power-on, sleeps and wakes up, scans its keys every 16 or 32 ms, shifts the keys out bit by bit on SDO, pulses SDO when a key is ready, and resets its interface after 2 ms without a clock. The eight option pads TP0 - TP7 are clickable too. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window that draws SCL and SDO through the last read, bit by bit. The demo runs on our Arduino UNO V4.0. NOTICE: a touch keypad is easy to fake: a part that hands the key you click straight to the sketch. We wanted more. Our TTP229 talks only the way the real chip talks - a bit on SDO for each clock on SCL - so a sketch that reads too few bits, clocks too fast, reads too often, ...