ESP32-CAM Video over Websockets with Relay Bi-directional

Поділитися
Вставка

КОМЕНТАРІ • 20

  • @Serhii-vn8jr
    @Serhii-vn8jr 18 годин тому +1

    Compilation error: 'ledcSetup' was not declared in this scope; did you mean 'ledc_stop'?

  • @collinb5524
    @collinb5524 Рік тому +1

    Hey Nomad, great video. I can tell you put a lot of work into it. I had an idea for a video. How about making an esp32 with a joystick acting as a websocket server, talking to a websocket client esp32 which is controlling a small robot arm?
    -Collin

    • @nomadicgeek_369
      @nomadicgeek_369  Рік тому +3

      Hi! Thank you so much for watching my video and for taking the time to leave a comment. I'm glad you enjoyed it and appreciate your feedback. Your idea for an WSP32 with a joystick as a websocket server controlling a robot arm sounds really interesting! I'm actually already planning a video on using buttons to control motors, but adding a joystick to the mix would definitely make it even more fun. I'll definitely keep your idea in mind for future videos. Thanks again for your suggestion!

  • @zk_6312
    @zk_6312 Рік тому +1

    Great video though a bit advanced for me. I have some programming background, but it has been years since I done any server programming. I was hoping this would expand on the esp web server example but add a button for the light and relay. Still, looks good and I like the music though it is a bit louder than it needs to be.

    • @nomadicgeek_369
      @nomadicgeek_369  Рік тому +1

      Thank you for watching the video and for your feedback! I'm glad you found the video informative, even though it may have been a bit advanced for your current programming background. I'll keep this in mind for future videos and try to cater to a broader audience.
      Regarding your suggestion of adding a button for the light and relay to a ESP32 web server generated webpage, while my goal is to provide unique content that isn't widely available on UA-cam, I understand that videos like these may generate higher interest. I will experiment with one such video in the near future and keep your request in mind.
      In the meantime, if you would like to try combining the ESP32-CAM web server with the relay control from my video, you could use the example code for the ESP32-CAM under File > Examples > WiFi > SimpleWiFiServer and incorporate the relay control parts from my video. If you have any questions about that or any other aspect of the topic, please don't hesitate to ask!
      I appreciate your support and am glad to hear that you enjoyed the music, although I understand it may have been a bit too loud. I'll definitely lower the volume in future videos to create a better balance. Thank you again for your feedback and for watching, and I look forward to hearing from you again!

  • @tonyp4894
    @tonyp4894 11 місяців тому +2

    Hi Nomadic, I put together a camera using ESP32-cam, and a 5vdc stepdown from a 9 volt battery. Image appears on a webserver. All works well. The problem is that the 9 volt battery dies rather quickly and pushing the button on the 5volt stepdown is not practical. I need a way to control the power going to the camera with a relay connected to wifi, so that the camera only works when i turn it on with my phone, hopefully saving the battery. If there a way to do this using a relay connected to the ESP32? Seems to me that would still use the same amount of current as if the camera was on. How can i turn the camera on or off without using too much power. Thank you so much for your help.

    • @nomadicgeek_369
      @nomadicgeek_369  11 місяців тому

      Hi,
      Thank you for your question. It's great to hear that you've successfully set up your ESP32-cam and webserver.
      There are multiple approaches you could take to minimize power consumption. I recommend exploring Deep Sleep Mode or possibly lowering the frame rate and resolution of the camera.
      Using a relay to control the power to the ESP32-cam could work; however, you are correct that this method may not significantly reduce overall power consumption if the relay itself uses a lot of power. A more efficient solution might be to use a solid-state relay or a MOSFET, which consume very little power in comparison.
      One approach I would consider is allowing the client to send commands to the ESP32-cam to turn the camera on and off. While the module would continue to operate, the power-consuming camera could be deactivated when not in use, thereby saving energy.

  • @psykopat81
    @psykopat81 7 місяців тому

    how do you power ESP 32 cam , if you use 12v battery? you just connected ESP 32's GND to battery..

    • @nomadicgeek_369
      @nomadicgeek_369  6 місяців тому

      Hi! You have to use a step down to 5V to power the ESP32-CAM module. You can do this with eg an LM2596 DC-DC Buck Converter. You can see me using it here: ua-cam.com/users/shortsMjuixQkyk3Y
      Just browse Amazon for LM2596

  • @Abc-sl1nf
    @Abc-sl1nf Рік тому +1

    I'm into it, but no music would be better.

    • @nomadicgeek_369
      @nomadicgeek_369  Рік тому

      Great to hear that you enjoyed the video and thank you for taking the time to provide feedback! I appreciate your support and will take your suggestion into consideration for our upcoming videos. I understand that some viewers prefer to watch content without music, so I will make sure to lower the volume of the music in my future videos. Thank you again for your valuable input, and I hope to continue creating content that you enjoy!

  • @muhamadrajabodeutud9211
    @muhamadrajabodeutud9211 Рік тому

    Great video but i do have a problem, why the video is blinking in my program, altough the code is same with you, but i dont have an antena is that a problem why the video is blinking?

    • @nomadicgeek_369
      @nomadicgeek_369  Рік тому

      The issue with the blinking video stream is likely caused by low voltage, in my estimation. To troubleshoot this, I suggest bringing your device closer to the router and observing whether the problem persists. This will help you determine if the issue is related to a weak connection.

    • @Alvaritox11
      @Alvaritox11 2 місяці тому

      i had the same problem. I solved it commenting lines 133, 134 and 136.

  • @habibayed
    @habibayed 3 місяці тому

    heyy i want to add an 1.8 tft but i get this error:
    14:49:16.375 -> Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
    14:49:16.375 ->
    14:49:16.375 -> Core 1 register dump:
    14:49:16.375 -> PC : 0x40094003 PS : 0x00060d30 A0 : 0x8009432c A1 : 0x3ffb2000
    14:49:16.375 -> A2 : 0xffffffff A3 : 0xfffffffc A4 : 0x00060d20 A5 : 0xffffffff
    14:49:16.574 -> A6 : 0x00060d23 A7 : 0x00000000 A8 : 0xffffffff A9 : 0x00000004
    14:49:16.574 -> A10 : 0x00060d23 A11 : 0x0001c200 A12 : 0x0800001c A13 : 0x00000000
    14:49:16.574 -> A14 : 0x007cf258 A15 : 0x003fffff SAR : 0x0000001b EXCCAUSE: 0x0000001c
    14:49:16.574 -> EXCVADDR: 0x0000000f LBEG : 0x4008b950 LEND : 0x4008b96c LCOUNT : 0xffffffff
    14:49:16.574 ->
    14:49:16.574 ->
    14:49:16.574 -> Backtrace: 0x40094000:0x3ffb2000 0x40094329:0x3ffb2020 0x40094fc3:0x3ffb2040 0x40095134:0x3ffb2060 0x40083fd4:0x3ffb2080 0x40084203:0x3ffb20b0 0x400e4429:0x3ffb20d0 0x400dfc77:0x3ffb2120 0x400dda5d:0x3ffb2180 0x400d30e6:0x3ffb21c0 0x400e0056:0x3ffb2290
    14:49:16.574 ->
    14:49:16.574 ->
    14:49:16.574 ->
    14:49:16.574 ->
    14:49:16.574 -> ELF file SHA256: f0854a0982302c15
    14:49:16.574 ->
    14:49:16.591 -> Rebooting...
    14:49:16.591 -> ets Jul 29 2019 12:21:46
    14:49:16.591 ->
    14:49:16.591 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    14:49:16.591 -> configsip: 0, SPIWP:0xee
    14:49:16.591 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    14:49:16.640 -> mode:DIO, clock div:2
    14:49:16.640 -> load:0x3fff0030,len:1344
    14:49:16.640 -> load:0x40078000,len:13936
    14:49:16.640 -> load:0x40080400,len:3600
    14:49:16.640 -> entry 0x400805f0

    • @nomadicgeek_369
      @nomadicgeek_369  3 місяці тому

      Hey! Thank you for watching! Have you tried running the LCD by itself with your ESP32? Without seeing your code or any additional information about your setup, it seems to me that you might be trying to access an invalid memory address. This could be the case if you have configured the wrong type of LCD in your code.
      Here are a few more tips to help you troubleshoot:
      Check Your Wiring: Sometimes, issues arise from simple mistakes in the wiring. Ensure that all connections are secure and correct according to the LCD’s datasheet.
      Update or Reinstall Libraries: Make sure that you are using the latest version of the library compatible with your LCD. Sometimes, updating or reinstalling the library can resolve unseen issues.
      Simplify Your Code: Try to simplify your code to the bare minimum required to initialize and use the LCD. This can help eliminate any potential software conflicts or unnecessary complications.
      Review Documentation: Thoroughly review the documentation for both your ESP32 board and the LCD. There might be specific settings or quirks noted in the documentation that are crucial for your particular hardware setup.
      Use Example Sketches: Run example sketches provided with the LCD library, if available. These examples are typically designed to demonstrate the correct initialization and usage, which might help you pinpoint what’s going wrong in your setup.
      I hope these suggestions help! Keep experimenting, and don’t hesitate to ask for more help if you need it.

  • @exessd7051
    @exessd7051 10 місяців тому

    make original WebServer in the relay switching.

    • @nomadicgeek_369
      @nomadicgeek_369  3 місяці тому

      Hi! I'm not sure I understand what that means. Can you please elaborate what you want to solve? Thanks for watching!

    • @exessd7051
      @exessd7051 3 місяці тому

      @@nomadicgeek_369 0:09 this not original ESPcam web-server