Skip to content

Latest commit

 

History

History
278 lines (171 loc) · 9.98 KB

LEARN.md

File metadata and controls

278 lines (171 loc) · 9.98 KB

References If used will help in Better Understanding

Programming Esp32 Cam using Arduino IDE

  • https://www.circuitschools.com/how-to-program-upload-the-code-to-esp32-cam-using-arduino-or-programmer/
  • https://randomnerdtutorials.com/program-upload-code-esp32-cam/
  • Running WebCamServer on Esp32 Cam Locally

  • https://randomnerdtutorials.com/esp32-cam-video-streaming-face-recognition-arduino-ide/
  • Running WebCamServer on Esp32 Cam Globally

    image

    Creating an Account on Azure

    NOTE: Some may say that you need .edu domain only but now GitHub, Azure accepts all student domains mine got accepted (.ac.in), if yours doesn't then contact GitHub Support and explain them that you are a student but your email was not accepted. They'll contact you in a few days with a code to use for a student's subscription

    image

    image

    Activating Arduino Maker Subscription using GitHub Benefits

    Go to GitHub Benefits on https://education.github.com/pack

    image

    Connect it to GitHub and Then Scroll down to claim free 6 month subscription image

    Controlling Esp8266 using Arduino IoT Cloud

    Beginner

    image

    Intermediate

    image

    Step By Step Guide On Building This Project

    Uploading Code to Stm32f103c8 (Bluepill Board)

    Using this procedure one can upload Code to Stm32f103c8

    image

    Resources Needed for Initial Configuration(Booting) Stm32f103c8

    Once code is uploaded Connect Stm32f103c8 to Ultrasonic sensor(HC-SR04), GPS sensor(Neo-6m) and Esp8266

    Pinout of Stm32f103c8

    RX1,TX1 -> Hardware Serial 1
    RX2,TX2 -> Hardware Serial 2
    RX3,TX3 -> Hardware Serial 3

    image

    image




    Connecting ESP32 to Arduino IoT Cloud

  • https://docs.arduino.cc/arduino-cloud/getting-started/esp-32-cloud
  • Using this same procedure one can connect Esp8266 and other Esp Boards to Arduino Iot Cloud

    image


    Creating virtual variables for Esp8266

    Once above step is done you would see get 1 thing on this page
    image


    Click on the thing and start creating variables
    image


    Set Permission and Update policy for variables:
    forward
    image


    backward
    image


    right
    image


    left
    image


    distance
    image


    gps
    image


    led
    image


    servo
    image


    motor
    image


    Creating Dashboard and Connecting Virtual Variables

    image


    image


    image


    Add the following widgets:

  • 1 Switch
  • 4 Push Buttons
  • 1 Map
  • 1 Value
  • 2 Slider



  • Place them as shown below


    image


    Connect Widgets to Virtual Variables

    forward
    image


    backward
    image


    right
    image


    left
    image


    distance
    image


    gps
    image


    led
    image


    servo image


    motor
    image


    Creating a VM on Azure

    Login on Azure and go to Virtual Machines

    image


    Video Tutorial
    image


    Once Machine is created open Ports on it to use Websockets for the Camera Stream

    Go to Networking
    image


    image


    Add
    image


    Open the same port for OutBound Connection
    image


    Add
    image


    Using Above Steps You can create more a secure rule than mine, like accepting from a specific IP only (but I chose not to as this is just prototyping for a personal project

    Follow this next on Your VM

    NOTE: In the Video the VM is made on GCP we made the same thing on Azure, follow the same steps as showed in the video after this the stream should show in the "<PublicIPofVM>/client" url

    image


    Once done now upload code to ESP8266 to Control Car

    Go to Sketch
    image


    Install Arduino Create Agent
    image


    Click on Learn More then Download
    image

    Copy Paste the code from my github repo Arduino_iot_cloud_Nodemcu and upload the sketch to your nodemcu

    NOTE: To burn code use these videos as reference

    Circuit Connections:

    Iot-Car Ckt Connections

    THE CAR MUST FUNCTION NOW PROVIDED YOU FOLLOWED ALL STEPS PROPERLY

    The Connection Overview of GPS, Ultrasonic, STM32, Esp8266 have been shown here
    How to Use H-Bridge L298N