Week 11. Input Devices

Group Assignment

  • probe an input device’s analog levels and digital signals
  • Group Assignment Link - Here

    Individual Assignment

  • measure something: add a sensor to a microcontroller board that you have designed and read it
  • For this week we were assigned with two input device as one for our final project and other input device.So in my final project i am using ESP32-CAM as input device as our guru Rico and local Instructor Zina mention.

    Now to connect my esp32 cam, i have used previous board to do programming.I connected ESP32-CAM to the 3pin header by referring this;

    Unfortunately my board 3pin header was damaged so i tried to modify with soldering but i fail. So finally decided to re-print my board and done soldering to do programming with ESP32-CAM.

    To do programming, firstly i have installed ESP32 Add-on in Arduino IDE by going to File >> Preference >> and add this link https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.jsonin URL and Click ok.

  • Open the Boards Manager. Go to Tools > Board > Boards Manager…
  • Search for ESP32 and press install button for the “ESP32 by Espressif Systems“:
  • Plug the ESP32-CAM board to your computer with your design board.

  • Select your Board in Tools > Board menu (in my case it’s the AI Thinker ESP32-CAM)
  • Select the Port (if you don’t see the COM Port in your Arduino IDE, you need to install).
  • Open the following example under File >> Examples >> ESP32 >> CameraWebServer.
  • A new sketch opens in your Arduino IDE:
  • Select your camera module and remove two "//" from the code.
  • Enter your WiFi credentials SSID and Password as given below; Remember that you need to use same wifi SSID and Password that you have connected to your laptop.
  • Now change the serial monitor as given in the code.
  • Now finally check all the settings and ports are connected as given below;
  • Then i click on verify and uploaded the code but Unfortunately i got some errors as given below;
  • So to verify this error i ask to my Fablab Engineer Mr. Kencho and I have done the wrong connection with my board. so i have reconnected my board with ESP32-CAM as follows:
  • GND - GND
  • VCC - 5V
  • UOR - TX
  • UOT - RX
  • GND - 100 (both connection in ESP32 CAM)
  • Then finally i connected all the connection and uploaded the code in Arduino. After uploading the code you have to press RST (Reset) button in ESP32-CAM.
  • Now go to serial monitor and agin press RST (reset) button in ESP32-CAM to connect wifi with IP address.
  • Then copy your wifi IP address and past it in your browser to access your camera as shown below.
  • ESP32-CAM Video

    ESP32-CAM Code

    Download