發表文章

20260118 Tao lipo and life battery bank board, which can be use for small current

圖片
 1. Lipo good for 5V out put with single cell lipo, no cut off when current is small. the type C is only for input charging, can't do uot put. But no turn off function. the switch only for wake up birght level indicate led, when no device connected. when out put power, the blue level indicate led always light up. 2. Life work with life, and can support small current, should not shut off aotomatic

Sony PC with 10.5V charger

圖片
 the charger is marked as 10.5V 3.8A but measure with meter, it shows 11.5V I was plan to use PD type C, but some charger does not provide 12V so , I have to set for 15V, if the charger only top 12V, it will delivery 12V. then use a DCDC to switch down to 11.5V The first I used is this small one, but it turn out very hot at about 2A load. so a larger module is necessary: with thing connected in a 3D print box, it does not save me much room... So, what for?

arduino leonardo as keyboard input

 I need a fast key for space bar and arrows to control netflix.  arduino has a keyboard.h lib for HID capable, seach on web, it seems keyboard sends out value for each key. presented as key codes I need: VK_SPACE 0x20 空格鍵 VK_LEFT 0x25 向左鍵 VK_RIGHT 0x27 向右鍵 I tried example from keyboard.write()  it write "A" when D2 pressed. it works, but print out several "A"s, when pressed once, I think I need to use edge detection.  鍵 盤 鍵 碼 值 對 照 表   數字鍵 鍵碼值   數字鍵 鍵碼值   數字鍵 鍵碼值 1 49 F1 112 Numbpad 0 96 2 50 F2 113 Numbpad1 97 3 51 F3 114 Numbpad2 98 4 52 F4 115 Numbpad3 99 5 53 F5 116 Numbpad4 100 6 54 F6 117 Numbpad5 101 7 55 F7 118 Numbpad6 102 8 56 F8 119 Numbpad7 103 9 57 F9 120 Numbpad8 104     F10 121 Numbpad9 105     F11 122 Multiply (*) 106     F12 123 Add (+) 107         Enter 108         Subtract (-) 109         Decimal (.) 110         Divide (/) 111 字母 鍵碼值 字母 鍵碼值 其它鍵 鍵碼值 其它鍵 鍵碼值 A 65 N 78 Backspace 8 Left Arrow 37 B 66 O 79 Tab 9 Up Arrow 38 C 67 P 80 Clear 12 Right Arr...

Hatachi MPO-S800XT error code:H54

圖片
 only 2 years of usage, it poped with a H54 error. Searched on net, possiblely cable between door and body or emmision unit. send back to repair center, examing fee is 700, then change the emmision unit, also the cable. 

Meshtastic MQTT to HiveMQ

圖片
 The target is to make a meshtastic sensor or geodata can be view or shared through internet on some where else. HW: I still use my unknow version of lilygo 32lora. Device A: Client,work as device to sent lora data to MQTT Device B: Tracker,with GPS, work as tracker Device C: Client,with rotary encoder configed for canned message. SW: all three are loaded on meshtastic 2.5.15 Lora/frequency is overide to avoid too much trafic.channel/PSK is also set to non-default. upto here, all 3 devices can communicated through message no problem. MQTT server:  as 2025, it seems meshtastic has set some "rules", and I saw a video about using MQTT explorer to "see" if data is on meshtastic's MQTT server. I did the same, it does connect, but I only saw some strange topic, not the msh/topic we set in SW. So, I decided to work on other MQTT, I created an account on HiveMQ  create a cluster, it will give you a set of URL and the port is 8883, later I found out that without TLS enab...

Meshtastic LilyGo lora32 pins? which can be used, which is used on meshtastic

圖片
 The story of ESP32 pin are old, Andreas made few videos on it: 2017 esp32 review  with first table of pins. 2020  #363  Which ESP32 pins are safe to use? with another table esp32 lora heltec and lilygo pins are so so confusing: https://www.thethingsnetwork.org/forum/t/big-esp32-sx127x-topic-part-3/18436 base on my ttgo lora32, I want to know what are lead out, what are used, and what left for me. I wish to add: GPS, serial button ( or if possible rotary encoder, need 3 GPIO), SD is not necessary. The closest data to my board is this one  it's called TTGO lora V2 Check pin used, I used TloraV2.1-1.6 with web flasher, check define on git variants/tlora_v2_1_16/variant.h it seems 35 is used as battery pin 21/22 are IIC SDA/SCL some are not clear, when checkin schematic , beside these questionale pins, it leave me few pins to use, seems fine, What I tested: 1. Add rotary: pin are connected as rotary A on GPIO15, rotary B on GOIP2 and rotary push on GPIO14, But th...

Meshtastic xx serial to arduino decode portobuf

 meshtastic has a arduino lib for decoding it's protobuf protocol. https://github.com/meshtastic/Meshtastic-arduino I tried 3.3V pro min 328, complier says no enough memory for variable Sketch uses 25106 bytes (81%) of program storage space. Maximum is 30720 bytes. Global variables use 13368 bytes (652%) of dynamic memory, leaving -11320 bytes for local variables. Maximum is 2048 bytes. need another 3.3V board, I still have some esp8266 as D1Mini, it has enough memory bu tthe pin define took me some time. I noted the pins of D1 mini here. I set as below with GND to GND GPIO5 =RX=D1 marking on D1 mini<--- D6 marking on Xiao= GPIO43 = TX GPIO4 =TX=D2 marking on D1 mini---> D7 marking on Xiao= GPIO44 =RX the lib comes with 2 examples, one to get node info, and the other one to receive message and send message. in both case, you have to set the serial in protobuf in your meshtastic node serial setting. I found that when you use serial, on mestastic device (in my case Xiao, a esp3...