- Click on this www.twilio.com.
- Create your account by giving necessary information (Name, Gmail, Set password)
- Verify using gmail and confirm the mail
- Put your Phone number and verify
- Go to programmable SMS
- Click on whatsApp and agree the terms and conditions
- Send msg with given data to the Twilio number to get the setup message
- Get the account SID and Authentication token and copy it to use in code.
Set up Python code with necessary installation.
Use VSC or any other python IDE to run the code
Two ways :
1. Using “pyserial” adding COM port of Arduino IDE
2. Using Api with Arduino
Install Twilio Libraryand Run Basic Code
(Terminal)
pip install Twilio
pip install pyserial
from twilio.rest import Client
“””
Account SID & Account token
“”"
account_sid = ‘**********************'
auth_token = ‘***********************'
client = Client(account_sid, auth_token)
message = client.messages.create( body='Hello there!',from_='whatsapp:+14155238886', to=‘whatsapp: Your phone number')
print(message.sid)
ESP32CAM Connection and Upload the Following Code:
1. Connection of ESP32 with FTDI
(Click on Image to enlarge it) |
2.Connection of ESP32CAM Arduino
Arduino Setup(Installing ESP32 Add-on in Arduino IDE):
1. Go to File> Preferences2.Enter https://dl.espressif.com/dl/package_esp32_index.json into the “Additional Board Manager URLs” 3.Go to Tools > Board and select ESP32 Wrover ModuleGo to Tools > Port and select the COM port the ESP32 is connected toIn Tools > Partition Scheme, select “Huge APP (3MB No OTA)