nyan:lora_dev_boards
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nyan:lora_dev_boards [2024/02/12 02:49] – river | nyan:lora_dev_boards [2024/06/20 03:01] (current) – river | ||
---|---|---|---|
Line 49: | Line 49: | ||
==== Connections ==== | ==== Connections ==== | ||
- | ESP32 SX12xx | + | === USB === |
- | GPIO8 LoRa NSS | + | |
- | GPIO9 LoRa SCK | + | |
- | GPIO10 LoRa MOSI | + | |
- | GPIO11 LoRa MISO | + | |
- | GPIO12 LoRa RST | + | |
- | GPIO13 LoRa BUSY | + | |
- | JTAG: | + | The ESP has native USB, but it is not connected on this board. The USB connector goes to the CP2102. The USB pins on the ESP are broken out to the headers though, so it could be added. |
- | GPIO39 MTCK | + | |
- | GPIO40 MTDO | + | |
- | GPIO41 MTDI | + | |
- | GPIO42 MTMS | + | |
- | GPIO3 With fuses, affects is JTAG is enable on these pins or not. | + | === LoRa === |
+ | |||
+ | ^ ESP32 Pin ^ LoRa Chip Signal ^ | ||
+ | |GPIO8 | ||
+ | |GPIO9 | ||
+ | |GPIO10 |LoRa MOSI| | ||
+ | |GPIO11 |LoRa MISO| | ||
+ | |GPIO12 |LoRa RST| | ||
+ | |GPIO13 |LoRa BUSY| | ||
These do not seem to be connected to the header pins. | These do not seem to be connected to the header pins. | ||
+ | |||
+ | === JTAG === | ||
+ | |||
+ | ^ Pin ^ Signal ^ | ||
+ | |GPIO39 |MTCK| | ||
+ | |GPIO40 |MTDO| | ||
+ | |GPIO41 |MTDI| | ||
+ | |GPIO42 |MTMS| | ||
+ | |GPIO3 | ||
+ | |||
+ | 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: | ||
+ | [[https:// | ||
+ | |||
+ | Need to blow at least one eFuse to enable JTAG on pins. | ||
+ | Default value is 0, blow fuse for 1. | ||
+ | |||
+ | Blow eFuse 3, EFUSE_STRAP_JTAG_SEL, | ||
+ | |||
+ | '' | ||
+ | |||
+ | Read fuses: | ||
+ | |||
+ | '' | ||
+ | |||
+ | === 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? | ||
+ | |||
+ | 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 ===== | ||
+ | |||
+ | * ESP32-S3FN8 | ||
+ | * SX1262 | ||
+ | * CP2102 | ||
+ | * 8MB SiP Flash | ||
This was straightforward to flash with Meshtastic. | This was straightforward to flash with Meshtastic. | ||
Line 88: | 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:// | ||
+ | |||
+ | [[https:// | ||
Power on seems to require long press on PWR button. | Power on seems to require long press on PWR button. | ||
Line 103: | 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 132: | Line 174: | ||
* ESP32-DOWD | * ESP32-DOWD | ||
* CP2102 | * CP2102 | ||
+ | |||
+ | ===== Raspberry Pi Pico with Waveshare LoRa and CAN shields ===== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | 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:// | ||
+ | * [[https:// | ||
+ | |||
+ | ==== CAN ==== | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | ^ 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. | ||
nyan/lora_dev_boards.1707706169.txt.gz · Last modified: 2024/02/12 02:49 by river