Serial Port – When you communicate with ARTIK to give commands and check status, you do it over a serial port. The USB "debug" connector is used for this purpose. You'll use a text-based Terminal Emulator program, which will run from your PC.
Network Connection – When other devices communicate with ARTIK, they do it over a wired (Ethernet) network connection or one of many wireless choices (Wi-Fi, ZigBee, Bluetooth, etc.).
Communicating with ARTIK (Windows)You may need drivers for the USB serial port. You can find the drivers here.
1. Open Device Manager in the Control Panel.
- Click Start
- In 'Search programs and files' type “Device Manager
2. Check the COM port number when you connect a USB serial cable to the PC. (If the COM port connection is not detected, you may need to power on the ARTIK board).
3. Set the PuTTY configuration as follows:
- Serial line is the COM port number found in Step 2.
- Set speed to "115200".
- Set connection type to "Serial".
- Save the session.
4. Click "Open".
5. Initially, the resulting screen will be blank. Reset the board by pressing the "SW3 POWER" switch. The ARTIK module will now go through the boot sequence.
6. When prompted to login, use:
login:root
password:root
7. You should see something like this:
Now that you have your ARTIK developer board powered up, and your terminal emulator program connected and working, let's start by playing with ARTIK audio.
Prerequisites:-
You'll just need a set of speakers or headphones. Plug them in now.The ARTIK development board comes with everything else, including a built-in microphone.
Let's record an audio clip. At your Linux command prompt (#), type in the line below.
arecord -f dat test.wav
Now say something, like "Hello, Artie!" Or maybe you can hum a tune.
When finished, type Ctrl-C to close your first recording session.
Play Back AudioType in the line below.
aplay test.wav
You should hear your recording played back.
Set the MixerWas your recording volume set too low? Let's apply higher gain settings to the mixer.
amixer sset "Mic Gain Control" 6
Rather than typing this in, try copying it and pasting it from the screen.
- Highlight and copy in the normal way for your operating system.
- To paste in the terminal emulator window, click the right mouse button.
A little easier than manual typing, isn't it? We'll be doing a lot of copying and pasting in the tutorials ahead.
Try your recording again and see if it comes out louder this time.
Thank you ...
Comments