GZ4R2HrImr

QCan

 
Overview
The project
utilizes the Espressif ESP32C3 Mini module, supporting Wi-Fi, Bluetooth, and USB.
It also supports multiple development environments such as ESP-IDF, MicroPython, and Arduino.
The project consists of two PCB hardware components, each usable as a standalone project:
1. The QCan module can be used as a vehicle OBD data acquisition and analysis tool.
2. The QLCD module can be used as a small screen.
Project Description
: The QCan project uses the ESP32C3 module to acquire and forward CAN data, which can be transmitted to mobile phones and computers via wireless protocols such as Bluetooth and Wi-Fi. By setting the ESP32 to AP mode, it facilitates data acquisition and processing for computers and mobile phones in vehicles or other environments without routers.
The QLCD screen displays vehicle speed, gear position, current, voltage, temperature, climate, and various creative avatars and animations.
Project Attributes:
This is the first public release of this project, and it is my original work. This project has not won any awards in other competitions.
Project Progress:
Currently, the circuit design has been verified and is working correctly. After receiving free PCB fabrication from LCSC, I manually soldered and tested it, but SMT testing has not been performed. The casing design has not been verified. During vehicle testing, the ESP32 generates a certain temperature in winter, so a CNC heatsink or metal casing is likely needed for summer sun exposure testing.
Design Principles :
QCan
Power Supply Section:
The automotive version of LMR14006YDDCT can be used. In this case, R15 and R16 do not need to be soldered. If prolonged vehicle use is required to prevent battery drain, please calculate the voltage division values ​​of R15 and R16 to achieve the shutdown function. If using LMR16006YDDCR, a pull-up resistor R15 must be used; otherwise, there will be no power output.
CAN Signal Conversion Section:
A U4 is added as a switch for the ESP32 to send CAN messages to the device. This is mainly for vehicle safety. Many new energy vehicles do not require engine starting, which can easily lead to erroneous signals triggering vehicle actions. For safety, please disable this switch. R10 is used to bypass open-source functionality; please choose according to your needs.
ESP32 Core Section:
Key1 is used for programming, leading to TX0 and RX0 which can be used for debugging and also support direct USB debugging. An LED is reserved for status indication; develop according to your needs.
The QLCD
power supply section
uses an AMS1117 power supply to ensure stability under high current.
The ESP32 core section uses
a minimal ESP32C3 core circuit with a USB port for easy debugging.
The screen section
uses an SPI-driven LCD screen for display.
Software Description
Sample Code Environment:
Arduino
Dependencies:
esp32_can: https://github.com/collin80/esp32_can
can_common: https://github.com/collin80/can_common
tfp_espi: https://github.com/Bodmer/TFT_eSPI
Core Code Description:
QCan Part
GPIO Configuration Part
define SHIELD_LED_PIN GPIO_NUM_10
define SHIELD_CAN_RX GPIO_NUM_1
define SHIELD_CAN_TX GPIO_NUM_0
can Initialize
CAN0.setCANPins(SHIELD_CAN_TX, SHIELD_CAN_RX);
if (!CAN0.begin(500000)) {
debugln(" CAN...............FAIL");
delay(500);
ESP.restart();
}
debugln(" CAN.................OK");
CAN0.watchFor(0x257); //Filtering by a specified ID. Without specifying an ID, all
QLcd
entries will be captured. The QLcd code is quite complex; detailed code can be found in the git link.
GPIO pin configuration
: define TFT_BACKLIGHT_ON HIGH
define TFT_MOSI 7 define TFT_SCLK
6 define
TFT_CS 10
define TFT_DC 5
define TFT_RST 4
define TFT_BL 1.
Physical demonstration :
Other
Bilibili demo videos:
[Open Source Car Dashboard]
Project Attachments:
Code and hardware manual are in the git link.
Open source code:
https://gitee.com/question_h/qcan.git
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-28 03:05:59
  • Share the predictions for the 2021 eSports Contest
  • LM3S8962 board learning - learning together
  • Urgent! ! (evc4.0+ado3.1) create database failed
  • Repost: China's real estate market has begun to kidnap young people's youth
  • linux next step nor flash driver
  • MICROWAVE CIRCUITS

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号