@Paul-Thornton What is the answer to his question though? I too am very confused by the documentation for the Fipy and expansion boards. There is conflicting or outdated information regarding the expansion board v2.0 and v3.0. Often I don't know which is being referred to, and worse, Pycom's channel resellers like Mouser, Digikey, etc. often mix them up.
@verkehrsrot Sorry, I do not know a documentation of the Pycom method. I also do not expect that the Pycom method will be implemented by esptool.py, since almost every other ESP32 board maker implements the DTR/RTS method.
@NickBoots , If you are connecting to an Access point from your pycom device (i.e Wifi in STA mode) disable the wifi on boot option via this command pycom.wifi_on_boot(False) reset board and try again.
So be it. But, why provide a schematic for the 2.0 expansion board, but not the 3.0 board? I don't want to build my own board. I just want to know what is wired to what. I'm an EE. I care about these things.
@wolli01 Yes, I can remove the cable when the Lopy is charge by Lipo after starting. When USB connected, I remove the cable but it's not necessary.
I updated Lopy with the new firmware and no change.
It's work only with the jumper cable connected when the expension board and lopy start.
Maybe on other people have an idea ?
@rootmi I’m no electronics expert and I don’t know the full specs of the sensor, but I’m not sure I understand how those two resistors would be enough. You are still powering a 5V device with 3.3V and sending it a 3.3V signal, aren’t you?
I changed the pins to G30 (sleep) and G13 (wakeup) and now the system works fine.
So, the new code is:
from machine import Pin, Timer
from deepsleep import DeepSleep
ds.enable_pullups('G31') # can also do ds.enable_pullups(['P17', 'P18'])
ds.enable_wake_on_fall('G31') # can also do ds.enable_wake_on_fall(['P17', 'P18'])
ds = DeepSleep()
# get the wake reason and the value of the pins during wake up
wake_s = ds.get_wake_status()
if wake_s['wake'] == deepsleep.PIN_WAKE:
print("Pin wake up")
elif wake_s['wake'] == deepsleep.TIMER_WAKE:
print("Timer wake up")
else: # deepsleep.POWER_ON_WAKE:
print("Power ON reset")
I am doing a project with the same devices as you. I am a begineer of IoT and it seems I can learn something from your experience. May you share the whole code you have done of this deep sleep shield connected with LoRa, if you still have it. Thanks in advance!