Espruino on the Heltec/TTGO/Lolin/WEMS esp32 lora board #7392
Replies: 1 comment
-
Posted at 2017-12-08 by guycreate Yes, have a couple of the Heltec boards with Lora 868/915 and one with just the Wifi Kit. Espruino generally works very well. With connected sensors, power sensitivity seems pretty fussy at times so see more reboots than I was expecting but otherwise able to get OLED, Lora, WiFi client all working well. Support for Wifi Base, Bluetooth and ESPNow are not yet functional as far as I can see. Example to use OLED:
Posted at 2018-01-10 by Grumpf Thanks @guycreate, I received my two TTGO boards and it was really easy to install Espruino on it. Do you know if it is possible to use the built in RST and PRG buttons with Espruino ? Here is the pin diagram of my board: https://ae01.alicdn.com/kf/HTB1V_aBbTnI8KJjSszbq6z4KFXaH.jpg I don't know which pins correspond to these buttons :( Posted at 2018-01-10 by Grumpf Answer to my own question: the RST button works perfectly with Espruino if you don't forget to call the "save" function to save your code in the board. Always read the doc... Posted at 2018-09-17 by hygy Can U paste here, the lora connection code too? The oled is working for me. (but wifi connection is not with espruino version espruino 1v95) this is what is not working for me:
Posted at 2018-09-18 by hungryforcodes Hey, pelase see the files attached at the end of this thread and tell me if they work for you. They are supposed to resolve the Wifi, and Bluetooth issues with the Heltec boards. http://forum.espruino.com/conversations/324188/#comment14397759 Good luck :) -=hfc Posted at 2018-09-18 by hygy Thanks! I downloaded your binaries. Do you have example code for?
Yesterday I successfully created a code to drive the oled, but with this espruino version I got this:
And the the code worked yesterday does not drive with this espruino version. Posted at 2018-09-19 by hungryforcodes The RST pin is important in the Wifi Kit 32 board, I would assume it is in your case as well.
There are a series of NRF classes in the reference documents, that I believe the ESP32 uses for Bluetooth. I'm not sure how much of it is fully complete as its a feature in development. I don't have a LoRa board, so I cannot help you with that one. Posted at 2018-09-19 by hygy Okay, the reset pin was wrong. Now, its working thanks. Anybody have an espruino example code with lora on a helltech board? Posted at 2018-09-22 by hygy Can u post here a lora example? Posted at 2020-02-23 by AkosLukacs Thread necro :) I have a pair of TTGO Lora32 boards, and following the examples in SX127x, and comparing it with Arduino examples feels like TX power settings are way off. Or this board needs some special config. First LoRa board running OpenMQTTGateway pushing to messages with RSSI to influxdb. Visualization with Grafana. Did some testing with various antennas, and results been consistent. It does receive messages from both Arduino and Espruino, just messages from Espruino have a much lower RSSI. Same software, same position, same antenna in the following results. Second LoRa board with Arduino OLED_LoRa_Sender example, it's transmitting at 17dB by default. RSSI is around -15db when both boards are on my desk, and -90db when the sender is at the other end of the house (50cm main walls...). Lowering TX power does lower RSSI as expected. Second LoRa board with Espruino 2v04 and basically two liner from the sample (full code at the end):
RSSI with the two boards sitting ~50 cm apart: -100-110db. Almost 100db less than the Arduino sample. This actually doesn't make much sense, as the TX power range is -4dBm .. +20dBm, so you can't even set TX power that low. It's as low as when I was changing antennas on the receiver: no antenna on the receiving side, but still got the messages. Like something is not connected when transmitting from Espruino? My first guess was frequency or coding or something is a bit off. But both run the same "default-ish" config. After checking it with my RTL-SDR, I think it's really transmission power: The arduino example's transmissions are clearly visible, but I see nothing when transmitting with Espruino. In this case all antennas are 20-50 cm distance. Full Espruino code:
Posted at 2020-02-23 by AkosLukacs Update: manually setting the Update 2: Most likely the Update 2.5: tested with an RFM95W: same behaviour - as expected. RX works, TX with an RSSI in -100db at a short distance, but works better after changing the Pa Config register and switching to PA_BOOST pin. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-12-08 by Grumpf
Does someone already tried to install Espruino on the Heltec/TTGO/Lolin/WEMS (or any of its dozen names) esp32 lora board?
This board features:
Ex: https://www.aliexpress.com/item/TTGO-LORA32-868-915Mhz-SX1276-ESP32-Oled-display-Bluetooth-WIFI-Lora/32840222847.html
The controller is an ESP32 so I guess that it's possible to flash it with Espruino but I'm not 100% sure...
Beta Was this translation helpful? Give feedback.
All reactions