Hello friends, I hope you all are doing great. Today, I am going to share the new SN65HVD230 CAN Transceiver Library for Proteus Simulation. The SN65HVD230 - often printed "VP230" on the chip - is the small 3.3 V CAN bus transceiver you find on blue breakout boards next to ESP32 and STM32 projects. A microcontroller's CAN controller only knows bits: a TX pin and an RX pin. The transceiver turns those bits into the two-wire differential signal of a CAN bus, CANH and CANL, and turns the bus back into bits. With this library you can run a full Proteus simulation of the SN65HVD230: the driver, the receiver, the read-back of every bit, the termination, and a decoder that shows you every frame travelling on the bus. The transceiver shares its bus with our MCP2515 module, so the two can talk to each other on one sheet. The demo sends real CAN frames, built bit by bit by an Arduino UNO, through the SN65HVD230 to an MCP2515 on a second UNO - and the receiver acknowledges every one of them. 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 CAN bus board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the SN65HVD230 CAN Transceiver Library for Proteus Simulation: The SN65HVD230 is a CAN bus transceiver that runs from 3.3 ...
Hello friends, I hope you all are doing great. Today, I am going to share the OBD-II Scanner on CAN Bus with Raspberry Pi 5 in Proteus Simulation, the sixty-second project of our IoT Projects series. If you have searched for a Raspberry Pi OBD-II reader, a CAN bus project with the MCP2515, or a Proteus simulation of car diagnostics, here is a complete one. Every car built in the last twenty-five years has a diagnostic port under the dashboard, and behind it a CAN bus where the engine's control unit answers questions: how fast the engine turns, how hot the coolant is, whether the check engine lamp is on and why. Here a Raspberry Pi 5 is the scan tool, and an Arduino UNO plays the engine's control unit, with a throttle knob and a real coolant temperature sensor. In this tutorial, we will go through the circuit, see how a CAN bus works and why every node hears every frame, how an OBD-II request and its answer fit in one 8-byte frame, how the Pi drives the MCP2515 CAN controller with its own SPI instructions and no library, how the engine values are packed into bytes, how a trouble code like P0217 is stored and decoded, walk through both programs, and then run the simulation: idle, driving, an overheating engine that lights the check engine lamp, reading the code, cooling down and clearing it. At the end, you can download the project with both programs and every library file. NOTICE: Our team has put a lot of effort into this project: the circuit, the code and every part in the ...
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 ...