velleman Mics Pi Hat User Manual
- June 7, 2024
- Velleman
Table of Contents
VMP403
USER MANUAL
Introduction
To all residents of the European Union
Important environmental information about this product
This symbol on the device or the package indicates that disposal of the device
after its lifecycle could harm the environment. Do not dispose of the unit (or
batteries) as unsorted municipal waste; it should be taken to a specialized
company for recycling. This device should be returned to your distributor or
to a local recycling service. Respect the local environmental rules.
If in doubt, contact your local waste disposal authorities.
Thank you for choosing Velleman! Please read the manual thoroughly before bringing this device into service. If the device was damaged in transit, do not install or use it and contact your dealer.
Safety Instructions
Read and understand this manual and all safety signs before using this
appliance.
Indoor use only.
- This device can be used by children aged from 8 years and above, and persons with reduced physical, sensory or mental capabilities or lack of experience and knowledge if they have been given supervision or instruction concerning the use of the device in a safe way and understand the hazards involved. Children shall not play with the device. Cleaning and user maintenance shall not be made by children without supervision.
General Guidelines
- Refer to the Velleman® Service and Quality Warranty on the last pages of this manual.
- All modifications of the device are forbidden for safety reasons. Damage caused by user modifications to the device is not covered by the warranty.
- Only use the device for its intended purpose. Using the device in an unauthorised way will void the warranty.
- Damage caused by disregard of certain guidelines in this manual is not covered by the warranty and the dealer will not accept responsibility for any ensuing defects or problems.
- Nor Velleman nv nor its dealers can be held responsible for any damage (extraordinary, incidental or indirect) of any nature (financial, physical…) arising from the possession, use or failure of this product. · Keep this manual for future reference.
Overview
General
ReSpeaker 2-mics Pi HAT is a dual-microphone expansion board for Raspberry Pi
designed for AI and voice applications. It allows you to build a powerful and
flexible voice product that integrates services like Amazon Alexa Voice
Service, Google Assistant, etc.
The board is developed based on WM8960, a low power stereo codec. There are 2
microphones on both sides of the board for collecting sounds and it also
provides 3 APA102 RGB LEDs, 1 User Button, and 2 on-board interfaces for
expanding your applications. There is also a 3.5mm Audio Jack and JST 2.0
Speaker pins for audio output.
Technical Specifications
dimensions ……………………………………………………….. 65 x 30 x 15 mm (2.6 x 1.18 x 0.6″)
Operation
Overview
Follow this manual to connect the
Raspberry Pi 4 2 GB RAM to Google Assistant. This service allows you to voice-
control the appliance after saying Ok Google’ or
hey Google’.
Requirements:
- Raspberry Pi 4 with Raspbian
- monitor
- keyboard and mouse
- mini HDMI® to monitor
- ReSpeaker 2-mics Pi HAT
- headphones or speakers
Raspberry Pi Configuration
If you are new to Raspberry Pi, just follow this tutorial to download and
install the latest version of Raspbian:
https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up
Programming
-
Connect the ReSpeaker to your Raspberry Pi 4.
-
Download and install the drivers for the ReSpeaker by entering following commands into the Command Prompt:
o sudo apt-get update
o sudo apt-get upgrade
o git clone
o cd seeed-voicecard
o sudo .*install.sh
This may take a couple of minutes. When ready, reboot the Raspberry Pi.
o sudo reboot -
Now, let’s check if the name of the ReSpeaker matches with the name of the source. Open the Command Prompt and enter following commands:
o cd speed-voicecard
o aplay
o arecord
-
Now, it’s time to set the sound. Enter following command:
o alsamixer
Press F6 and select the correct board (option 1).
Set following values:
o LowerADC PCM’ to ± 25 or you will hear a loud beep. o Set the recording’s volume with
Capture’.
-
Time to test. Connect a speaker or headphones, open a new Command Prompt and enter following command:
o arecord -f cd -Dhw:1 aplay -Dhw:1
Now, you should hear your own voice through the speaker/headphones.
Activating the On-Board RGB LEDs
Open the Command Prompt and enter following commands:
o sudo pip install spidey
o cd ~/
o git clone https://github.com/respeaker/mic_hat.git
o cd mic_hat
o python pixels.py
You can change the colour of the LEDs through the Command Prompt.
Using the On-Board User Button
-
The press button on the ReSpeaker 2-mics is connected to the GPIO17. Enter following commands:
o sudo pip install rpi.gpio
o nano userbutton.py -
Copy the code below into the Command Prompt:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
input_state = GPIO.input(17)
if input_state == False:
print(“Button Pressed”) time.sleep(1)
else: print(“Button Released”)
time.sleep(1)
-
Save the code with CTRL+S.
-
Execute with python userbutton.py. Check the terminal to see if the button is pressed.
Google Assistant
Follow this manual to configure the Google Assistant on your Raspberry Pi (from Configure a Developer Project and Account Settings up to Run the Sample Code).
Once this works, you can go on with controlling LEDs, sensors, a speaker, etc., which you can connect to the ReSpeaker 2-mics Pi HAT.
Use this device with original accessories only. Velleman nv cannot be held responsible in the event of damage or injury resulting from (incorrect) use of this device. For more info concerning this product and the latest version of this manual, please visit our website www.velleman.eu. The information in this manual is subject to change without prior notice.
© COPYRIGHT NOTICE
The copyright to this manual is owned by Velleman nv. All worldwide rights reserved. No part of this manual may be copied, reproduced, translated or reduced to any electronic medium or otherwise without the prior written consent of the copyright holder.
Velleman® Service and Quality Warranty
Since its foundation in 1972, Velleman® acquired extensive experience in the
electronics world and currently distributes its products in over 85 countries.
All our products fulfil strict quality requirements and legal stipulations in
the EU. In order to ensure the quality, our products regularly go through an
extra quality check, both by an internal quality department and by specialized
external organisations. If, all precautionary measures notwithstanding,
problems should occur, please make appeal to our warranty (see guarantee
conditions).
General Warranty Conditions Concerning Consumer Products (for EU):
-
All consumer products are subject to a 24-month warranty on production flaws and defective material as from the original date of purchase.
-
Velleman® can decide to replace an article with an equivalent article, or to refund the retail value totally or partially when the complaint is valid and a free repair or replacement of the article is impossible, or if the expenses are out of proportion. You will be delivered a replacing article or a refund at the value of 100% of the purchase price in case of a flaw occurred in the first year after the date of purchase and delivery, or a replacing article at 50% of the purchase price or a refund at the value of 50% of the retail value in case of a flaw occurred in the second year after the date of purchase and delivery.
-
Not covered by warranty:
– all direct or indirect damage caused after delivery to the article (e.g. by oxidation, shocks, falls, dust, dirt, humidity…), and by the article, as well as its contents (e.g. data loss), compensation for loss of profits;
– consumable goods, parts or accessories that are subject to an aging process during normal use, such as batteries (rechargeable, non-rechargeable, built-in or replaceable), lamps, rubber parts, drive belts… (unlimited list);
– flaws resulting from fire, water damage, lightning, accident, natural disaster, etc….;
– flaws caused deliberately, negligently or resulting from improper handling, negligent maintenance, abusive use or use contrary to the manufacturer’s instructions; – damage caused by a commercial, professional or collective use of the article (the warranty validity will be reduced to six (6) months when the article is used professionally);
– damage resulting from an inappropriate packing and shipping of the article; – all damage caused by modification, repair or alteration performed by a third party without written permission by Velleman®. -
Articles to be repaired must be delivered to your Velleman® dealer, solidly packed (preferably in the original packaging), and be completed with the original receipt of purchase and a clear flaw description.
-
Hint: In order to save on cost and time, please reread the manual and check if the flaw is caused by obvious causes prior to presenting the article for repair. Note that returning a non-defective article can also involve handling costs.
-
Repairs occurring after warranty expiration are subject to shipping costs.
-
The above conditions are without prejudice to all commercial warranties. The above enumeration is subject to modification according to the article (see article’s manual).
-
Made in PRC
Imported by Velleman nv
Legen Heirweg 33, 9890 Gavere, Belgium
www.velleman.eu
References
- GPIO.IN
- Velleman – Wholesaler and developer of electronics
- Configure a Developer Project and Account Settings Google Google
- GitHub - respeaker/mic_hat: 2 Mic Array for Raspberry Pi
- projects.raspberrypi.org/en/projects/raspberry-pi-setting-up
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>