USB Serial
Last updated
Last updated
This documentation is for the LEGACY version of Blynk platform which is no longer supported and will be shut down.
You can sign up for the current version of Blynk platform here.
The new mobile apps can be downloaded from App Store and Google Play.
The actual Blynk documentation is here.
If you don't have any shield and your hardware doesn't have any connectivity, you can still use Blynk – directly over USB.
Optional, but recommended.Connect additional USB-Serial adapter to your device to see the debug prints.
Open Arduino Serial USB example and change Auth Token
Run the blynk-ser script, located in scripts folder:
Windows: My Documents\Arduino\libraries\Blynk\scripts
Mac: ~/Documents/Arduino/libraries/Blynk/scripts
Linux: ~/Arduino/libraries/Blynk/scripts
The script is simply redirecting traffic to Blynk Cloud.
You can specify port, baud rate, and server endpoint like this:
./blynk-ser.sh -c <serial port> -b <baud rate> -s <server address> -p <server port>
For instance:
./blynk-ser.sh -c /dev/ttyACM0 -b 9600 -s blynk-cloud.com -p 8442
Run blynk-ser.sh -h
for more information
Be sure to select the right serial port (there may be multiple). Attention! Arduino IDE may complain with "programmer is not responding". You need to terminate script before uploading new sketch.
Open cmd.exe
(you may need to "Run as Administrator")
Navigate to scripts folder:
Run blynk-ser.bat
file. For example : blynk-ser.bat -c COM4
(where COM4 is port with your Arduino)And press "Enter", press "Enter" and press "Enter"
Navigate to scripts folder:
When inside this folder, run:
You may need to run it with sudo
:
This is what you'll see in Terminal app on Mac (usbmodem address can be different):
Copy the serial port address: /dev/tty.usbmodem1451
and paste it back:
After you press Enter, you should see an output similar to this:
Video tutorials : https://www.youtube.com/watch?v=fgzvoan_3_w