Difference between revisions of "MCookie-Hub"

From Microduino Wiki
Jump to: navigation, search
(Example)
 
(24 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Language|mCookie-Hub}}
 
{{Language|mCookie-Hub}}
{| style="width: 800px;"
+
{| style="width: 80%;"
 
|-
 
|-
 
|
 
|
 
[[File: mCookie-Hub-rect.jpg|400px|thumb|right]]
 
[[File: mCookie-Hub-rect.jpg|400px|thumb|right]]
 
mCookie-Hub is designed for ease of the connection between [[Microduino Sensor Series]] and the core modules on the UPIN27 base board as well as further extended experiment.
 
mCookie-Hub is designed for ease of the connection between [[Microduino Sensor Series]] and the core modules on the UPIN27 base board as well as further extended experiment.
 
The sensor / trinket connector are 4 pin, 1.25mm pitch JST connectors.
 
 
 
 
 
 
 
 
  
  
Line 26: Line 17:
 
==Specification==
 
==Specification==
 
*All mCookie function pins are connected to the base board of the Hub, including digital, analog, serial port and IIC interface.
 
*All mCookie function pins are connected to the base board of the Hub, including digital, analog, serial port and IIC interface.
*Hub's interface pinout per header: '''GND, VCC, signal 1 and signal 2'''.
+
*Hub's interface pinout per header: '''GND''', '''VCC''', '''GPIO-A''' and '''GPIO-B'''.
 
 
 
*Two IIC interfaces.
 
*Two IIC interfaces.
 +
*Uses 4 pin, 1.25mm pitch JST headers / connectors.
  
 
===Pin Description===  
 
===Pin Description===  
Most sensors / trinkets use the first signal (signal 1) when connecting to the sensor hub.
+
Most sensors / trinkets use the first signal ('''SIGNAL-A''') when connecting to the sensor hub.
  
 +
 +
 +
<div style="float: left">
 
{| class="wikitable"
 
{| class="wikitable"
 +
|+ style="text-align: Center;" | <big>Hub to Sensor / Trinket Connection Mapping</big>
 +
|-
 +
!  Hub Header
 +
!  Sensor / Trinket's Connector
 +
|-
 +
| style="background: #e6e6e6;" | '''GND''' ( - )
 +
| (PIN1) '''GND'''
 
|-
 
|-
!
+
| style="background: #ffcccc;" | '''VCC''' ( + )
! PinOut A
+
| (PIN2) '''VCC'''
! PinOut B
 
! PinOut C
 
! PinOutD
 
 
|-
 
|-
! Hub Header
+
| style="background: #d1dffa;" | '''GPIO-A'''
| GND
+
| (PIN3) '''SIGNAL-A''' -- INPUT / OUTPUT  (usually)
| VCC
 
| SIGNAL 1
 
| SIGNAL 2
 
 
|-
 
|-
! ST* Connector
+
| style="background: #b3ffec;" | '''GPIO-B'''
| GND
+
| (PIN4) '''SIGNAL-B''' -- Not connected (usually)
| VCC
 
| INPUT / OUTPUT
 
| Not connected (usually)
 
 
|}
 
|}
*ST = Sensor / Trinket Connector
+
</div>
 +
<div style="float: left;">
 +
[[File:Sensor_backpin.png]]
 +
</div>
 +
<div style="clear:both;">
  
Therefore, when referencing the sensor / trinket in code. Use the '''first''' number on the labeled header.
+
*Therefore, when referencing the sensor / trinket in code. Use the '''first''' number ('''GPIO-A''') on the labeled header. See examples below.
 
+
*Some modules use both signals A & B, but they are limited.
In order to use the second signal. An IO splitter is used to split the signals out into two seperate connectors. More can be read about the IO splitter: '''[[Sensor-IO_Split]]'''
+
*Please refer to the specific sensor / trinket page for more detailed information on a specific one.
 
+
*In order to use the second signal. An IO split is used to split the signals out into two separate connectors. More can be read about the IO split: <big>'''[[Sensor-IO_Split|IO Split]]'''</big>
Some modules use both the signals 1 & 2, but they are limited. Please refer to the specific sensor / trinket page for more detailed information on a specific one.
+
*IIC (I2C) uses both signals, but these headers are strictly for IIC communication.
 
+
<div style="float: left">
The IIC (I2C) uses both signals, but these headers are use strictly for IIC communication.
+
{| class="wikitable"
 +
|+ style="text-align: center;" | <big>Header & GPIO-A / GPIO-B <br/> Mapping</big>
 +
|-
 +
! style="text-align: center;" | #
 +
! style="width: 60px;text-align: left;" | Label
 +
! style="width: 60px; background: #d1dffa;text-align: left;" | GPIO-A
 +
! style="width: 60px; background: #b3ffec;text-align: left;" | GPIO-B
 +
|-
 +
! style="color: red;" | 1
 +
| IIC || rowspan="2" style="background: #ffffcc;" | SDA || rowspan="2" style="background: #ffffcc;"| SCL
 +
|-
 +
! style="color: red;" | 2
 +
| IIC
 +
|-
 +
! style="color: red;" | 3
 +
| 0/1 || 0 || 1
 +
|-
 +
! style="color: red;" | 4
 +
| 2/3 || 2 || 3
 +
|-
 +
! style="color: red;" | 5
 +
| 4/5 || 4 || 5
 +
|-
 +
! style="color: red;" | 6
 +
| 6/7 || 6 || 7
 +
|-
 +
! style="color: red;"| 7
 +
| 8/9 || 8 || 9
 +
|-
 +
! style="color: red;"| 8
 +
| 10/11 || 10 || 11
 +
|-
 +
! style="color: red;"| 9
 +
| 12/13 || 12 || 13
 +
|-
 +
! style="color: red;"| 10
 +
| A6/A7 || A6 || A7
 +
|-
 +
! style="color: red;"| 11
 +
| A2/A3 || A2 || A3
 +
|-
 +
! style="color: red;"| 12
 +
| A0/A1 || A0 || A1
 +
|}
 +
</div>
 +
<div style="float: left;">
 +
[[file:mCookie-sensorhub_rule.JPG|thumb|700px|center]]
 +
</div>
 +
<div style="clear:both;">
 
====Example====
 
====Example====
*With a '''[[Sensor-Light-A1|Light Sensor]]''' that is plugged into the '''A2/A3''' header. Use '''A2''' to access the light sensor.  
+
*With a '''[[Sensor-Light-A1|Light Sensor]]''' that is plugged into the '''A2/A3''' header. Use '''A2''' to access the light sensor. ('''On the A2/A3 header: GPIO-A=A2; GPIO-B=A3''')
*With an '''[[Sensor-LED|Single Color LED]]''' that is plugged into the '''6/7''' header. Use '''6''' to control the LED.
+
*With an '''[[Sensor-LED|Single Color LED]]''' that is plugged into the '''6/7''' header. Use '''6''' to control the LED. ('''On the 6/7 header: GPIO-A=6; GPIO-B=7''')
  
Each sensor / trinket page has more specific details to which pins are used, but the general rule is use the first signal.
+
Each sensor / trinket page has more specific details to which pins are used, but the general rule is use the first signal ('''SIGNAL-A''').
  
 
Each sensor / trinket may require usage of a specific type of pin, such as an analog pin. This information can be found on the wiki page for that specific sensor / trinket.
 
Each sensor / trinket may require usage of a specific type of pin, such as an analog pin. This information can be found on the wiki page for that specific sensor / trinket.
 
 
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
 
  
 
==Document==
 
==Document==
Line 77: Line 118:
 
==Development==
 
==Development==
 
*Stack with Microduino core modules and have an external connection with Microduino sensors. Select the right interface according to different sensors.
 
*Stack with Microduino core modules and have an external connection with Microduino sensors. Select the right interface according to different sensors.
**Sensors adopting analog port: [[Microduino-Sound]], [[Microduino-Light], [[Microduino-Joystick]], [[Microduino-Moisture]], [[Microduino-Water line]]
+
**Sensors adopting analog port: [[Microduino-Sound]], [[Microduino-Light]], [[Microduino-Joystick]], [[Microduino-Moisture]], [[Microduino-Water line]]
 
**[[mCookie-OLED]], [[Microduino-Temp&Hum]] (Need to choose IIC interface.)
 
**[[mCookie-OLED]], [[Microduino-Temp&Hum]] (Need to choose IIC interface.)
  

Latest revision as of 03:32, 4 August 2017

Language: English  • 中文
MCookie-Hub-rect.jpg

mCookie-Hub is designed for ease of the connection between Microduino Sensor Series and the core modules on the UPIN27 base board as well as further extended experiment.


Features

  • Integrate twelve sensor interfaces;
  • Small size with sensor interface integrated on the Upin 27 base board;
  • All function pins are extended;
  • Prevent reverse sensor connection
  • Uses 4 pin, 1.25mm pitch JST headers

Specification

  • All mCookie function pins are connected to the base board of the Hub, including digital, analog, serial port and IIC interface.
  • Hub's interface pinout per header: GND, VCC, GPIO-A and GPIO-B.
  • Two IIC interfaces.
  • Uses 4 pin, 1.25mm pitch JST headers / connectors.

Pin Description

Most sensors / trinkets use the first signal (SIGNAL-A) when connecting to the sensor hub.


Hub to Sensor / Trinket Connection Mapping
Hub Header Sensor / Trinket's Connector
GND ( - ) (PIN1) GND
VCC ( + ) (PIN2) VCC
GPIO-A (PIN3) SIGNAL-A -- INPUT / OUTPUT (usually)
GPIO-B (PIN4) SIGNAL-B -- Not connected (usually)

Sensor backpin.png

  • Therefore, when referencing the sensor / trinket in code. Use the first number (GPIO-A) on the labeled header. See examples below.
  • Some modules use both signals A & B, but they are limited.
  • Please refer to the specific sensor / trinket page for more detailed information on a specific one.
  • In order to use the second signal. An IO split is used to split the signals out into two separate connectors. More can be read about the IO split: IO Split
  • IIC (I2C) uses both signals, but these headers are strictly for IIC communication.
Header & GPIO-A / GPIO-B
Mapping
# Label GPIO-A GPIO-B
1 IIC SDA SCL
2 IIC
3 0/1 0 1
4 2/3 2 3
5 4/5 4 5
6 6/7 6 7
7 8/9 8 9
8 10/11 10 11
9 12/13 12 13
10 A6/A7 A6 A7
11 A2/A3 A2 A3
12 A0/A1 A0 A1
MCookie-sensorhub rule.JPG

Example

  • With a Light Sensor that is plugged into the A2/A3 header. Use A2 to access the light sensor. (On the A2/A3 header: GPIO-A=A2; GPIO-B=A3)
  • With an Single Color LED that is plugged into the 6/7 header. Use 6 to control the LED. (On the 6/7 header: GPIO-A=6; GPIO-B=7)

Each sensor / trinket page has more specific details to which pins are used, but the general rule is use the first signal (SIGNAL-A).

Each sensor / trinket may require usage of a specific type of pin, such as an analog pin. This information can be found on the wiki page for that specific sensor / trinket.

Document

Development

Project

Purchase

History

Pictures

MCookie-sensorhub -F.JPG
MCookie-sensorhub -b.JPG

Video