About: Hello, the author of the project is an Application Engineer of Seeed Studio. It's great to share this project with the Hackster maker community. I hope you like Seeed Studio, a hardware enabler for IoT applications, which provides services that enable IoT developers to quickly prototype... More information about Seeed Studio Β»
Step 1: What Do We NeedMaterials:
Power Adapter
USB Power Adapter
Tools:
Cable
Soldering Iron
Solder wires
Pliers
Add TipAsk QuestionCommentDownload
Step 2: Hardware Work 1Unscrew the back of power adapter. There are 3 wires marked as β1β, β2β, β3β in the pictures. Cut wire β1β β2β "3" as the picture shown. After that, to make the first socket always power on, solder wire β1β to its copper sheet.
Add TipAsk QuestionCommentDownload
Step 3: Hardware Work 2Connect wire β3β and β4β(new cable wire) to Grove - Relay. Then solder wire β4β to the copper sheet of the second socket as the picture above. Donβt forget to pull out the grove cable from the hole.
Finally screw down the back of power adapter.
Add TipAsk QuestionCommentDownload
Step 4: Setup Wio NodeConnect Grove - Relay to PORT0 of Wio Node and power Wio Node with a USB power adapter.(PS: Be careful to use eletricity)
Open Wio Link APP in your phone and connect Wio Node to a Wi-Fi following the APP's instructions.
After that, add a Grove - Relay to PORT0 in the APP, update the firmware and get API like this: http://cn.wio.seeed.io/v1/node/resources?access_to...
PS: Get your own access_token in ths API and add it to the "main.py" python script
Add TipAsk QuestionCommentDownload
Step 5: Setup ReSpeakerSerial console
- baudrate:57600
- terminal: putty on windows; "screen /dev/xxx 57600" on Linux/Mac
Connect to the Internet
- Connect your smart phone/laptop to a Wi-Fi named LinkIt_Smart _xxxxxx and visit 192.168.100.1. After setting a password of Respeaker and logining in, you need to select station mode, select a Wi-Fi network and enter the password as the picture above.
Add TipAsk QuestionCommentDownload
Step 6: Download and Edit CodeDownload the code to ReSpeaker:
git clone https://github.com/jerryyip/respeaker_adapter.gitThen get a key from # get a key from https://www.microsoft.com/cognitive-services/en-u... and create 'creds.py' with the key.Add your own Wio access_token to 'main.py'
Add TipAsk QuestionCommentDownload
Step 7: Finish!Run the python script
python main.pyTry to say: "Hi ReSpeaker", then it will repeat "hi" to you. And the next you could say "please turn on/off the relay" to control the adapter.
Let's try this!












Comments