發表文章

Meshtastic 04 changing Lora frequency slot

圖片
 Idea is to set up a private network. I first update all 3 devices to version 2.5.x, since I was not able to connect all 3 on USB port with 2.4.x. only changing frequency slot: with web client, all three are connected through USB, can see each other under node and sending message. Message can be send from web client, and viewed from OLED. But the received messge seems can't be seen form web client

Meshtastic 03 adding GPS on TTGO lora32 V2

圖片
 I wish to add GPS on my running meshtastic client on TTGO lora32. I have a GPS module outputs with nema at 9600bps. In the config app, in the position sector, you  can find the redefine of PGS pins. I firstly use IO00 as GPS_RX_pin. But it does not work. I guess the web config use 0 as none-config default. Then I want to know what is the default pin for GPS in meshtastic for TTGO Lora 32, I use the 2.4.x firmware for V2.1-1.6. Checked the git, there is no default gps pin for this hardware, so I changed the gps to mcu pin to 34, leave other pins stuff as 0 and do the config .  And it works. there is a new flasher, which still has LILYGO T-Lora V2.1-1.6 as board selection, with latest 2.5.xx firmware maintain 34,0,0 setting is no longer working. after few try, I decided to set to 34/32/25, where 32/25 are free pin on my board. I also reference to  LILYGO Meshtastic T-Beam V1.2 ESP32 LoRaGPS WiFi , it has a gps on 34/12 with 34/12/0 the setting is still working

RC Nitro engine plug, what is the amp needed?

圖片
   power a plug form model engine, I have do some test with my power supply: Bearly heated at 2.21A 1.19V 2.5A seems fine 1.39V 2.79A seems the be limit. Target:  make a Arduino controlled constant amp controller  There are lot of DC DC converter, claim to have 3A, but it's the chip claim. See this MP1584 is used in most small boards.( 2338 is latest chip recommended by MP) It's easy to see that the inductor is often not big enough, schematic required 10uH, but most of those small boards are only 4.7uH. Plan is to  1. add enough inductor.(not sure what is the diode for? it's not on the schematic ) to see if it would provide enough Amp. 2. use arduino board to measure current and with DAC to put voltage on the feedback pin. in order to light up at 2.5A. 3. Using enable pin to on and off the device. Test 1 I did try to control a mosfet with arduino and use INA219 to do current control, but the N-mosfet I use D4184 is not designed for low gatedrive.  It has os...

5A MPPT adjust output current/voltage module YH11087A

圖片
  https://item.taobao.com/item.htm?_u=7boo1l33af8&id=42935368105&spm=a1z09.2.0.0.7fde2e8dj6p3hs 全新力做,5A降压恒压恒流模块,带MPPT功能,用太阳能电池板给电池充电可提升充电电流一倍以上,有效缩短充电时间,减小太阳能电池板体积。可为蓄电池、锂电池等充电,带转灯控制,方便观察充电状态。可配多功能电压表,输入电压、输出电压、输出电流、输出功率都可以直观显示,完全可脱离万用表使用。可做为大功率LED驱动模块。  如需防反灌 理想二极管请点以下链接:    8A   http://item.taobao.com/item.htm?id=42364220733  15A  http://item.taobao.com/item.htm?id=42364220733 操作说明: 模块本身已带散热片,加大加粗大磁环电感温升更小,高频长寿命电解电容。 MPPT效果实测双比: 测试条件:18V/50W单晶太阳能板,7.4V/5AH锂电池,12月早晨10点左右在阳台。太阳不大,晒在身上暧暧的,防盗窗挡住了部分太阳。 MPPT不起作用时的充电电流0.896A, (光线比较强,相机快门比较快,表头上数字在拍照片时显示会不全,懂点摄影的朋友应该都明白。) MPPT值调至太阳能板最大功率点时的充电电流1.651A,提升近一倍的充电电流,效果相当明显。     需要外壳请点以下接:  http://item.taobao.com/item.htm?id=13621241047

arduino BMS flying cap, LTC8604, TI BQ76940

圖片
Of course there are cheap chinese BMS, I have few, some are not even working on cutting off voltage.  And I don't think cutting off should be job of BMS, a good BMS should : monitor voltage with out dran out current with divide resistor not bound to chemistry, could be Lipo, Life..etc monitor temperature of each cell or connection able to communicate wire or wireless Better to be sleep   https://www.instructables.com/Arduino-LTC6804-Battery-Management-System/ Base on LTC6804, SPI interface. The BMS is configured for a battery pack are composed of A123 LiFePO4 cylindrical batteries in 12S8P configuration. The A123 cells have the following characteristics: LTC6804 can monitor upto 12 cells, wih arduino lib https://github.com/dcaditz/BMS_V4 and could be available as PCB from tao Another good code, with presentation on 6804 https://github.com/ayushagrawal/BMS-Arduino not sure what is the difference on 6802-1, it works also on 12 cells. 6802-2 could be addressed  There is a ne...

TTGO Lora32 different versions......I try m V2 with TTN V3(TTS)

圖片
 TTGO lora32 is a esp32 with lora chip, with various version... it was very confusing when they keep on pushing new version but with no clear documentation. different version may have different connection pin on lora chip, and others. and the version is not marked on PCB.  same thing on their git pages. upto 2021/11 I found 2: https://github.com/LilyGO https://github.com/Xinyuan-LilyGo the second one seems to be more upto date. For example you can find a version identification on there: https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series Still very confused, at the end I found that mines are V2 TTgo also make some examples for connecting to TTN, but lack of clear notes, it make me very difficult to read and use. here seems to be the one with TTN V3 https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/blob/master/docs/en/LilyGo_LoRa_Series_Quick_Start_On_TTN.md There are listed in git: https://awesomeopensource.com/projects/lmic/lorawan https://www.thethingsnetwork.org/forum/t...

Meshtastic 02 try to work with sensors

圖片
 It's possible to config client with attached sensor, in 2.4 version, there is IIC ones, maybe we can also use serial  function for sensors as well.( Serial Module Configuration ) Currently Supported Sensor Types ​ 2.4 Sensor I 2 C Address Data Points BMP085 0x76, 0x77 Temperature and barometric pressure BMP180 0x76, 0x77 Temperature and barometric pressure BMP280 0x76, 0x77 Temperature and barometric pressure BME280 0x76, 0x77 Temperature, barometric pressure and humidity BME680 0x76, 0x77 Temperature, barometric pressure, humidity and air resistance MCP9808 0x18 Temperature INA260 0x40, 0x41, 0x43 Current and Voltage INA219 0x40, 0x41, 0x43 Current and Voltage INA3221 0x42 3-channel Current and Voltage LPS22 0x5D, 0x5C Barometric pressure SHTC3 0x70 Temperature and humidity SHT31 0x44 Temperature and humidity PMSA003I 0x12 Concentration units by size and particle counts by size PMSA003I 0x12 Concentration units by size and particle counts by size DFROBOT_LARK 0x42 Temperatur...