Real time clock sync over WiFi - Pi Pico w - in 6 Minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น •

  • @larrywashburn9435
    @larrywashburn9435 ปีที่แล้ว +3

    Just stumbled on your video and subscribed, very related to my project using pico W to collect data over one week for multiple sensors into a CSV format with exact time of reading every 10 minutes. My problem was my university did not allow the ntp ports open to external net but used an internal network time server, which I Knew nothing about. A nice IT Prof explained since I am new to this univ and gave me the IP of the internal time server. in response to why your interrupts might not be working, somewhere on Raspberry pi documentation I saw the interrupt especially in a DEEP Sleep state must be external signal to the Pico. I will check your GitHUb. Great JOb! more Pico W please, with Solar, lipo battery and Lora and MQTT.

  • @RandomBitzzz
    @RandomBitzzz ปีที่แล้ว +1

    Simple and to the point. This is a great example of a block of code that one can use to make their own projects work better.

    • @lutz4tech
      @lutz4tech  ปีที่แล้ว

      Thank you, glad that you Like it, and have fun with your project :-) If you need Something else, let me Know!

  • @tompaquette7138
    @tompaquette7138 ปีที่แล้ว

    That's what you were helping me do much earlier! I'm using a similar method for controlling curtains open and close at set times.

    • @lutz4tech
      @lutz4tech  ปีที่แล้ว +1

      Yes your question inspired my to this one. So thanks again 😀

  • @xojupp
    @xojupp ปีที่แล้ว

    Hallo Lutz endlich wieder neuer Content :-)

  • @andyfraser5876
    @andyfraser5876 11 หลายเดือนก่อน

    I would like to use this to make my dumb EV charger a bit smarter. Ideally it would enable the charger for the same hours each day while the electricity rates are cheaper. Also it would need to adjust for daylight saving. There would be a separate override for emergency charging outside these hours. Any ideas gratefully received, thanks.

    • @ziprock
      @ziprock 2 วันที่ผ่านมา

      on the pico you could program a while loop with if statements that checks the time every minute or so. within the determined month and hour of the day trigger a gpio pin high and trigger a low voltage relay which could power the coil for a contactor that can act as a disconnect switch for your ev charger.
      There are probably simpler ways to achieve the function you want though.. i don't own an EV but i think most chargers should be able to be programmed to take advantage of cheaper charging times as its probably pretty common for folks to want to be able to do exactly what you described

  • @Skwelch
    @Skwelch ปีที่แล้ว

    hey mate thanks for your suggestion, I am having trouble with setting the alarm for only a certain hour or minute, instead of having to give year and month etc. how would i go about doing that?

    • @lutz4tech
      @lutz4tech  ปีที่แล้ว +1

      You Just want to have this Alarm every day at the Same time ? Then you need to delete the year, month and day in the Check function
      So from this
      def check_alarm(set_year,set_month,set_day,set_hour,set_minute):
      time = rtc.datetime()
      if set_year == int(time[0]) and set_month == int(time[1]) and set_day == int(time[2]) and set_hour == int(time[4]) and set_minute == int(time[5]):
      Need to Change in this:
      def check_alarm(set_hour, set_minute): time = rtc.datetime() if set_hour == int(time[4]) and set_minute == int(time[5]):
      print("ALARM")
      I think this should Work as you need it. Can't proove the Code Just got it on my Phone but i'm Sure you undestand my Intention and can adapt it If the Code snip has a typo.
      Let my know If it Works.

    • @Skwelch
      @Skwelch ปีที่แล้ว

      @@lutz4tech ah yes, thank you! I kept getting errors that I could not solve earlier, that worked after a few easily solved errors. Appreciate you! In relation just to the alarm function (not including any of the network/web based imports) what do I have to import to make it work? I have the phew library handling the network part in my project.

  • @Claire-wg2iq
    @Claire-wg2iq ปีที่แล้ว

    Hi! this is awesome! However, I keep getting "ImportError: no module named 'network'" when I try to run your wifi codes. Any idea of what I'm doing wrong?

    • @lutz4tech
      @lutz4tech  ปีที่แล้ว

      Hi, the answer ist in the Video ;-) i use this lib for savig my Network PW and ssid.

  • @doganozgurmoroy9010
    @doganozgurmoroy9010 ปีที่แล้ว

    Hello.... Where is the mywifi module? I can't find
    Best regards.

    • @lutz4tech
      @lutz4tech  ปีที่แล้ว

      Its only we're i save the ssid and WiFi Password. You can also set it directly.

  • @evanyang1969
    @evanyang1969 5 หลายเดือนก่อน

    there's a ntptime module now, one can use it to save all the socket horrors

  • @TOMTOM-nh3nl
    @TOMTOM-nh3nl ปีที่แล้ว

    Thank You