WhatsApp integration Arduino, WiFi, photos ..#2

Thread Starter

LucaJones

Joined Aug 12, 2023
1
How can I effectively set up Arduino to trigger my old phone's camera, capture media, and send it to whatsapp using a wifi module or other methods?
Any guidance on the technical steps and considerations for this integration would be appreciated.
 

Ya’akov

Joined Jan 27, 2019
8,481
Welcome to AAC.

The problem you will face is controlling the phone and getting the image data from it. It would be better to get a camera module and use it with something like an RPi Zero W (this is directly supported), or similarly get an ESP32 and camera module.

Both of these options have on-board WiFi and a lot of library support for handling the camera. The open questions are:

What resolution of photo do you need?
Is there a library to support What’s App integration? (I don’t know)

The cameras you can get most cheaply for the two cases are not going to be very high resolution—probably 720p to 1080p max. If you need more resolution you will have to pay extra.

I have no idea if What’s App supports connections by “bots” or non-human-driven, non-mobile devices outside of their official app. Telegram, for example, makes this simple and is often used for this purpose on account of it. Another option is Pushover which is a purpose built mobile push notification app that can be used in many ways to get messages to mobile devices.
 

rohanbarb

Joined Sep 19, 2023
2
How can I effectively set up Arduino to trigger my old phone's camera, capture media, and send it to whatsapp using a wifi module or other methods?
Any guidance on the technical steps and considerations for this integration would be appreciated.
Oh wow, you can try following my steps.
Gather the Necessary Hardware and Software: Arduino board (e.g., Arduino Uno, Arduino Nano), A Wi-Fi module (e.g., ESP8266, ESP32), Old smartphone with a camera Power source for Arduino and Wi-Fi module (battery or USB) USB cable for Arduino programming.
Appropriate connectors and cables WhatsApp account on the old smartphone Prepare the Old Smartphone.

Make sure your old smartphone is connected to Wi-Fi and has WhatsApp installed. Ensure the smartphone's camera is working properly. Setup Arduino and Wi-Fi Module: Connect the Wi-Fi module to the Arduino. Install the necessary libraries for your Wi-Fi module (e.g., ESP8266 or ESP32 libraries) using the Arduino IDE.

Write Arduino code to connect the Wi-Fi module to your Wi-Fi network and set up communication with your smartphone. You can use libraries like "WiFi.h" for ESP8266/ESP32. Triggering the Smartphone Camera: You can trigger the smartphone's camera using Bluetooth or Wi-Fi. For Wi-Fi, you might use HTTP requests or a specific communication protocol. On the smartphone, create a server or listener that responds to the trigger signal from Arduino.

This can be a simple web server or a custom app. When the Arduino sends the trigger signal, the smartphone's camera should activate and capture media. Sending Media to WhatsApp: After capturing media (e.g., photos or videos), you need to send them to WhatsApp. You can use WhatsApp's official API if available (check WhatsApp Business API). If a WhatsApp API is not available, you might consider using an automation app or service like Tasker (Android) or Shortcuts (iOS) to automate sending the captured media to a specific contact or group in WhatsApp.
 

Ya’akov

Joined Jan 27, 2019
8,481
Oh wow, you can try following my steps.
How are these "your steps". You say you don't even know if there is an appropriate API, but you suggest doing a lot of preparation without even checking that.

You haven't done this, why would you recommend it? This isn't helpful.
 

Ya’akov

Joined Jan 27, 2019
8,481
Sorry!!! if my reply isn't helpful. All he can do is try..Do you have any permanent solution of it?
If he ”tries” your suggestion he will be wasting a lot of time.
I already answered this question.

You are more than welcome to offer help with things you have experience with, and real possible answers for. This sort of post is just likely to cause more trouble for the person you are supposed to be helping.

If he had problems with things like “write an app for the phone”, could you help? This task alone is as big as the rest of the project for someone that has no experience doing mobile development.

Please do stay around—answer questions you have real answers to, offer assistance with things you have the knowledge and experience to do well—but please, don’t add confusion to old threads when you can’t actually help and are only speculating.

Otherwise, welcome to AAC. I look forward to your contributions.
 
Top