Pi: Info re [37] Sensor Kit for Arduino (147.html)

Keywords: Raspberry, Pi, Python, Arduino, sensor, actuator, PiR2

Introduction

This article describes the 37 sensors in the "Sensor Kit for Arduino" [shown left below]. I purchased this sensor kit from BC-Robotics (Source 01 below). This kit (and others like it) have been in existence for many years. The sensors in this kit were selected for use with the Arduino computer. I intend this article to describe the use of these sensors with the Raspberry Pi computers [shown right below]. Note that some of the modules in this kit are truly sensors, others are actuators (because they control something eg LEDs). The author uses such sensors and actuators in the area controller that he is creating (Web Source 4 below). It is called the "PiR2".

(To enlarge .....Click it)
thumb: arduinosensorkit.jpg
arduino sensor kit

(To enlarge .....Click it)
thumb: Raspberry Pi 4B
Raspberry Pi 4B



Photos of the 37 Sensors

The Arduino Part Numbers in the Arduino Sensors Kit range from KY-001 to KY-040. The three "missing" part numbers are KY-007, KY-014 and KY-030. It is not known why they are no longer included in the kit.

(To enlarge .....Click it)
thumb: 37Sensors.jpg
37 Sensors

Arduino Part Numbers

Arduino Part Numbers for items in the "[37] Sensor Kit for Arduino"
from BC-Robotics (2020 L Dec 11) 

Positions (Pos) #s in the kit (box)
 1  2  3  4  5  6
 7  8  9 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24
25 26 27 28 29 30
31 32 33 34 35 36&37

Sensor          Pos    Arduino**  Info          WebLink
Description     #      Part #
-------------   --      ------    -----------   --------------------------------------------------------------------
7 Color Flash	10	KY-034			https://iot-guider.com/arduino/7-color-led-flash-module-ky-034-in-arduino/#:~:text=%20Interfacing%207%20Color%20LED%20Flash%20module%20KY-034,and%20set%20components%20as%20per%20the...%20More%20
Analog Hall	35	KY-035*	US1881 no LED	https://tkkrlab.nl/wiki/Arduino_KY-035_Class_Bihor_magnetic_sensor
Analog temp	18	KY-013
Avoid		31	KY-032
Ball Switch	17	KY-020
Big Sound	13	KY-037	BS detect	https://create.arduino.cc/projecthub/electropeak/how-to-use-ky-037-sound-detection-sensor-with-arduino-a757a7?ref=similar&ref_id=131574&offset=3
Button		22	KY-004
Buzzer		26	KY-012
Digital Temp	20	KY-028
Flame		02	KY-026
Hall Magnetic	06	KY-003* w/ LED by KEYES	https://arduinomodules.info/ky-003-hall-magnetic-sensor-module/
						https://www.youtube.com/watch?v=hV8mqPxEAUY , https://www.youtube.com/watch?v=1rKiI7Hp5K8
Heartbeat	04	KY-039 obsolete?  This measures the heart rate by seeing the pulsations of blood.
IR emission	24	KY-005
IR receiver	30	KY-022
Joystick	01	KY-023
Laser Emit	16	KY-008
Light Blocking	37	KY-010
Light Cup	05	KY-027
Linear Hall	08	KY-024*
Mini Reed	33	KY-021
Passive Buzzer	32	KY-006
Photo-resistor	23	KY-018 ambLight (adcRead) http://ephotocaption.com/a/174/174.html
                               digLight           http://ephotocaption.com/a/153/153.html
Reed Switch	27	KY-025
Relay		07	KY-019
RGB LED		03	KY-016
Rotary Encoders	34	KY-040	read rotary sw	https://create.arduino.cc/projecthub/vandenbrande/arduino-rotary-encoder-simple-example-ky-040-b78752
Shock		28	KY-002
Small Sound	19	KY-038	SS Detect skem:	http://arduinolearning.com/wp-content/uploads/2018/07/KY_038_Microphone_sound_sensor_module.png
SMD RGB		09	KY-009
Tap Module	36	KY-031
Temp & Humidity	29	KY-015
Temp 18B20	12	KY-001	? 		https://randomnerdtutorials.com/guide-for-ds18b20-temperature-sensor-with-arduino/
Tilt Switch	11	KY-017
Touch		14	KY-036	metal touch	http://arduinolearning.com/code/ky-036-metal-touch-sensor-module-and-arduino-example.php
Tracking	25	KY-033  IR Tracking	http://arduinolearning.com/code/ir-line-tracking-sensor-example.php
Two-color LED	15	KY-029*** 5mm
Two-color[mini]	21	KY-011*** 3mm (mini)

*Need to differentiate between Hall Effect sensors 
    the Analog Hall   35 (KY-035) Class Bihor has two unpopulated components
    The Hall Magnetic 06 (KY-003) has a LED and a resistor.
    the linear Hall   08 (KY-024) has a red-colored board with many components
**Missing Arduino #s (possibly obsolete): 
   Laser sensor module  KY-007
   3-color LED module   KY-014 
   Colorful automatic   KY-030  (flashing LED module) available from Arduino
*** Dual 2 color LEDs
 Two-color LED	15	KY-029*** 5mm Diam.
 [mini]Two-color21	KY-011*** 3mm Diam.	https://www.youtube.com/watch?v=9br5D0gg9WI

Panel (not in sensor kit)
ST7735 TFT LCD			Pi SPI Code	https://pypi.org/project/ST7735/

Source(??): https://www.aliexpress.com/item/32562935199.html?spm=a2g0o.productlist.0.0.7997405fn2qHIx&algo_pvid=25843f73-a6f1-4c11-ac23-dc3b0d25040f&algo_expid=25843f73-a6f1-4c11-ac23-dc3b0d25040f-46&btsid=0bb0623116076458414568576ef5dc&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_


/37AssortedSensorKit_Sorted.txt

Three Hall Effect Sensors

There are 3 Hall Effect sensors (shown below) in the [37] Arduino Sensors Kit. The KY-003 and the KY-35 can be confused because they resemble each other. For this reason, on the Web they are often mistakenly both labelled KY-003. Upon close inspection, it can be seen that the KY-003 has both a resistor and a LED, while the KY-035 has neither. The KY-024 Linear Hall module is a red board with many components.
(To enlarge .....Click it)
thumb: KY-003_hall-magnetic.jpg
KY-003 Hall-magnetic with LED

(To enlarge .....Click it)
thumb: KY-024_Linear.jpg
KY-024 Linear Hall

(To enlarge .....Click it)
thumb: KY-035_AnalogHall_noLED_B.jpg
KY-035 Analog Hall no LED

Thwo DUAL COLOR LED MODULES

There are 2 dual color led modules (not sensors) in the [37] Arduino Sensors Kit. The KY-029 and the KY-011 can be confused because they resemble each other. For this reason, on the Web they are often mistakenly both labelled KY-029. Upon close inspection, it can be seen that the KY-029 has a larger (5mm) LED while the KY-011 has a smaller (3mm) LED. Unfortunately the photos at the Arduino Modules website (Source 2 below) have the photos interchanged.
(To enlarge .....Click it)
thumb: KY-029_DualLED_Large.jpg
KY-029 Dual LED Large (5mm)

(To enlarge .....Click it)

thumb: KY-011_DualLED_Mini.jpg

KY-011 Dual LED Mini (3mm)

Part Number Locations in the Box

Part Numbers as located in the compartments of the kit:
------  ------  ------  ------  ------  ------
KY-023  KY-026  KY-016  KY-039  KY-027  KY-003
KY-019  KY-024  KY-009  KY-034  KY-017  KY-001
KY-037  KY-036  KY-029  KY-008  KY-020  KY-013
KY-038  KY-028  KY-011  KY-004  KY-018  KY-005
KY-033  KY-012  KY-025  KY-002  KY-015  KY-022
KY-032  KY-006  KY-021  KY-040  KY-035  KY-031/KY-010

PinOuts of the Sensors

Each of the sensors has a number (3 to 5) of pins that enables it to be plugged into a breadboard for ease of testing. I have numbered the pins in the following manner. Hold the module with the components side facing your eyes. Rotate the module so that the pins are pointing left (as the KY-003 is shown above). Then number the pins from top to bottom.

The following list of Modules lists the number of pins, the pin-out configuration and a weblink where more data can be found. Many of the weblinks contain (mostly Arduino) code that can be used to test or demonstrate use of the module. The actual pin-out diagrams follow the list.
Pin-Out configurations of the Modules in the [37] Arduino Sensor Kit (as of 2020L Dec 13)

PN     Module Name     Pos # PinOut	webLink
------ --------------- --- - --         -------------------------------------------------------------
KY-001 Temp 18B20	12 3 3A		https://arduinomodules.info/ky-001-temperature-sensor-module/
KY-002 Shock		28 3 3B		https://arduinomodules.info/ky-002-vibration-switch-module/
KY-003 Hall Magnetic	06 3 3B		https://arduinomodules.info/ky-003-hall-magnetic-sensor-module/
KY-004 Button		22 3 3B		https://arduinomodules.info/ky-004-key-switch-module/	
KY-005 IR emission	24 3 3B		https://arduinomodules.info/ky-005-infrared-transmitter-sensor-module/
KY-006 Passive Buzzer	32 3 3C		https://arduinomodules.info/ky-006-passive-buzzer-module/
KY-008 Laser Emit	16 3 3C		https://arduinomodules.info/ky-008-laser-transmitter-module/
KY-009 SMD RGB		09 4 4A		https://arduinomodules.info/ky-009-rgb-full-color-led-smd-module/
KY-010 Light Blocking	37 3 3D		https://arduinomodules.info/ky-010-photo-interrupter-module/
KY-011 Two-color[mini]	21 3 3C		https://arduinomodules.info/ky-011-two-color-led-module-3mm/
KY-012 Buzzer		26 3 3C		https://arduinomodules.info/ky-012-active-buzzer-module/
KY-013 Analog temp	18 3 3B		https://arduinomodules.info/ky-013-analog-temperature-sensor-module/
KY-015 Temp & Humidity	29 3 3B		https://arduinomodules.info/ky-015-temperature-humidity-sensor-module/
KY-016 RGB LED		03 4 4A		https://arduinomodules.info/ky-016-rgb-full-color-led-module/
KY-017 Tilt Switch	11 3 3B		https://arduinomodules.info/ky-017-mercury-switch-module/
KY-018 Photo-resistor	23 3 3B		https://arduinomodules.info/ky-018-photoresistor-module/
KY-019 Relay		07 3 5A		https://arduinomodules.info/ky-019-5v-relay-module/
KY-020 Ball Switch	17 3 3B		https://arduinomodules.info/ky-020-tilt-switch-module/
KY-021 Mini Reed	33 3 3B		https://arduinomodules.info/ky-021-mini-magnetic-reed-switch-module/
KY-022 IR receiver	30 3 3A		https://arduinomodules.info/ky-022-infrared-receiver-module/
KY-023 Joystick		01 5 5B		https://arduinomodules.info/ky-023-joystick-dual-axis-module/
KY-024 Linear Hall	08 4 4B		https://arduinomodules.info/ky-024-linear-magnetic-hall-module/
KY-025 Reed Switch	27 4 4B		https://arduinomodules.info/ky-025-reed-switch-module/
KY-026 Flame		02 4 4B		https://arduinomodules.info/ky-026-flame-sensor-module/
KY-027 Light Cup	05 4 4C		https://arduinomodules.info/ky-027-magic-light-cup-module/
                             4C****
KY-028 Digital Temp	20 4 4B		https://arduinomodules.info/ky-028-digital-temperature-sensor-module/
KY-029 Two-color LED	15 3 3F		https://arduinomodules.info/ky-029-dual-color-led-module/
KY-031 Tap Module	36 3 3B		https://arduinomodules.info/ky-031-knock-sensor-module/
KY-032 Avoid		31 4 4D		https://arduinomodules.info/ky-032-infrared-obstacle-avoidance-sensor-module/
KY-033 Tracking		25 3 3F		file:///C:/Users/David/Downloads/KY-033%20Tracking%20sensor%20module.pdf
KY-034 7 Color Flash	10 3 3A		https://datasheet4u.com/datasheet-pdf/Joy-IT/KY-034/pdf.php?id=1402044
KY-035 Analog Hall	35 3 3A		https://tkkrlab.nl/wiki/Arduino_KY-035_Class_Bihor_magnetic_sensor
KY-036 Touch		14 4 4B		https://sensorkit.en.joy-it.net/index.php?title=KY-036_Metal-touch_sensor_module
KY-037 Big Sound	13 4 4B		https://electropeak.com/learn/interfacing-ky-037-sound-sensor-with-arduino/
KY-038 Small Sound	19 4 4B		https://sensorkit.en.joy-it.net/index.php?title=KY-038_Microphone_sound_sensor_module
KY-039 Heartbeat	04 3 3B		https://www.hackster.io/Johan_Ha/from-ky-039-to-heart-rate-0abfca#schematics
KY-040 Rotary Encoders	34 5 5C		https://create.arduino.cc/projecthub/vandenbrande/arduino-rotary-encoder-simple-example-ky-040-b78752

**** The KY-027 is conprised of two identical modules.  The 2 pin-out configurations are identical.

/Modules_C.txt

Pin-Out Diagrams

3A	1 Ground
	2 5V
	3 Signal 1

3B	1 Signal 1
	2 5V
	3 Gnd

3C	1 Control 1
	2 nc
	3 Ground

3D	1 Ground
	2 3.3-5v
	3 Signal 1

3E	1 Control 1
	2 Control 2
	3 Ground

3F	1 Ground
	2 Control 1
	3 Control 2

3G	1 Signal 1
	2 nc
	3 Ground

4A	1 Control 1
	2 Control 2
	3 Control 3
	4 Ground

4B	1 Signal 1
	2 Ground
	3 5V
	4 Signal 2

4C	1 Ground
	2 5V
	3 Control 1
	4 Control 2

4D	1 Ground
	2 3.3-5v
	3 Sensor 1
	4 Control 1

5A	1 Control 1
	2 5V
	3 Ground
	4 Relay External 1 *****
	5 Relay External 2

5B	1 Ground
	2 5v
	3 Signal 1 (X)
	4 Signal 2 (Y)
	5 Signal   (Switch)

5C	1 Ground
	2 5v
	3 nc
	4 Signal 1
	5 Signal 2
***** The 5A module is a relay that "makes or breaks" 2 external pins that are electronically isolated from the other 3 actuator pins.

Glossary of Electronic Acronyms

1K0       1 K ohm resistor
1-Wire    OWFS serial bus
2GB       2 Gigabytes
3V3       +3.3 Volt
ada       AdaFruit
ADC       Analog to Digital Converter
ALT       Alert (usually an interrupt signal)
BCM       BroadCom Inc.
CMOS      Complementary Metal Oxide Semiconductor
DAC       Digital to Analog Converter
DIP       Dual In-line Pins (a popular IC format)
GND       Ground
GPIO      General Purpose Input/Output Raspberry Pi pins
HC        logic gates using CMOS levels
HDMI      High Definition Multimedia Interface
HS        High Side (of the load)
iButton   Dallas Key
I2C       Inter-Integrated Circuit eg TMC102
I2S       Inter-IC Sound (eg Adafruit MEMS microphone)
IC        Integrated Circuit
LS        Low Side (of the load)
MIC       Meh In Charge (www.MehInCharge.com)
Mux       Multiplexor
nc        no connection
NCD       National Control Devices, LLC
Op.Amp    Operational Amplifier
OWFS      One Wire File System
pcs       pieces
Pi        Raspberry Pi Computer
PiR2      PiR2 Area Controller by ICH180R2 Corp.
PN        Part Number
PoE       Power over Ethernet
pot.      potentiometer (variable resistor)
qwiic     Qwiic Connect System by SparkFun Electronics
RTC       Real Time Clock
SD        Secure Digital Card (memory card)
SoC       System-On-Chip  eg Broadcom BCM2711
SOIC      Small Outline Integrated Circuit (very small IC Package format)
ti        Texas Instruments
TTL       ICs using very old Transistor-Transistor Logic
us        micro-seconds
USB       Universal Serial Bus
v/v       output voltage per volt of input

References

Books/Newspapers

Books/Newspapers 1: none

YouTube Videos

Source V01: 37 Arduino Sensor Kit (with CD by Elego) by AOK stem 2017-12-23
Source V02: 37 Sensors and Modules Kit (Version 2) for Raspberry Pi and Arduino (by Sunfounder) by Circuit Basics 2016-07-07
Source V03: 37 SENSORS AND MODULES KIT (VERSION 2) FOR RASPBERRY PI AND ARDUINO (by Sunfounder) by Scott Campbell 2016-07-07

Web Sites

Web Source S147:01: BC-Robotics Date: 2020 L Dec 11
Web Source S147:02: Arduino Modules Date: 2020 H Aug 31
Web Source S147:03: Instructables Date: 2020 H Aug 31
Web Source S147:04: Pi: PiR2 Area Controller Prototype (139) by David Cole

WebMaster: Ye Old King Cole

Click here to return to ePC Articles by Old King Cole

Created 2020 L Dec 11
Updated 2022 C Mar 16
(c) ICH180R2 Corp

/147.html