Текущее время: 18 апр 2024, 13:57

Часовой пояс: UTC + 4 часа


Правила форума

Счетчик сообщений в этом форуме выключен.



 Страница 1 из 1 [ 1 сообщение ] 
Автор
Сообщение
[ТС]
 Заголовок сообщения: Modification of the led VA meter on the HC32F003 chip (4 bit, 0-100V, 0-10A)
СообщениеДобавлено: 12 июн 2020, 17:13 
Я тут случайно
Я тут случайно
Аватара пользователя
Зарегистрирован: 29 мар 2020, 13:29
Наличности на руках:
0.00

Сообщения: 0
Откуда: Poland
Hello all.
Some time ago I bought a LED current and voltage meter on the Chinese side (4 bit, 0-100V, 0-10A). According to the description, he was to provide values ​​at a frequency of 3 times per second. It turned out differently, i.e. he gave them less than once a second, which was unacceptable to my uses.
The meter is constructed on the HC32F003 processor. On Chinese sites I found full documentation, SDK and utilities for this processor. I decided to play with him.
An attempt to connect using the SWD connector failed. This had to be done using the serial port. It worked, but the flash could not be read - it was protected. So one thing remained - erase the flash and write the software from the beginning, which I did. By the way, I modified the system to measure from 0-30V. Wiring diagram:
Изображение
What difficulties did I encounter? The dedicated program did not detect my processor on any usb adapter - serial (I tried on PL2303 and CH340). The FlyMcu program detected the system on PL2303 but I don't remember why I didn't use it to delete the system (didn't allow it?). Ultimately, I deleted the flash on a Linux computer using a Python program. Now I had full access to the processor. I programmed and debugged it through the already active SWD port using J-Link (how to make a Blue Pill J-Link adapter can be found on the network).
As a result of my scribble (I'm not a programmer) I have a meter that gives values ​​very quickly, and does it more accurately than on the original software. The measurement frequency can be modified by changing the byte in the flash.bin file under offset 0xbee (in the range 1-255).
Software and flash memory included.
Greetings to all.


У вас нет доступа для просмотра вложений:
1. Пожалуйста авторизуйтесь или зарегистрируйтесь.
2. Вы должны иметь 15 (ПЯТНАДЦАТЬ) или более сообщений.
3. У нас можно купить доступ к файлам.


Не в сети
 Профиль    
 
Показать сообщения за:  Поле сортировки  
 Страница 1 из 1 [ 1 сообщение ] 


   Похожие темы   Автор   Ответы   Просмотры   Последнее сообщение 
В этой теме нет новых непрочитанных сообщений. Mods không nhận card ai có thể giúp tôi?

в форуме Ремонт десктопных видеокарт | Desktop video card repair

thanhnamvl86

2

2933

13 ноя 2019, 13:09

virus-cyber Перейти к последнему сообщению

В этой теме нет новых непрочитанных сообщений. Can I change the up9304p chip to another chip like up1509p?

в форуме Ремонт десктопных видеокарт | Desktop video card repair

PT-AH

0

485

08 фев 2023, 01:32

PT-AH Перейти к последнему сообщению

В этой теме нет новых непрочитанных сообщений. A300D (Inventec Potomac 10A+/AG+) Выключается

в форуме Toshiba

Dag_ZhiEst'

17

2849

26 дек 2017, 01:58

Dag_ZhiEst' Перейти к последнему сообщению

В этой теме нет новых непрочитанных сообщений. Hp g62-b19sl (Turns on LED power alone) Turns on LED power alone

в форуме HP Compaq

amennone

1

3947

09 фев 2018, 01:38

desertearch Перейти к последнему сообщению

В этой теме нет новых непрочитанных сообщений. tv led 32" 32LF565B need to repair the TV led bars

в форуме LCD

eletmoraes

3

1905

24 мар 2019, 11:27

hazi1234 Перейти к последнему сообщению

Часовой пояс: UTC + 4 часа


Кто сейчас на конференции

Сейчас этот форум просматривают: andrikhokh, Lev_Grishenin и гости: 17


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти: