|
Виж темите без отговор | Виж активните теми
Дата и час: Пон Юли 27, 2026 9:55 am
| Автор |
Съобщение |
|
ToHu
Ранг: Форумен бог
Регистриран на: Нед Сеп 26, 2004 9:21 pm Мнения: 30684 Местоположение: София
|
 Re: ChatGPT
Те това е изгенерирал. Инициализира уреда, чувам ресета, не пуска изхода на единично четене, пуска го на sweep но суипа нещо не е както трбява, не мога да кажа защшто нямам, скоп в момента пуснат, рбаотя по нещо друго. Не беше импортнал правилната visa, или има друг пакет но по някаква причина ми дава грешка на него. Преправих го да е pyvisa и тръгна. Нещо е объркал но трябва да гледам какво. Обаче кода му 3 или 4 пъти по-къс.
|
| Вто Фев 04, 2025 8:43 pm |
|
 |
|
TheWizard
Ранг: Форумен бог
Регистриран на: Сря Апр 27, 2005 12:48 pm Мнения: 6094
|
 Re: ChatGPT
ако му имаш документацията скоп / GPIB тури някъде в началото Use GPIB documentation: https://csi.pl/wp-content/uploads/2019/ ... Manual.pdf( тва не знам дали е вярно ) и пиши му какви библиотеки да използва....
_________________ main[-1u]={1};
|
| Вто Фев 04, 2025 8:54 pm |
|
 |
|
Реконструктор
Ранг: Форумен бог
Регистриран на: Съб Сеп 25, 2004 12:32 pm Мнения: 8382 Местоположение: София
|
 Re: ChatGPT
Нищо интересно, просто трябват 24 жици, веднъж направено може се слага навсякъде.
|
| Вто Фев 04, 2025 8:56 pm |
|
 |
|
Реконструктор
Ранг: Форумен бог
Регистриран на: Съб Сеп 25, 2004 12:32 pm Мнения: 8382 Местоположение: София
|
 Re: ChatGPT
Това е заданието, няма практическа стойност, просто исках да видя какво ще стане. В един момент стигнахме до тука:
|
| Вто Фев 04, 2025 8:58 pm |
|
 |
|
itso.t
Ранг: Форумен бог
Регистриран на: Чет Фев 03, 2005 2:21 am Мнения: 12765 Местоположение: София
|
 Re: ChatGPT
Да не си решил да възкресяваш пенсионирания проект? А за V12 не си прав. Винаги са били интересна и приятна за окото гледка. Че и на звук го докарват.
|
| Вто Фев 04, 2025 9:02 pm |
|
 |
|
Реконструктор
Ранг: Форумен бог
Регистриран на: Съб Сеп 25, 2004 12:32 pm Мнения: 8382 Местоположение: София
|
 Re: ChatGPT
Не споря бе човек, просто ти казвам, че аз V12 нямам.  Както написах по-горе, просто ми стана интересно какво ще стане и отговорът е - нищо. 
|
| Вто Фев 04, 2025 9:09 pm |
|
 |
|
TheWizard
Ранг: Форумен бог
Регистриран на: Сря Апр 27, 2005 12:48 pm Мнения: 6094
|
 Re: ChatGPT
 |  |  |  | Код: Designing a schematic for an Engine Control Unit (ECU) for a 12-cylinder engine based on the STM32 microcontroller is a complex task that requires a deep understanding of automotive electronics, microcontroller programming, and hardware design. Below is a high-level overview of the components and connections you might include in such a schematic. Note that this is a simplified version and should be further developed and validated by an experienced engineer.
1. Main Components: STM32 Microcontroller: Choose a suitable STM32 microcontroller with sufficient GPIOs, ADCs, timers, and communication interfaces (e.g., CAN, SPI, I2C, UART).
Power Supply: Design a stable power supply circuit to provide the necessary voltages (e.g., 3.3V, 5V) for the microcontroller and other components.
Sensors:
Crankshaft Position Sensor
Camshaft Position Sensor
Throttle Position Sensor (TPS)
Manifold Absolute Pressure (MAP) Sensor
Mass Air Flow (MAF) Sensor
Oxygen (O2) Sensors
Coolant Temperature Sensor
Knock Sensor
Actuators:
Fuel Injectors
Ignition Coils
Idle Air Control Valve (IACV)
Throttle Actuator
Communication Interfaces:
CAN Bus: For communication with other ECUs and diagnostic tools.
OBD-II Interface: For diagnostics and emissions testing.
Protection Circuits:
Transient Voltage Suppression (TVS) Diodes
Fuses and Resettable Fuses (PTC)
Memory:
EEPROM or Flash Memory: For storing calibration data and fault codes.
2. Schematic Overview: Power Supply: Input: 12V from the vehicle battery.
Voltage Regulators:
LM7805 for 5V.
AMS1117-3.3 for 3.3V.
Filtering Capacitors: To smooth out voltage fluctuations.
Reverse Polarity Protection: Diode or MOSFET-based circuit.
STM32 Microcontroller: VDD/VSS: Connect to 3.3V and GND.
Reset Circuit: Include a pull-up resistor and a capacitor to GND.
Oscillator: 8MHz crystal oscillator with load capacitors.
Boot Mode Selection: Boot0 and Boot1 pins with pull-up/down resistors.
Debug Interface: SWD (Serial Wire Debug) with SWDIO and SWCLK pins.
Sensor Interfaces: Analog Sensors (MAP, TPS, Coolant Temp):
Connect to ADC pins of the STM32.
Include RC filters for noise reduction.
Digital Sensors (Crankshaft, Camshaft):
Connect to GPIO pins configured as inputs.
Use pull-up resistors if necessary.
O2 Sensors:
Connect to ADC pins.
Include signal conditioning circuits (amplifiers, filters).
Actuator Interfaces: Fuel Injectors:
Use high-side drivers or MOSFETs controlled by GPIO pins.
Include flyback diodes for inductive load protection.
Ignition Coils:
Use IGBTs or MOSFETs controlled by GPIO pins.
Include snubber circuits for voltage spike protection.
Idle Air Control Valve:
Use an H-bridge driver if it’s a stepper motor.
Throttle Actuator:
Use a motor driver IC or H-bridge.
Communication Interfaces: CAN Bus:
Use a CAN transceiver (e.g., MCP2551 or TJA1050).
Connect CANH and CANL to the STM32’s CAN TX/RX pins.
Include termination resistors (120Ω) at each end of the CAN bus.
OBD-II Interface:
Connect to the CAN bus or use a dedicated UART interface.
Protection Circuits: TVS Diodes: Place on all external connections to protect against voltage spikes.
Fuses: Place on power lines to protect against overcurrent.
3. PCB Layout Considerations: Grounding: Use a star grounding scheme to minimize noise.
Power Planes: Ensure adequate power and ground planes for stable power distribution.
Signal Integrity: Keep high-speed signals (e.g., CAN, SPI) short and away from noisy components.
Thermal Management: Ensure proper heat dissipation for power components.
4. Software Considerations: Firmware: Develop firmware to handle sensor data acquisition, actuator control, and communication protocols.
Diagnostics: Implement diagnostic routines to detect and log faults.
Calibration: Provide a way to calibrate the ECU for different engine configurations.
5. Testing and Validation: Hardware Testing: Test each circuit individually before integrating.
Software Testing: Use simulation and bench testing to validate the firmware.
Environmental Testing: Test the ECU under various temperature, vibration, and humidity conditions.
6. Safety and Compliance: EMC/EMI: Ensure the design complies with automotive EMC standards.
Safety Standards: Follow ISO 26262 for functional safety.
7. Documentation: Schematic: Create a detailed schematic with all components and connections.
BOM: Prepare a Bill of Materials with part numbers and suppliers.
Design Notes: Document any design decisions, calculations, and test results.
8. Tools: Schematic Capture: Use tools like Altium Designer, KiCad, or Eagle.
Simulation: Use SPICE for circuit simulation.
Firmware Development: Use STM32CubeIDE or Keil uVision.
9. Final Notes: Consultation: Work with experienced automotive engineers and possibly consult with STM32 application engineers.
Iterative Design: Be prepared to iterate on the design based on testing and validation results.
This is a high-level overview and should be tailored to your specific requirements and constraints. Always ensure compliance with relevant automotive standards and regulations.
|  |  |  |  |
_________________ main[-1u]={1};
|
| Вто Фев 04, 2025 9:44 pm |
|
 |
|
itso.t
Ранг: Форумен бог
Регистриран на: Чет Фев 03, 2005 2:21 am Мнения: 12765 Местоположение: София
|
 Re: ChatGPT
7805 в автомобил? Анатема! 
|
| Вто Фев 04, 2025 10:02 pm |
|
 |
|
iss
Ранг: Ориентиран
Регистриран на: Съб Фев 06, 2016 8:29 pm Мнения: 237
|
 Re: ChatGPT
Само за зимата при подгряване  .
|
| Вто Фев 04, 2025 10:46 pm |
|
 |
|
itso.t
Ранг: Форумен бог
Регистриран на: Чет Фев 03, 2005 2:21 am Мнения: 12765 Местоположение: София
|
 Re: ChatGPT
И зимата е лоша идея...
|
| Вто Фев 04, 2025 11:08 pm |
|
 |
|
ToHu
Ранг: Форумен бог
Регистриран на: Нед Сеп 26, 2004 9:21 pm Мнения: 30684 Местоположение: София
|
 Re: ChatGPT
Документация .. то няма читаво описание на уреда, командите си ги пазят, не дават, да не би някой да не им кихне пари за постния софт. Дезасемблирах им ексето и от там извадих командите, и неговите и на още няколко които се поддържат. За 350 някога са се излъгали да пуснат драйвер за лабвю. За тоя няма нищо, за следващите също. Опитват да те убедят че софтва им е супер друпер, а като го гледам .....
|
| Сря Фев 05, 2025 12:55 am |
|
 |
|
TheWizard
Ранг: Форумен бог
Регистриран на: Сря Апр 27, 2005 12:48 pm Мнения: 6094
|
 Re: ChatGPT
твоя GPIB тряя да използва некъв DLL - него намери ли го? къв е C, C#, Borland?
_________________ main[-1u]={1};
|
| Сря Фев 05, 2025 9:42 pm |
|
 |
|
ToHu
Ранг: Форумен бог
Регистриран на: Нед Сеп 26, 2004 9:21 pm Мнения: 30684 Местоположение: София
|
 Re: ChatGPT
Ами има варианти различни, единия е през VISA, съотвенто има visa32.lib и съотвенто .h файла, но това иска MSVC, да мога да го експортна и в друг формат ама започва да сатава зависимо от системата. Може и по друг начин, не е задължително да с еминава през visa ама с кати на NI това май е най-лесния начин. Може и през визата без да се изпозвла на NI библиотеката, варианти много ама не ги рових. Да ти кажа ще го оставя както е питоня, нямам време да губя за това повече, върши работа.
|
| Сря Фев 05, 2025 9:51 pm |
|
 |
|
TheWizard
Ранг: Форумен бог
Регистриран на: Сря Апр 27, 2005 12:48 pm Мнения: 6094
|
 Re: ChatGPT
ми пробвай DLL с C#, Borland ( в смисъл C Builder или Delphi ) - поне имат визулани редактори за UI то останалото е onClick - SEND / READ
_________________ main[-1u]={1};
|
| Сря Фев 05, 2025 10:02 pm |
|
 |
|
ToHu
Ранг: Форумен бог
Регистриран на: Нед Сеп 26, 2004 9:21 pm Мнения: 30684 Местоположение: София
|
 Re: ChatGPT
Е аз затова тръгнах с Qt, ама като почна да гърми MSVC-то, то не е библиотеката или кода, самия компилатор плаче, сиак сигурнои преинсталация, сигурно не са ми наред неговите си му депендънсита. Аз сложих MSVC 22, ама бозата ми е 10, не ъпдейтвам, имаше еидн куп компоненти да избера, не знам дали съм сложил правилните за да тръгне на мойто боз.
|
| Сря Фев 05, 2025 10:42 pm |
|
|
Кой е на линия |
Потребители разглеждащи този форум: 0 регистрирани и 8 госта |
|
Вие не можете да пускате нови теми Вие не можете да отговаряте на теми Вие не можете да променяте собственото си мнение Вие не можете да изтривате собствените си мнения Вие не можете да прикачвате файл
|
|