When using the UART's GROVE module, please use a jumper wire sold by Seeed Studio to connect:
Black: GND, Red: 3.3V, White: Pin14, Yellow: Pin13.
im920s
https://www.interplan.co.jp/solution/wireless/im920s/im920s.phpSending a string
UART.new(19200)
while true
UART.puts("TXDA " + (23).to_s + "\r\n")
sleep(5)
end
Receiving a string
UART.new(19200)
while true
puts(UART.gets())
sleep(5)
end
Bluetooth
https://www.switch-science.com/catalog/5794/Prepare an Android smartphone that supports Bluetooth 5.
Install the smartphone app "Serial Bluetooth Terminal".
Turn on the module's power. (Connect to RBoard, etc.)
In the smartphone's settings β Device Connection β Pair New Device, register the module.
Launch "Serial Bluetooth Terminal" and long-press the module's entry under Devices β Bluetooth LE.
Edit β Custom β Select the three UUIDs respectively.
Right upper β button, when pressed, should allow connection.
UART.new(19200)
while true
UART.puts("aaaa\r\n")
sleep(5)
end
wifi
https://www.switch-science.com/catalog/5795/
cmd = "hge https://script.google.com/macros/s/xxxxxxxxxxxxxxxxxxx/exec?data1="
wifi = UART.new(19200)
wifi.puts("\r\n")
sleep(5)
while true
wifi.puts(cmd + (1.to_s) + "\r\n")
sleep(10)
wifi.puts("stream_close 0\r\n")
sleep(10)
end