вторник, 7 февраля 2023 г.

Goodbye Octocat!

The tool choosing question usually resolves pragmatically. You simply choose the tool which have all of your must have functions. But in case of github I was stuck to their mascot - Octocat. As for me he is still cutiest from all of they, including Tux and Kde dragonaut.

I has read a three articles about comparsion between gitlab and github. There was a very detailed explanation, but only one difference what I found was in mascot. Raccoon dog have no chance versus eight foot cat. Nevertheless github was bought by microsoft since 2018, and a lot of open source projects has already migrated to gitlab, as to open-source based platform. Today on gitlab we will find gnome desktop, KDE, kicad, even ARM posted their code here. Not bad for ukrainian startup company without office.

So, what do you think about migrating from github to gitlab?



вторник, 26 апреля 2022 г.

IR remote + STM32 to usb, firmware and board

Simply combine decoding algorithm from post about decoding and USB keyboard driver from that post. Only one deal is left is decoding table. It will match codes of ir with keyboard button codes. Maybe if I get unuseful keyboard I will make IR wireless keyboard from it.

воскресенье, 24 апреля 2022 г.

Wakie talkie, begining

Come back to my old project, walkie talkie. When I tries to offer a new project, I develop a principal schematic instead of structure schematic. In my opinion it can answer to most of question of people who interests in my solution. But on the practice that approach motivates random commentators from the internet to proof me that my solution does not work. Forget about they. 

понедельник, 18 апреля 2022 г.

среда, 13 апреля 2022 г.

USB Virtual COM port on STM32, code

Now then, why we need COM port in 21 century? It is one of worthily forgotten technologies. But the reason on the surface. There are not too much ways to connect custom USB device without need to write a OS driver. In order to do this you need a Virtual COM Port device or hooligans custom HID. In other words, if you run VCP on your MCU, you can use it's connection with benefits of autodetect and a plenty of PC lib's. But in that post I will comment my code of a classical example of USB-UART.

суббота, 2 апреля 2022 г.

Lukey 702 обновление до 868. Керамический нагреватель в Lukey.

Профессиональное оборудование стоит настоящих денег, "ну как нибудь так" его не купишь. Даже если появляются стартаперы, собирающие оборудование для любителей, то получается у них все равно дорого, столько же как и нижние линейки именитых брендов. Но тут на помощь как всегда приходят китайцы, как получается настолько дешево, непонятно. Во многом за счет того, что экономят на том, до чего бы адекватные инженеры не догадались.

вторник, 29 марта 2022 г.

USB Virtual COM port on STM32, documentation analysis

The theory is perfect. You can take only a standard and a datasheet. Then simply implementing clear and univocal algorithm from the standard using opportunities of your hardware, described in datasheets. Looks like a simple lab work in the university, but the real world is a little complicated.

воскресенье, 30 января 2022 г.

воскресенье, 14 ноября 2021 г.

USB HID driver for STM32

Some mounth ago some Malakian light up my brains with ultraviolet. In conclusion, everyone of us remembers this ROM ICs with glass window for clearing by ultraviolet bulb? I am not. That is why I start my simple USB device example not from the example code from chip supplier company. I started to write my own driver using datasheets and standards.

пятница, 12 ноября 2021 г.

LaTex в Ubuntu, настройка и пример

WYSIWYG полезная штука, но напрягает, с первого дня знакомства. Еще тогда на информатике меня учили, сперва набирай текст, потом форматируй, форматируй по правилам, отступами, никаких пробелов. И уже тогда было понятно, что форматирование можно как то и автоматизировать, что бы само. Причем уже тогда этот 2003 word висел на далеко не самых мощных школьных компах. И уже тогда ситуации с непонятно куда уехавшими картинками и таблицами были далеко не редкостью.

понедельник, 1 ноября 2021 г.

Xubuntu 2110, enough for success.

Who says that for good results you must buy expencive professional tools. When first versions of Linux for IBM PC compatible computers was developed, that was a sensation. Because for every day tasks and studying and even for building a sever you do not need commercial software. But now 20+ years comed and I'm bold enough to need a little more from an open and free software.

понедельник, 11 октября 2021 г.

Continue on your own risk (CMSIS v5 STM32F103 make example)

Of course, ignoring official vendor libraries is like shooting under your legs with bazooka. But let's think that it was a damage boost (ref.  the damage boost is a tactic in speed run game walkthrough, it helps to move as fast as never in normal game).

вторник, 28 сентября 2021 г.

Report descriptor example

Drivers may vary from microcontroller to microcontroller. For example, I am wrote my own variant for STM32. But report descriptor is the main part of any HID device. While descriptors are database, which keeps device configuration, the report descriptor usually a configurations of buttons, axes, and any other controls of input device.

воскресенье, 26 сентября 2021 г.

Try to find simple rf amplifier

For a long distance transceiver I need a big output power. There are a lot of complete solutions like CC1101, but they are not powerful. 16mW is not too much. So for my future walkie talkie I need 446 MHz 0.5 watt transmit tract as compact as possible.

среда, 22 сентября 2021 г.

Cheap ali stuff for MTB

Using not original noname parts is a bad idea. But I bought a nice bike on a aughtum sell. And then I wanted to continue using it, while haven't got money. So let's check what from cheapest stuff from aliexpress is appropriate.

понедельник, 13 сентября 2021 г.

morning ride

13,9 km/h mean speed, not very fast but OK. I post a screenshot cause a share button in google fit app on my android do not work. Although we all need to share our achievements like in steam account for example.

вторник, 27 июля 2021 г.

TM1637 STM32

А, нуда, про драйверок. Сам бы не стал использовать возможность подключения кнопок к этому драйверу, потому и в библиотеку поддержку этой функции не добавил. В итоге нужно успешно отправить всего две команды в драйвер, если получится, значит будет круто.

понедельник, 19 июля 2021 г.

семисегментный printf

Разобравшись с драйвером неплохо научиться выводить на него информацию. Как вы помните с первого курса, текст и числа в любом формате на экран можно выводить через printf. Так вот, давайте адаптируем эту функцию под выбранный тип, с позволения сказать, экрана. Про особенности языка потом, сперва нужен алфавит, ну чтож, википедия, настало твоё время:

TM1637, 7-сегментник в одном слое

Самым дешевым показометром по прежнему является семисегментный индикатор. Модулек с диодами + чип стоят 50 руб. и на те же 50 опережают монохромный oled. В котором я с определённого момента перестал видеть смысл, потому как нашёл цветной TFT за те же деньги. 
Итак, кратко о самом чипе:
  • не требует внешних компонентов, реализуется на однослойной плате
  • контактирует в паре с 3,3В микроконтроллерами
  • синхронный интерфейс на 200кГц (два провода в контроллер)
  • 6 цифр
  • регулировка яркости
  • планарный корпус (к сожалению не очень компактный)