User Tools

Site Tools


nyan:lora_dev_boards

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nyan:lora_dev_boards [2024/02/13 09:42] – [Heltec Wireless Stick Lite v3] rivernyan:lora_dev_boards [2025/04/30 19:32] (current) river
Line 72: Line 72:
 |GPIO41 |MTDI| |GPIO41 |MTDI|
 |GPIO42 |MTMS| |GPIO42 |MTMS|
 +|GPIO3  |Switch: LOW for JTAG on pins, HIGH for USB JTAG. Function fuse dependent.|
  
-GPIO3 With fuses, affects is JTAG is enable on these pins or not. All these pins are available on the headers.+With fuses, GPIO3 sets if JTAG is enabled on these pins or not. All these pins are available on the headers.
  
 Section 8.5 shows JTAG options: Section 8.5 shows JTAG options:
Line 84: Line 85:
  
 ''espefuse.py  --port /dev/ttyUSB0 burn_efuse STRAP_JTAG_SEL'' ''espefuse.py  --port /dev/ttyUSB0 burn_efuse STRAP_JTAG_SEL''
 +
 +Read fuses:
 +
 +''espefuse.py summary''
  
 === Other === === Other ===
  
 OLED is on I2C. I2C available on pads on back of board. OLED is on I2C. I2C available on pads on back of board.
 +
 +==== Power ====
 +
 +Measured with PPK2 SMU, running meshtastic nyan. 5V. Peak current 0.61A, average 120mA. Uses 40mA with reset button held down!
 +
 +Powering with 3.3V, normal max 491mA, one peak of 0.64A near start (transmitting?). Average 118mA. 7mA in reset.
 +
 +Heltec claim sleep power of: 2mA on USB, 10uA on 3.3V header.
 +
 +When 3.3V power connected with reset held, 2.3mA measured. Maybe the 40mA is the radio which was not told to sleep? SX1262 datasheet claims it should be more like 5mA in receive though.
  
 ===== Heltec Wireless Stick Lite v3 ===== ===== Heltec Wireless Stick Lite v3 =====
Line 112: Line 127:
   * MS412FE rechargeable RTC backup battery connected to GPS.   * MS412FE rechargeable RTC backup battery connected to GPS.
   * micro USB. (Other boards I have have USB C)   * micro USB. (Other boards I have have USB C)
 +
 +[[https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series]]
 +
 +[[https://github.com/Xinyuan-LilyGO/LilyGo-LoRa-Series/blob/master/schematic/LilyGo_TBeam_V1.2.pdf|Schematic]]
  
 Power on seems to require long press on PWR button. Power on seems to require long press on PWR button.
Line 127: Line 146:
  
 I have since found that the md5 error goes away if programming speed is reduced to 115200 baud. This is surprising as I normally find 1.5 MBaud works reliably for programming ESP8266 with CH340. I have since found that the md5 error goes away if programming speed is reduced to 115200 baud. This is surprising as I normally find 1.5 MBaud works reliably for programming ESP8266 with CH340.
- 
  
 esptool reports: esptool reports:
Line 156: Line 174:
   * ESP32-DOWD   * ESP32-DOWD
   * CP2102   * CP2102
 +
 +===== Raspberry Pi Pico with Waveshare LoRa and CAN shields =====
 +
 +[[https://datasheets.raspberrypi.com/pico/Pico-R3-A4-Pinout.pdf|Pico Pinout]]
 +
 +RP2040 has two SPI controllers. It looks like Meshtastic uses SPI1 for the LoRa radio. I'll use SPI0 for the CAN controller. The shields use different pins for the SPI buses.
 +
 +==== LoRa ====
 +
 +  * SX1262
 +  * 22dBm
 +  * TX current: 118mA@22dBm
 +  * SPI on GP3 CS, 10 CLK, 11 MOSI, 12 MISO.
 +  * Has battery on PH1.25 connector
 +  * Charger IC: MCP73831
 +  * [[https://www.waveshare.com/wiki/Pico-LoRa-SX1262|Waveshare Wiki]]
 +  * [[https://www.waveshare.com/pico-lora-sx1262-868m.htm|LoRa shield]]
 +
 +==== CAN ====
 +
 +  * [[https://www.waveshare.com/product/pico-can-b.htm|CAN Pinout]]
 +
 +^ GPIO ^ Function ^
 +| 4 | MISO |
 +| 5 or 19 | CS |
 +| 6 | SCK |
 +| 7 | MOSI |
 +
 +==== I2C ====
 +
 +RP2040 has two I2C peripherals. In Arduino they are called Wire for i2c0 and Wire1 for i2c1.
 +
 +I am using I2C1 on GPIOs 14 and 15, pins 19 (SDA) and 20 (SCL) on pico board.
 +
 +==== ADCs ====
 +
 +Max 3.3V.
 +
 +  * ADC0 used by LoRA shield for battery voltage.
 +  * ACD1 and 2 look free.
 +  * ADC3 is connected to Vsys by the pico board.
 +  * ADC5 is temp sensor.
 +
 +  * ADC1 GPIO27 Pico Pin 32
 +  * ADC2 GPIO28 Pico Pin 34
 +
 +==== Power ====
 +
 +  * Vbus is connected directly to USB socket.
 +  * Vsys is after a diode from USB, input to regulator.
 +  * 3V3 (out) is after regulator. Regulator not enabled if Vsys not high.
 +  * 3V3 En is regulator enable, connected to Vsys by 100kR.
 +
 +
 +=== Measured ===
 +
 +New, blank Pico W, 3.3V to 3V3 pin.
 +  * Pico on its own: 9.57mA
 +  * with CAN 9.62mA (might need 5V to do anything)
 +  * with LoRa 12.7mA
 +
 +Flashed with Nyan, not setup:
 +  * 64.8mA
 +
 +Configured with wifi:
 +  * 66.34mA mostly
 +  * 0.88A bursts (wifi?). Av ~70mA in these periods.
 +  * From 5V: about 55mA not transmitting, 105mA LoRa TX, I think.
 +  * Programmed pico board only, nothing else connected, on 3V3: ~38mA, but with some bigger bursts initially.
  
nyan/lora_dev_boards.1707817369.txt.gz · Last modified: by river

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki