When you don’t own an expansion board, it is possible to connect to your device using a USB to Serial adapter. Make sure your USB to Serial converter is able to communicate at a baud rate between 115200 to 921600. We do not recommend this setup for beginners.
To connect to your device using a USB to Serial adapter, connect the following pins:
Note: Please ensure the signal and voltage level of your UART adapter does not exceed 3.3V. When possible, change the settings on your adapter.
RX
TX
P2
GND
By far the easiest way to access the USB UART REPL is via the our CtrlR plug-in for Visual Studio Code, though you might want to use one of the options listed below. Note that you can also use these methods when using one of the shields.
To open a serial USB connection from macOS, any serial tool may be used; in this example, the terminal tool screen will be used. Open a terminal instance and run the following commands:
screen
screen /dev/tty.usbmodem* 115200
To exit screen, press CTRL-A CTRL-\.
CTRL-A CTRL-\
On Linux, picocom or minicom may be used instead of screen. The usb serial address might also be listed as /dev/ttyUSB01 or a higher increment for ttyUSB. Additionally, the elevated permissions to access the device (e.g. group uucp/dialout or use sudo) may be required.
picocom
minicom
/dev/ttyUSB01
ttyUSB
sudo
A terminal emulator is needed to open the connection from Windows. The easiest option is to download the free program, PuTTY.
To use PuTTY the serial port (COM port) in which the SG Wireless device is connected, must be located. In Windows, this information can be found from the Device Manager program.
COM4
Session
Serial
Serial Line
115200
Open