Node Spacedeur: verschil tussen versies

Uit MakerSpace Leiden
Ga naar: navigatie, zoeken
(Extra schroef terminal)
k
Regel 3: Regel 3:
 
PoE powered Node on Ethernet voor de deur van de space zelf.
 
PoE powered Node on Ethernet voor de deur van de space zelf.
  
[[Bestand: SpacedeurNode.jog|miniatuur]]
+
[[Bestand:SpacedeurNode1.jpg|miniatuur|SpaceDeur node]] [[Bestand:SpacedeurNode2.jpg|miniatuur|"Motherboard" with POESP en all ext. components connected]]
  
 
= Electronics =
 
= Electronics =
Regel 9: Regel 9:
 
Todo: Add schematic / POESP pinout
 
Todo: Add schematic / POESP pinout
  
There's a stepperdriver, a RFID reader, a power output to "grote Schakelaar" and an input for the door open/closed switch.
+
On the motherboard there are:
 +
* resistor between "Set V++" and GND, setting the voltage output for the stepper motor ("Vmot" terminal of A4988) to 12V
 +
* transistor for amplifying the pulses on GPIO16 for the buzzer
 +
* ''pull-up resistor for MS1, ensuring the motor is making half-steps (?)''
 +
* R-C circuit for the [[Grote Schakelaar|a.k.a. "Grote Schakelaar"]]
 +
* socket for A4988-type stepper motor driver
 +
* 8-pin RFID reader connector (brown/red pin is rightmost)
 +
* 4-screw terminal for the stepper motor
 +
* 2-screw terminal for powering auxillary devices (not connected)
 +
* 2-pin terminal for the buzzer, which sounds when RFID is read successfully
 +
* 2-pin terminal for the [[Grote Schakelaar|a.k.a. "Grote Schakelaar"]]. High when switch is off (or wire broken). Goes low when the switch is on.
  
The door open/closed switch is wired to GPIO34. High when door is closed (or wire broken). Goes low when door is open (and everything functions).
+
The pinning on the RFID reader is (most probably):
 
 
The pinning on the RFID reader is waarschijnlijk:
 
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! pin !! functie
+
! pin !! function
 
|-
 
|-
 
| 1 || SDA
 
| 1 || SDA
Regel 36: Regel 44:
 
|}
 
|}
  
Buzzer - waarschijnlijk transistortje
 
 
Stepper - waarschijnlijk A4988
 
  
 
Software: https://github.com/MakerSpaceLeiden/AccesSystem/blob/master/lib-arduino/ACNode/examples/SpaceDeur/SpaceDeur.ino
 
Software: https://github.com/MakerSpaceLeiden/AccesSystem/blob/master/lib-arduino/ACNode/examples/SpaceDeur/SpaceDeur.ino
Regel 54: Regel 59:
 
| 5 || Stepper STEP
 
| 5 || Stepper STEP
 
|-
 
|-
| 16 || Buzzer (optioneel)
+
| 16 || Buzzer  
 
|-
 
|-
| 34 || Deur sensor (optioneel)
+
| 34 || Grote Schakelaar
 
|-  
 
|-  
 
| 13 || MOSI
 
| 13 || MOSI
Regel 73: Regel 78:
  
 
== Stepper schroef terminal ==
 
== Stepper schroef terminal ==
 
+
see labels on each wire, match with those on terminals
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Regel 88: Regel 93:
 
|}
 
|}
  
== Extra headertje ==
+
== Grote Schakelaar header ==
  
 
{| class="wikitable"
 
{| class="wikitable"
Regel 100: Regel 105:
 
|}
 
|}
  
== Extra schroef terminal ==
+
== 2-screw terminal ==
  
Voor de grote schakelaar ?
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Regel 108: Regel 112:
 
! Pin !! functie
 
! Pin !! functie
 
|-
 
|-
| 1 || 5Volt ?
+
| 1 || 12Volt
 
|-
 
|-
| 2 || Digital ground
+
| 2 || power ground
 
|-
 
|-
 
|}
 
|}

Versie van 18 jan 2020 om 00:18


PoE powered Node on Ethernet voor de deur van de space zelf.

SpaceDeur node
"Motherboard" with POESP en all ext. components connected

Electronics

Todo: Add schematic / POESP pinout

On the motherboard there are:

  • resistor between "Set V++" and GND, setting the voltage output for the stepper motor ("Vmot" terminal of A4988) to 12V
  • transistor for amplifying the pulses on GPIO16 for the buzzer
  • pull-up resistor for MS1, ensuring the motor is making half-steps (?)
  • R-C circuit for the a.k.a. "Grote Schakelaar"
  • socket for A4988-type stepper motor driver
  • 8-pin RFID reader connector (brown/red pin is rightmost)
  • 4-screw terminal for the stepper motor
  • 2-screw terminal for powering auxillary devices (not connected)
  • 2-pin terminal for the buzzer, which sounds when RFID is read successfully
  • 2-pin terminal for the a.k.a. "Grote Schakelaar". High when switch is off (or wire broken). Goes low when the switch is on.

The pinning on the RFID reader is (most probably):

pin function
1 SDA
2 SCK
3 MOSI
4 MISO
5 IRQ
6 GND
7 RESET
8 3v3


Software: https://github.com/MakerSpaceLeiden/AccesSystem/blob/master/lib-arduino/ACNode/examples/SpaceDeur/SpaceDeur.ino

Pinning ESP32

ESP GPIO functie
2 Stepper DIR
4 Stepper Enable
5 Stepper STEP
16 Buzzer
34 Grote Schakelaar
13 MOSI
12 MISO
14 SCK
15 SDA
32 RESET (optioneel)
33 IRQ (optioneel)

Stepper schroef terminal

see labels on each wire, match with those on terminals

Pin functie
1 A - kleur onbekend
2 iA - kleur onbekend
3 B - kleur onbekend
4 iB - kleur onbekend

Grote Schakelaar header

Pin functie
1 Deur sensor; pulled up; naar pin 34 van de ESP 32
2 Digital ground

2-screw terminal

Pin functie
1 12Volt
2 power ground